diff options
author | brian <brian@cvs.openbsd.org> | 1998-01-21 02:13:45 +0000 |
---|---|---|
committer | brian <brian@cvs.openbsd.org> | 1998-01-21 02:13:45 +0000 |
commit | 8a2ec42180fb11a937a82cb373eb5158f74e1ab8 (patch) | |
tree | 442249b74cfbdcd52476e670964a3b269c05ad77 /usr.sbin/ppp/async.c | |
parent | 5391f133fb9aab9e640da69ab7483f786af27580 (diff) |
Remove unused #includes.
Make various bits static.
Remove unused variables.
Submitted by: eivind
Diffstat (limited to 'usr.sbin/ppp/async.c')
-rw-r--r-- | usr.sbin/ppp/async.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.sbin/ppp/async.c b/usr.sbin/ppp/async.c index 1f04ace6507..aa6516ff2d5 100644 --- a/usr.sbin/ppp/async.c +++ b/usr.sbin/ppp/async.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: async.c,v 1.1 1997/11/23 20:27:32 brian Exp $ + * $Id: async.c,v 1.2 1998/01/21 02:13:28 brian Exp $ * */ #include <sys/param.h> @@ -39,7 +39,6 @@ #include "modem.h" #include "loadalias.h" #include "vars.h" -#include "os.h" #include "async.h" #define HDLCSIZE (MAX_MRU*2+6) @@ -140,7 +139,7 @@ AsyncDecode(u_char c) struct mbuf *bp; if ((hs->mode & MODE_HUNT) && c != HDLC_SYN) - return (NULLBUFF); + return NULL; switch (c) { case HDLC_SYN: @@ -149,7 +148,7 @@ AsyncDecode(u_char c) bp = mballoc(hs->length, MB_ASYNC); mbwrite(bp, hs->hbuff, hs->length); hs->length = 0; - return (bp); + return bp; } break; case HDLC_ESC: @@ -173,7 +172,7 @@ AsyncDecode(u_char c) hs->hbuff[hs->length++] = c; break; } - return NULLBUFF; + return NULL; } void |