X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fccp.c;h=bced7ca713c5b782bb84329a4061b89e8fd4ccc9;hp=ad82330b45bea0bcd479ac891a1bf1444c12587f;hb=ef22b689a3c6de247b9eaf184a79a4f3a4107212;hpb=5fbd9b39f4047d54affd9f0c6470eb5f7512c3a6 diff --git a/pppd/ccp.c b/pppd/ccp.c index ad82330..bced7ca 100644 --- a/pppd/ccp.c +++ b/pppd/ccp.c @@ -26,12 +26,14 @@ */ #ifndef lint -static char rcsid[] = "$Id: ccp.c,v 1.17 1996/07/01 01:11:36 paulus Exp $"; +static char rcsid[] = "$Id: ccp.c,v 1.19 1996/09/26 06:20:52 paulus Exp $"; #endif #include #include #include +#include +#include #include #include "pppd.h" @@ -163,7 +165,7 @@ ccp_init(unit) /* * ccp_open - CCP is allowed to come up. */ -void +static void ccp_open(unit) int unit; { @@ -854,7 +856,7 @@ ccp_up(f) } else syslog(LOG_NOTICE, "%s receive compression enabled", method_name(go, NULL)); - } else + } else if (ANY_COMPRESS(*ho)) syslog(LOG_NOTICE, "%s transmit compression enabled", method_name(ho, NULL)); } @@ -991,7 +993,7 @@ ccp_printpkt(p, plen, printer, arg) * decompression; if it was, we take CCP down, thus disabling * compression :-(, otherwise we issue the reset-request. */ -void +static void ccp_datainput(unit, pkt, len) int unit; u_char *pkt;