summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/main.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-06-15 19:06:58 +0000
committerbrian <brian@FreeBSD.org>1998-06-15 19:06:58 +0000
commit67efb0adddd5c04e645535e5454772d1da2b7105 (patch)
tree31d8e8fa6ed4fbfe3381d37f32142615c81eec99 /usr.sbin/ppp/main.c
parent13defc3317e75eb1c300da13d71fcfca0afa9fea (diff)
downloadFreeBSD-src-67efb0adddd5c04e645535e5454772d1da2b7105.zip
FreeBSD-src-67efb0adddd5c04e645535e5454772d1da2b7105.tar.gz
o De-staticise things that don't need to be static.
o Bring the static ``ttystate'' into struct prompt so that the tilde context is per prompt and not global. o Comment the remaining static variables so that it's clear why they're static. o Add some XXX comments suggesting that our interface list and our hostname should be re-generated after a signal (say SIGUSR1) so that a machine with PCCARDs has a chance.
Diffstat (limited to 'usr.sbin/ppp/main.c')
-rw-r--r--usr.sbin/ppp/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c
index 65f62d1..4ef527a 100644
--- a/usr.sbin/ppp/main.c
+++ b/usr.sbin/ppp/main.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: main.c,v 1.131 1998/06/15 19:05:22 brian Exp $
+ * $Id: main.c,v 1.132 1998/06/15 19:05:46 brian Exp $
*
* TODO:
*/
@@ -155,7 +155,7 @@ BringDownServer(int signo)
static const char *
ex_desc(int ex)
{
- static char num[12];
+ static char num[12]; /* Used immediately if returned */
static const char *desc[] = {
"normal", "start", "sock", "modem", "dial", "dead", "done",
"reboot", "errdead", "hangup", "term", "nodial", "nologin"
OpenPOWER on IntegriCloud