patch-pppd_eap_c 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --- ppp-2.4.5.orig/pppd/eap.c 2009-11-16 23:26:07.000000000 +0100
  2. +++ ppp-2.4.5/pppd/eap.c 2014-03-17 16:13:15.000000000 +0100
  3. @@ -111,13 +111,13 @@ static option_t eap_option_list[] = {
  4. /*
  5. * Protocol entry points.
  6. */
  7. -static void eap_init __P((int unit));
  8. -static void eap_input __P((int unit, u_char *inp, int inlen));
  9. -static void eap_protrej __P((int unit));
  10. -static void eap_lowerup __P((int unit));
  11. -static void eap_lowerdown __P((int unit));
  12. -static int eap_printpkt __P((u_char *inp, int inlen,
  13. - void (*)(void *arg, char *fmt, ...), void *arg));
  14. +static void eap_init (int unit);
  15. +static void eap_input (int unit, u_char *inp, int inlen);
  16. +static void eap_protrej (int unit);
  17. +static void eap_lowerup (int unit);
  18. +static void eap_lowerdown (int unit);
  19. +static int eap_printpkt (u_char *inp, int inlen,
  20. + void (*)(void *arg, char *fmt, ...), void *arg);
  21. struct protent eap_protent = {
  22. PPP_EAP, /* protocol number */
  23. @@ -178,7 +178,7 @@ static const u_char wkmodulus[] = {
  24. };
  25. /* Local forward declarations. */
  26. -static void eap_server_timeout __P((void *arg));
  27. +static void eap_server_timeout (void *arg);
  28. /*
  29. * Convert EAP state code to printable string for debug.
  30. @@ -2144,7 +2144,7 @@ static int
  31. eap_printpkt(inp, inlen, printer, arg)
  32. u_char *inp;
  33. int inlen;
  34. -void (*printer) __P((void *, char *, ...));
  35. +void (*printer) (void *, char *, ...);
  36. void *arg;
  37. {
  38. int code, id, len, rtype, vallen;