patch-modules_deflate_c 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --- ppp-2.4.5.orig/modules/deflate.c 2009-11-16 23:26:07.000000000 +0100
  2. +++ ppp-2.4.5/modules/deflate.c 2014-03-17 16:13:07.000000000 +0100
  3. @@ -80,25 +80,25 @@ struct deflate_state {
  4. #define DEFLATE_OVHD 2 /* Deflate overhead/packet */
  5. -static void *z_alloc __P((void *, u_int items, u_int size));
  6. -static void *z_alloc_init __P((void *, u_int items, u_int size));
  7. -static void z_free __P((void *, void *ptr));
  8. -static void *z_comp_alloc __P((u_char *options, int opt_len));
  9. -static void *z_decomp_alloc __P((u_char *options, int opt_len));
  10. -static void z_comp_free __P((void *state));
  11. -static void z_decomp_free __P((void *state));
  12. -static int z_comp_init __P((void *state, u_char *options, int opt_len,
  13. - int unit, int hdrlen, int debug));
  14. -static int z_decomp_init __P((void *state, u_char *options, int opt_len,
  15. - int unit, int hdrlen, int mru, int debug));
  16. -static int z_compress __P((void *state, mblk_t **mret,
  17. - mblk_t *mp, int slen, int maxolen));
  18. -static void z_incomp __P((void *state, mblk_t *dmsg));
  19. -static int z_decompress __P((void *state, mblk_t *cmp,
  20. - mblk_t **dmpp));
  21. -static void z_comp_reset __P((void *state));
  22. -static void z_decomp_reset __P((void *state));
  23. -static void z_comp_stats __P((void *state, struct compstat *stats));
  24. +static void *z_alloc (void *, u_int items, u_int size);
  25. +static void *z_alloc_init (void *, u_int items, u_int size);
  26. +static void z_free (void *, void *ptr);
  27. +static void *z_comp_alloc (u_char *options, int opt_len);
  28. +static void *z_decomp_alloc (u_char *options, int opt_len);
  29. +static void z_comp_free (void *state);
  30. +static void z_decomp_free (void *state);
  31. +static int z_comp_init (void *state, u_char *options, int opt_len,
  32. + int unit, int hdrlen, int debug);
  33. +static int z_decomp_init (void *state, u_char *options, int opt_len,
  34. + int unit, int hdrlen, int mru, int debug);
  35. +static int z_compress (void *state, mblk_t **mret,
  36. + mblk_t *mp, int slen, int maxolen);
  37. +static void z_incomp (void *state, mblk_t *dmsg);
  38. +static int z_decompress (void *state, mblk_t *cmp,
  39. + mblk_t **dmpp);
  40. +static void z_comp_reset (void *state);
  41. +static void z_decomp_reset (void *state);
  42. +static void z_comp_stats (void *state, struct compstat *stats);
  43. /*
  44. * Procedures exported to ppp_comp.c.