squid: update to 6.13
[openadk.git] / package / ppp / patches / patch-pppd_cbcp_c
blobdfbfb44ab49214139118acf681928eec6d5c6f5c
1 --- ppp-2.4.5.orig/pppd/cbcp.c  2009-11-16 23:26:07.000000000 +0100
2 +++ ppp-2.4.5/pppd/cbcp.c       2014-03-17 16:13:14.000000000 +0100
3 @@ -50,7 +50,7 @@ static const char rcsid[] = RCSID;
4  /*
5   * Options.
6   */
7 -static int setcbcp __P((char **));
8 +static int setcbcp (char **);
9  
10  static option_t cbcp_option_list[] = {
11      { "callback", o_special, (void *)setcbcp,
12 @@ -61,14 +61,14 @@ static option_t cbcp_option_list[] = {
13  /*
14   * Protocol entry points.
15   */
16 -static void cbcp_init      __P((int unit));
17 -static void cbcp_open      __P((int unit));
18 -static void cbcp_lowerup   __P((int unit));
19 -static void cbcp_input     __P((int unit, u_char *pkt, int len));
20 -static void cbcp_protrej   __P((int unit));
21 -static int  cbcp_printpkt  __P((u_char *pkt, int len,
22 +static void cbcp_init      (int unit);
23 +static void cbcp_open      (int unit);
24 +static void cbcp_lowerup   (int unit);
25 +static void cbcp_input     (int unit, u_char *pkt, int len);
26 +static void cbcp_protrej   (int unit);
27 +static int  cbcp_printpkt  (u_char *pkt, int len,
28                                 void (*printer) __P((void *, char *, ...)),
29 -                               void *arg));
30 +                               void *arg);
32  struct protent cbcp_protent = {
33      PPP_CBCP,
34 @@ -94,11 +94,11 @@ cbcp_state cbcp[NUM_PPP];
36  /* internal prototypes */
38 -static void cbcp_recvreq __P((cbcp_state *us, u_char *pckt, int len));
39 -static void cbcp_resp __P((cbcp_state *us));
40 -static void cbcp_up __P((cbcp_state *us));
41 -static void cbcp_recvack __P((cbcp_state *us, u_char *pckt, int len));
42 -static void cbcp_send __P((cbcp_state *us, int code, u_char *buf, int len));
43 +static void cbcp_recvreq (cbcp_state *us, u_char *pckt, int len);
44 +static void cbcp_resp (cbcp_state *us);
45 +static void cbcp_up (cbcp_state *us);
46 +static void cbcp_recvack (cbcp_state *us, u_char *pckt, int len);
47 +static void cbcp_send (cbcp_state *us, int code, u_char *buf, int len);
49  /* option processing */
50  static int
51 @@ -227,7 +227,7 @@ static int
52  cbcp_printpkt(p, plen, printer, arg)
53      u_char *p;
54      int plen;
55 -    void (*printer) __P((void *, char *, ...));
56 +    void (*printer) (void *, char *, ...);
57      void *arg;
58  {
59      int code, opt, id, len, olen, delay;