patch-pppd_ecp_c 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --- ppp-2.4.5.orig/pppd/ecp.c 2009-11-16 23:26:07.000000000 +0100
  2. +++ ppp-2.4.5/pppd/ecp.c 2014-03-17 16:13:14.000000000 +0100
  3. @@ -79,20 +79,20 @@ static option_t ecp_option_list[] = {
  4. /*
  5. * Protocol entry points from main code.
  6. */
  7. -static void ecp_init __P((int unit));
  8. +static void ecp_init (int unit);
  9. /*
  10. -static void ecp_open __P((int unit));
  11. -static void ecp_close __P((int unit, char *));
  12. -static void ecp_lowerup __P((int unit));
  13. -static void ecp_lowerdown __P((int));
  14. -static void ecp_input __P((int unit, u_char *pkt, int len));
  15. -static void ecp_protrej __P((int unit));
  16. +static void ecp_open (int unit);
  17. +static void ecp_close (int unit, char *);
  18. +static void ecp_lowerup (int unit);
  19. +static void ecp_lowerdown (int);
  20. +static void ecp_input (int unit, u_char *pkt, int len);
  21. +static void ecp_protrej (int unit);
  22. */
  23. -static int ecp_printpkt __P((u_char *pkt, int len,
  24. +static int ecp_printpkt (u_char *pkt, int len,
  25. void (*printer) __P((void *, char *, ...)),
  26. - void *arg));
  27. + void *arg);
  28. /*
  29. -static void ecp_datainput __P((int unit, u_char *pkt, int len));
  30. +static void ecp_datainput (int unit, u_char *pkt, int len);
  31. */
  32. struct protent ecp_protent = {
  33. @@ -165,7 +165,7 @@ static int
  34. ecp_printpkt(p, plen, printer, arg)
  35. u_char *p;
  36. int plen;
  37. - void (*printer) __P((void *, char *, ...));
  38. + void (*printer) (void *, char *, ...);
  39. void *arg;
  40. {
  41. return 0;