patch-pppd_tty_c 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --- ppp-2.4.5.orig/pppd/tty.c 2009-11-16 23:26:07.000000000 +0100
  2. +++ ppp-2.4.5/pppd/tty.c 2014-03-17 16:13:14.000000000 +0100
  3. @@ -98,28 +98,28 @@
  4. #include "fsm.h"
  5. #include "lcp.h"
  6. -void tty_process_extra_options __P((void));
  7. -void tty_check_options __P((void));
  8. -int connect_tty __P((void));
  9. -void disconnect_tty __P((void));
  10. -void tty_close_fds __P((void));
  11. -void cleanup_tty __P((void));
  12. -void tty_do_send_config __P((int, u_int32_t, int, int));
  13. +void tty_process_extra_options (void);
  14. +void tty_check_options (void);
  15. +int connect_tty (void);
  16. +void disconnect_tty (void);
  17. +void tty_close_fds (void);
  18. +void cleanup_tty (void);
  19. +void tty_do_send_config (int, u_int32_t, int, int);
  20. -static int setdevname __P((char *, char **, int));
  21. -static int setspeed __P((char *, char **, int));
  22. -static int setxonxoff __P((char **));
  23. -static int setescape __P((char **));
  24. -static void printescape __P((option_t *, void (*)(void *, char *,...),void *));
  25. -static void finish_tty __P((void));
  26. -static int start_charshunt __P((int, int));
  27. -static void stop_charshunt __P((void *, int));
  28. -static void charshunt_done __P((void *));
  29. -static void charshunt __P((int, int, char *));
  30. -static int record_write __P((FILE *, int code, u_char *buf, int nb,
  31. - struct timeval *));
  32. -static int open_socket __P((char *));
  33. -static void maybe_relock __P((void *, int));
  34. +static int setdevname (char *, char **, int);
  35. +static int setspeed (char *, char **, int);
  36. +static int setxonxoff (char **);
  37. +static int setescape (char **);
  38. +static void printescape (option_t *, void (*)(void *, char *,...),void *);
  39. +static void finish_tty (void);
  40. +static int start_charshunt (int, int);
  41. +static void stop_charshunt (void *, int);
  42. +static void charshunt_done (void *);
  43. +static void charshunt (int, int, char *);
  44. +static int record_write (FILE *, int code, u_char *buf, int nb,
  45. + struct timeval *);
  46. +static int open_socket (char *);
  47. +static void maybe_relock (void *, int);
  48. static int pty_master; /* fd for master side of pty */
  49. static int pty_slave; /* fd for slave side of pty */
  50. @@ -374,7 +374,7 @@ setescape(argv)
  51. static void
  52. printescape(opt, printer, arg)
  53. option_t *opt;
  54. - void (*printer) __P((void *, char *, ...));
  55. + void (*printer) (void *, char *, ...);
  56. void *arg;
  57. {
  58. int n;