patch-modules_bsd-comp_c 1.8 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --- ppp-2.4.5.orig/modules/bsd-comp.c 2009-11-16 23:26:07.000000000 +0100
  2. +++ ppp-2.4.5/modules/bsd-comp.c 2014-03-17 16:13:07.000000000 +0100
  3. @@ -148,19 +148,19 @@ struct bsd_db {
  4. #define BSD_OVHD 2 /* BSD compress overhead/packet */
  5. #define BSD_INIT_BITS BSD_MIN_BITS
  6. -static void *bsd_comp_alloc __P((u_char *options, int opt_len));
  7. -static void *bsd_decomp_alloc __P((u_char *options, int opt_len));
  8. -static void bsd_free __P((void *state));
  9. -static int bsd_comp_init __P((void *state, u_char *options, int opt_len,
  10. - int unit, int hdrlen, int debug));
  11. -static int bsd_decomp_init __P((void *state, u_char *options, int opt_len,
  12. - int unit, int hdrlen, int mru, int debug));
  13. -static int bsd_compress __P((void *state, mblk_t **mret,
  14. - mblk_t *mp, int slen, int maxolen));
  15. -static void bsd_incomp __P((void *state, mblk_t *dmsg));
  16. -static int bsd_decompress __P((void *state, mblk_t *cmp, mblk_t **dmpp));
  17. -static void bsd_reset __P((void *state));
  18. -static void bsd_comp_stats __P((void *state, struct compstat *stats));
  19. +static void *bsd_comp_alloc (u_char *options, int opt_len);
  20. +static void *bsd_decomp_alloc (u_char *options, int opt_len);
  21. +static void bsd_free (void *state);
  22. +static int bsd_comp_init (void *state, u_char *options, int opt_len,
  23. + int unit, int hdrlen, int debug);
  24. +static int bsd_decomp_init (void *state, u_char *options, int opt_len,
  25. + int unit, int hdrlen, int mru, int debug);
  26. +static int bsd_compress (void *state, mblk_t **mret,
  27. + mblk_t *mp, int slen, int maxolen);
  28. +static void bsd_incomp (void *state, mblk_t *dmsg);
  29. +static int bsd_decompress (void *state, mblk_t *cmp, mblk_t **dmpp);
  30. +static void bsd_reset (void *state);
  31. +static void bsd_comp_stats (void *state, struct compstat *stats);
  32. /*
  33. * Procedures exported to ppp_comp.c.