summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/timer.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/timer.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/timer.c')
-rw-r--r--usr.sbin/ppp/timer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/timer.c b/usr.sbin/ppp/timer.c
index c8e41f1..be8a8b2 100644
--- a/usr.sbin/ppp/timer.c
+++ b/usr.sbin/ppp/timer.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: timer.c,v 1.27.2.11 1998/05/08 01:15:18 brian Exp $
+ * $Id: timer.c,v 1.28 1998/05/21 21:48:46 brian Exp $
*
* TODO:
*/
@@ -149,8 +149,8 @@ TimerService(void)
struct pppTimer *tp, *exp, *wt;
if (log_IsKept(LogTIMER)) {
- static time_t t;
- time_t n = time(NULL); /* Only show timers every second */
+ static time_t t; /* Only show timers globally every second */
+ time_t n = time(NULL);
if (n > t)
timer_Show(LogTIMER, NULL);
OpenPOWER on IntegriCloud