1
0

patch-modules_if_ppp_c 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. --- ppp-2.4.5.orig/modules/if_ppp.c 2009-11-16 23:26:07.000000000 +0100
  2. +++ ppp-2.4.5/modules/if_ppp.c 2014-03-17 16:13:07.000000000 +0100
  3. @@ -80,10 +80,10 @@
  4. #define ifr_mtu ifr_metric
  5. -static int if_ppp_open __P((queue_t *, int, int, int));
  6. -static int if_ppp_close __P((queue_t *, int));
  7. -static int if_ppp_wput __P((queue_t *, mblk_t *));
  8. -static int if_ppp_rput __P((queue_t *, mblk_t *));
  9. +static int if_ppp_open (queue_t *, int, int, int);
  10. +static int if_ppp_close (queue_t *, int);
  11. +static int if_ppp_wput (queue_t *, mblk_t *);
  12. +static int if_ppp_rput (queue_t *, mblk_t *);
  13. #define PPP_IF_ID 0x8021
  14. static struct module_info minfo = {
  15. @@ -117,11 +117,11 @@ static int ppp_nalloc; /* Number of ele
  16. static struct ifnet **ifs; /* Array of pointers to interface structs */
  17. static if_ppp_t **states; /* Array of pointers to state structs */
  18. -static int if_ppp_output __P((struct ifnet *, struct mbuf *,
  19. - struct sockaddr *));
  20. -static int if_ppp_ioctl __P((struct ifnet *, u_int, caddr_t));
  21. -static struct mbuf *make_mbufs __P((mblk_t *, int));
  22. -static mblk_t *make_message __P((struct mbuf *, int));
  23. +static int if_ppp_output (struct ifnet *, struct mbuf *,
  24. + struct sockaddr *);
  25. +static int if_ppp_ioctl (struct ifnet *, u_int, caddr_t);
  26. +static struct mbuf *make_mbufs (mblk_t *, int);
  27. +static mblk_t *make_message (struct mbuf *, int);
  28. #ifdef SNIT_SUPPORT
  29. /* Fake ether header for SNIT */
  30. @@ -129,7 +129,7 @@ static struct ether_header snit_ehdr = {
  31. #endif
  32. #ifndef __osf__
  33. -static void ppp_if_detach __P((struct ifnet *));
  34. +static void ppp_if_detach (struct ifnet *);
  35. /*
  36. * Detach all the interfaces before unloading.