patch-pppd_fsm_h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. --- ppp-2.4.5.orig/pppd/fsm.h 2009-11-16 23:26:07.000000000 +0100
  2. +++ ppp-2.4.5/pppd/fsm.h 2014-03-17 16:13:14.000000000 +0100
  3. @@ -86,33 +86,33 @@ typedef struct fsm {
  4. typedef struct fsm_callbacks {
  5. void (*resetci) /* Reset our Configuration Information */
  6. - __P((fsm *));
  7. + (fsm *);
  8. int (*cilen) /* Length of our Configuration Information */
  9. - __P((fsm *));
  10. + (fsm *);
  11. void (*addci) /* Add our Configuration Information */
  12. - __P((fsm *, u_char *, int *));
  13. + (fsm *, u_char *, int *);
  14. int (*ackci) /* ACK our Configuration Information */
  15. - __P((fsm *, u_char *, int));
  16. + (fsm *, u_char *, int);
  17. int (*nakci) /* NAK our Configuration Information */
  18. - __P((fsm *, u_char *, int, int));
  19. + (fsm *, u_char *, int, int);
  20. int (*rejci) /* Reject our Configuration Information */
  21. - __P((fsm *, u_char *, int));
  22. + (fsm *, u_char *, int);
  23. int (*reqci) /* Request peer's Configuration Information */
  24. - __P((fsm *, u_char *, int *, int));
  25. + (fsm *, u_char *, int *, int);
  26. void (*up) /* Called when fsm reaches OPENED state */
  27. - __P((fsm *));
  28. + (fsm *);
  29. void (*down) /* Called when fsm leaves OPENED state */
  30. - __P((fsm *));
  31. + (fsm *);
  32. void (*starting) /* Called when we want the lower layer */
  33. - __P((fsm *));
  34. + (fsm *);
  35. void (*finished) /* Called when we don't want the lower layer */
  36. - __P((fsm *));
  37. + (fsm *);
  38. void (*protreject) /* Called when Protocol-Reject received */
  39. - __P((int));
  40. + (int);
  41. void (*retransmit) /* Retransmission is necessary */
  42. - __P((fsm *));
  43. + (fsm *);
  44. int (*extcode) /* Called when unknown code received */
  45. - __P((fsm *, int, int, u_char *, int));
  46. + (fsm *, int, int, u_char *, int);
  47. char *proto_name; /* String name for protocol (for messages) */
  48. } fsm_callbacks;
  49. @@ -152,14 +152,14 @@ typedef struct fsm_callbacks {
  50. /*
  51. * Prototypes
  52. */
  53. -void fsm_init __P((fsm *));
  54. -void fsm_lowerup __P((fsm *));
  55. -void fsm_lowerdown __P((fsm *));
  56. -void fsm_open __P((fsm *));
  57. -void fsm_close __P((fsm *, char *));
  58. -void fsm_input __P((fsm *, u_char *, int));
  59. -void fsm_protreject __P((fsm *));
  60. -void fsm_sdata __P((fsm *, int, int, u_char *, int));
  61. +void fsm_init (fsm *);
  62. +void fsm_lowerup (fsm *);
  63. +void fsm_lowerdown (fsm *);
  64. +void fsm_open (fsm *);
  65. +void fsm_close (fsm *, char *);
  66. +void fsm_input (fsm *, u_char *, int);
  67. +void fsm_protreject (fsm *);
  68. +void fsm_sdata (fsm *, int, int, u_char *, int);
  69. /*