diff options
author | phk <phk@FreeBSD.org> | 1996-01-10 21:28:04 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1996-01-10 21:28:04 +0000 |
commit | 525e36ce3e9516d50c97f25c011550e6cfec1edc (patch) | |
tree | efa94c4341ade4773e54c6aeb6ee691faaf4f071 /usr.sbin/ppp/timer.c | |
parent | b0a5a520276679c2b26968f7d92736114c95cc30 (diff) | |
download | FreeBSD-src-525e36ce3e9516d50c97f25c011550e6cfec1edc.zip FreeBSD-src-525e36ce3e9516d50c97f25c011550e6cfec1edc.tar.gz |
A random bunch of cleanup changes.
Diffstat (limited to 'usr.sbin/ppp/timer.c')
-rw-r--r-- | usr.sbin/ppp/timer.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/ppp/timer.c b/usr.sbin/ppp/timer.c index d76ab14..10e1d2c 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.3 1995/03/11 15:18:51 amurai Exp $ + * $Id: timer.c,v 1.4 1995/05/30 03:50:59 rgrimes Exp $ * * TODO: */ @@ -146,7 +146,8 @@ TimerService() #ifdef DEBUG ShowTimers(); #endif - if (tp = TimerList) { + tp = TimerList; + if (tp) { tp->rest--; if (tp->rest == 0) { /* @@ -204,7 +205,8 @@ ShowTimers() } #ifdef SIGALRM -u_int sleep( u_int sec ) +u_int +sleep( u_int sec ) { struct timeval to,st,et; long sld, nwd, std; @@ -231,6 +233,7 @@ u_int sleep( u_int sec ) to.tv_usec = sld % 1000000; } } + return (0L); } void usleep( u_int usec) |