patch-pppd_upap_c 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --- ppp-2.4.5.orig/pppd/upap.c 2009-11-16 23:26:07.000000000 +0100
  2. +++ ppp-2.4.5/pppd/upap.c 2014-03-17 16:13:13.000000000 +0100
  3. @@ -78,13 +78,13 @@ static option_t pap_option_list[] = {
  4. /*
  5. * Protocol entry points.
  6. */
  7. -static void upap_init __P((int));
  8. -static void upap_lowerup __P((int));
  9. -static void upap_lowerdown __P((int));
  10. -static void upap_input __P((int, u_char *, int));
  11. -static void upap_protrej __P((int));
  12. -static int upap_printpkt __P((u_char *, int,
  13. - void (*) __P((void *, char *, ...)), void *));
  14. +static void upap_init (int);
  15. +static void upap_lowerup (int);
  16. +static void upap_lowerdown (int);
  17. +static void upap_input (int, u_char *, int);
  18. +static void upap_protrej (int);
  19. +static int upap_printpkt (u_char *, int,
  20. + void (*) __P((void *, char *, ...)), void *);
  21. struct protent pap_protent = {
  22. PPP_PAP,
  23. @@ -108,13 +108,13 @@ struct protent pap_protent = {
  24. upap_state upap[NUM_PPP]; /* UPAP state; one for each unit */
  25. -static void upap_timeout __P((void *));
  26. -static void upap_reqtimeout __P((void *));
  27. -static void upap_rauthreq __P((upap_state *, u_char *, int, int));
  28. -static void upap_rauthack __P((upap_state *, u_char *, int, int));
  29. -static void upap_rauthnak __P((upap_state *, u_char *, int, int));
  30. -static void upap_sauthreq __P((upap_state *));
  31. -static void upap_sresp __P((upap_state *, int, int, char *, int));
  32. +static void upap_timeout (void *);
  33. +static void upap_reqtimeout (void *);
  34. +static void upap_rauthreq (upap_state *, u_char *, int, int);
  35. +static void upap_rauthack (upap_state *, u_char *, int, int);
  36. +static void upap_rauthnak (upap_state *, u_char *, int, int);
  37. +static void upap_sauthreq (upap_state *);
  38. +static void upap_sresp (upap_state *, int, int, char *, int);
  39. /*
  40. @@ -612,7 +612,7 @@ static int
  41. upap_printpkt(p, plen, printer, arg)
  42. u_char *p;
  43. int plen;
  44. - void (*printer) __P((void *, char *, ...));
  45. + void (*printer) (void *, char *, ...);
  46. void *arg;
  47. {
  48. int code, id, len;