summaryrefslogtreecommitdiff
path: root/package/ppp/patches/patch-pppd_ccp_c
diff options
context:
space:
mode:
Diffstat (limited to 'package/ppp/patches/patch-pppd_ccp_c')
-rw-r--r--package/ppp/patches/patch-pppd_ccp_c81
1 files changed, 81 insertions, 0 deletions
diff --git a/package/ppp/patches/patch-pppd_ccp_c b/package/ppp/patches/patch-pppd_ccp_c
new file mode 100644
index 000000000..41db56039
--- /dev/null
+++ b/package/ppp/patches/patch-pppd_ccp_c
@@ -0,0 +1,81 @@
+--- ppp-2.4.5.orig/pppd/ccp.c 2009-11-16 23:26:07.000000000 +0100
++++ ppp-2.4.5/pppd/ccp.c 2014-03-17 16:13:13.000000000 +0100
+@@ -57,8 +57,8 @@ static const char rcsid[] = RCSID;
+ /*
+ * Command-line options.
+ */
+-static int setbsdcomp __P((char **));
+-static int setdeflate __P((char **));
++static int setbsdcomp (char **);
++static int setdeflate (char **);
+ static char bsd_value[8];
+ static char deflate_value[8];
+
+@@ -164,17 +164,17 @@ static option_t ccp_option_list[] = {
+ /*
+ * Protocol entry points from main code.
+ */
+-static void ccp_init __P((int unit));
+-static void ccp_open __P((int unit));
+-static void ccp_close __P((int unit, char *));
+-static void ccp_lowerup __P((int unit));
+-static void ccp_lowerdown __P((int));
+-static void ccp_input __P((int unit, u_char *pkt, int len));
+-static void ccp_protrej __P((int unit));
+-static int ccp_printpkt __P((u_char *pkt, int len,
++static void ccp_init (int unit);
++static void ccp_open (int unit);
++static void ccp_close (int unit, char *);
++static void ccp_lowerup (int unit);
++static void ccp_lowerdown (int);
++static void ccp_input (int unit, u_char *pkt, int len);
++static void ccp_protrej (int unit);
++static int ccp_printpkt (u_char *pkt, int len,
+ void (*printer) __P((void *, char *, ...)),
+- void *arg));
+-static void ccp_datainput __P((int unit, u_char *pkt, int len));
++ void *arg);
++static void ccp_datainput (int unit, u_char *pkt, int len);
+
+ struct protent ccp_protent = {
+ PPP_CCP,
+@@ -205,18 +205,18 @@ ccp_options ccp_hisoptions[NUM_PPP]; /*
+ /*
+ * Callbacks for fsm code.
+ */
+-static void ccp_resetci __P((fsm *));
+-static int ccp_cilen __P((fsm *));
+-static void ccp_addci __P((fsm *, u_char *, int *));
+-static int ccp_ackci __P((fsm *, u_char *, int));
+-static int ccp_nakci __P((fsm *, u_char *, int, int));
+-static int ccp_rejci __P((fsm *, u_char *, int));
+-static int ccp_reqci __P((fsm *, u_char *, int *, int));
+-static void ccp_up __P((fsm *));
+-static void ccp_down __P((fsm *));
+-static int ccp_extcode __P((fsm *, int, int, u_char *, int));
+-static void ccp_rack_timeout __P((void *));
+-static char *method_name __P((ccp_options *, ccp_options *));
++static void ccp_resetci (fsm *);
++static int ccp_cilen (fsm *);
++static void ccp_addci (fsm *, u_char *, int *);
++static int ccp_ackci (fsm *, u_char *, int);
++static int ccp_nakci (fsm *, u_char *, int, int);
++static int ccp_rejci (fsm *, u_char *, int);
++static int ccp_reqci (fsm *, u_char *, int *, int);
++static void ccp_up (fsm *);
++static void ccp_down (fsm *);
++static int ccp_extcode (fsm *, int, int, u_char *, int);
++static void ccp_rack_timeout (void *);
++static char *method_name (ccp_options *, ccp_options *);
+
+ static fsm_callbacks ccp_callbacks = {
+ ccp_resetci,
+@@ -1489,7 +1489,7 @@ static int
+ ccp_printpkt(p, plen, printer, arg)
+ u_char *p;
+ int plen;
+- void (*printer) __P((void *, char *, ...));
++ void (*printer) (void *, char *, ...);
+ void *arg;
+ {
+ u_char *p0, *optend;