]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/ccp.c
fixes for picky C compilers
[ppp.git] / pppd / ccp.c
index ad82330b45bea0bcd479ac891a1bf1444c12587f..bced7ca713c5b782bb84329a4061b89e8fd4ccc9 100644 (file)
  */
 
 #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 <string.h>
 #include <syslog.h>
 #include <sys/ioctl.h>
+#include <sys/types.h>
+#include <net/ppp_defs.h>
 #include <net/ppp-comp.h>
 
 #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;