Module Name: src Committed By: maya Date: Thu Dec 13 05:07:03 UTC 2018
Modified Files: src/usr.bin/telnet: externs.h utilities.c Log Message: static-ify. To generate a diff of this commit: cvs rdiff -u -r1.39 -r1.40 src/usr.bin/telnet/externs.h cvs rdiff -u -r1.25 -r1.26 src/usr.bin/telnet/utilities.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/telnet/externs.h diff -u src/usr.bin/telnet/externs.h:1.39 src/usr.bin/telnet/externs.h:1.40 --- src/usr.bin/telnet/externs.h:1.39 Thu Dec 13 04:49:19 2018 +++ src/usr.bin/telnet/externs.h Thu Dec 13 05:07:03 2018 @@ -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 printoption(const char *, int, int 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__)); Index: src/usr.bin/telnet/utilities.c diff -u src/usr.bin/telnet/utilities.c:1.25 src/usr.bin/telnet/utilities.c:1.26 --- src/usr.bin/telnet/utilities.c:1.25 Thu Dec 13 04:49:19 2018 +++ src/usr.bin/telnet/utilities.c Thu Dec 13 05:07:03 2018 @@ -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 @@ __RCSID("$NetBSD: utilities.c,v 1.25 201 #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 @@ EmptyTerminal(void) } } -void +static void SetForExit(void) { setconnmode(0);