patch-pppdump_bsd-comp_c 1.3 KB

123456789101112131415161718192021222324252627
  1. --- ppp-2.4.5.orig/pppdump/bsd-comp.c 2009-11-16 23:26:07.000000000 +0100
  2. +++ ppp-2.4.5/pppdump/bsd-comp.c 2014-03-17 16:13:08.000000000 +0100
  3. @@ -124,15 +124,15 @@ struct bsd_db {
  4. #define BSD_OVHD 2 /* BSD compress overhead/packet */
  5. #define BSD_INIT_BITS BSD_MIN_BITS
  6. -static void *bsd_decomp_alloc __P((u_char *options, int opt_len));
  7. -static void bsd_free __P((void *state));
  8. -static int bsd_decomp_init __P((void *state, u_char *options, int opt_len,
  9. - int unit, int hdrlen, int mru, int debug));
  10. -static void bsd_incomp __P((void *state, u_char *dmsg, int len));
  11. -static int bsd_decompress __P((void *state, u_char *cmp, int inlen,
  12. - u_char *dmp, int *outlen));
  13. -static void bsd_reset __P((void *state));
  14. -static void bsd_comp_stats __P((void *state, struct compstat *stats));
  15. +static void *bsd_decomp_alloc (u_char *options, int opt_len);
  16. +static void bsd_free (void *state);
  17. +static int bsd_decomp_init (void *state, u_char *options, int opt_len,
  18. + int unit, int hdrlen, int mru, int debug);
  19. +static void bsd_incomp (void *state, u_char *dmsg, int len);
  20. +static int bsd_decompress (void *state, u_char *cmp, int inlen,
  21. + u_char *dmp, int *outlen);
  22. +static void bsd_reset (void *state);
  23. +static void bsd_comp_stats (void *state, struct compstat *stats);
  24. /*
  25. * Exported procedures.