Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/telnet static-ify.
details: https://anonhg.NetBSD.org/src/rev/c0a2846e51b6
branches: trunk
changeset: 446642:c0a2846e51b6
user: maya <maya%NetBSD.org@localhost>
date: Thu Dec 13 05:07:03 2018 +0000
description:
static-ify.
diffstat:
usr.bin/telnet/externs.h | 3 +--
usr.bin/telnet/utilities.c | 8 +++++---
2 files changed, 6 insertions(+), 5 deletions(-)
diffs (53 lines):
diff -r 3aa4288097b6 -r c0a2846e51b6 usr.bin/telnet/externs.h
--- a/usr.bin/telnet/externs.h Thu Dec 13 04:49:19 2018 +0000
+++ b/usr.bin/telnet/externs.h Thu Dec 13 05:07:03 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: externs.h,v 1.39 2018/12/13 04:49:19 maya Exp $ */
+/* $NetBSD: externs.h,v 1.40 2018/12/13 05:07:03 maya Exp $ */
/*
* Copyright (c) 1988, 1990, 1993
@@ -328,7 +328,6 @@
void optionstatus(void);
void printsub(int, unsigned char *, int);
void EmptyTerminal(void);
-void SetForExit(void);
void Exit(int) __attribute__((__noreturn__));
void ExitString(const char *, int) __attribute__((__noreturn__));
diff -r 3aa4288097b6 -r c0a2846e51b6 usr.bin/telnet/utilities.c
--- a/usr.bin/telnet/utilities.c Thu Dec 13 04:49:19 2018 +0000
+++ b/usr.bin/telnet/utilities.c Thu Dec 13 05:07:03 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: utilities.c,v 1.25 2018/12/13 04:49:19 maya Exp $ */
+/* $NetBSD: utilities.c,v 1.26 2018/12/13 05:07:03 maya Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)utilities.c 8.3 (Berkeley) 5/30/95";
#else
-__RCSID("$NetBSD: utilities.c,v 1.25 2018/12/13 04:49:19 maya Exp $");
+__RCSID("$NetBSD: utilities.c,v 1.26 2018/12/13 05:07:03 maya Exp $");
#endif
#endif /* not lint */
@@ -63,6 +63,8 @@
#include <libtelnet/encrypt.h>
#endif
+static void SetForExit(void);
+
FILE *NetTrace = 0; /* Not in bss, since needs to stay */
int prettydump;
@@ -879,7 +881,7 @@
}
}
-void
+static void
SetForExit(void)
{
setconnmode(0);
Home |
Main Index |
Thread Index |
Old Index