patch-include_net_ppp-comp_h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --- ppp-2.4.5.orig/include/net/ppp-comp.h 2009-11-16 23:26:07.000000000 +0100
  2. +++ ppp-2.4.5/include/net/ppp-comp.h 2014-03-17 16:13:07.000000000 +0100
  3. @@ -59,36 +59,36 @@ struct compressor {
  4. int compress_proto; /* CCP compression protocol number */
  5. /* Allocate space for a compressor (transmit side) */
  6. - void *(*comp_alloc) __P((u_char *options, int opt_len));
  7. + void *(*comp_alloc) (u_char *options, int opt_len);
  8. /* Free space used by a compressor */
  9. - void (*comp_free) __P((void *state));
  10. + void (*comp_free) (void *state);
  11. /* Initialize a compressor */
  12. - int (*comp_init) __P((void *state, u_char *options, int opt_len,
  13. - int unit, int hdrlen, int debug));
  14. + int (*comp_init) (void *state, u_char *options, int opt_len,
  15. + int unit, int hdrlen, int debug);
  16. /* Reset a compressor */
  17. - void (*comp_reset) __P((void *state));
  18. + void (*comp_reset) (void *state);
  19. /* Compress a packet */
  20. - int (*compress) __P((void *state, PACKETPTR *mret,
  21. - PACKETPTR mp, int orig_len, int max_len));
  22. + int (*compress) (void *state, PACKETPTR *mret,
  23. + PACKETPTR mp, int orig_len, int max_len);
  24. /* Return compression statistics */
  25. - void (*comp_stat) __P((void *state, struct compstat *stats));
  26. + void (*comp_stat) (void *state, struct compstat *stats);
  27. /* Allocate space for a decompressor (receive side) */
  28. - void *(*decomp_alloc) __P((u_char *options, int opt_len));
  29. + void *(*decomp_alloc) (u_char *options, int opt_len);
  30. /* Free space used by a decompressor */
  31. - void (*decomp_free) __P((void *state));
  32. + void (*decomp_free) (void *state);
  33. /* Initialize a decompressor */
  34. - int (*decomp_init) __P((void *state, u_char *options, int opt_len,
  35. - int unit, int hdrlen, int mru, int debug));
  36. + int (*decomp_init) (void *state, u_char *options, int opt_len,
  37. + int unit, int hdrlen, int mru, int debug);
  38. /* Reset a decompressor */
  39. - void (*decomp_reset) __P((void *state));
  40. + void (*decomp_reset) (void *state);
  41. /* Decompress a packet. */
  42. - int (*decompress) __P((void *state, PACKETPTR mp,
  43. - PACKETPTR *dmpp));
  44. + int (*decompress) (void *state, PACKETPTR mp,
  45. + PACKETPTR *dmpp);
  46. /* Update state for an incompressible packet received */
  47. - void (*incomp) __P((void *state, PACKETPTR mp));
  48. + void (*incomp) (void *state, PACKETPTR mp);
  49. /* Return decompression statistics */
  50. - void (*decomp_stat) __P((void *state, struct compstat *stats));
  51. + void (*decomp_stat) (void *state, struct compstat *stats);
  52. };
  53. #endif /* PACKETPTR */