patch-chat_chat_c 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. --- ppp-2.4.5.orig/chat/chat.c 2009-11-16 23:26:07.000000000 +0100
  2. +++ ppp-2.4.5/chat/chat.c 2014-03-17 16:13:08.000000000 +0100
  3. @@ -209,39 +209,39 @@ int clear_report_next = 0;
  4. int say_next = 0, hup_next = 0;
  5. -void *dup_mem __P((void *b, size_t c));
  6. -void *copy_of __P((char *s));
  7. -char *grow __P((char *s, char **p, size_t len));
  8. -void usage __P((void));
  9. -void msgf __P((const char *fmt, ...));
  10. -void fatal __P((int code, const char *fmt, ...));
  11. -SIGTYPE sigalrm __P((int signo));
  12. -SIGTYPE sigint __P((int signo));
  13. -SIGTYPE sigterm __P((int signo));
  14. -SIGTYPE sighup __P((int signo));
  15. -void unalarm __P((void));
  16. -void init __P((void));
  17. -void set_tty_parameters __P((void));
  18. -void echo_stderr __P((int));
  19. -void break_sequence __P((void));
  20. -void terminate __P((int status));
  21. -void do_file __P((char *chat_file));
  22. -int get_string __P((register char *string));
  23. -int put_string __P((register char *s));
  24. -int write_char __P((int c));
  25. -int put_char __P((int c));
  26. -int get_char __P((void));
  27. -void chat_send __P((register char *s));
  28. -char *character __P((int c));
  29. -void chat_expect __P((register char *s));
  30. -char *clean __P((register char *s, int sending));
  31. -void break_sequence __P((void));
  32. -void terminate __P((int status));
  33. -void pack_array __P((char **array, int end));
  34. -char *expect_strtok __P((char *, char *));
  35. -int vfmtmsg __P((char *, int, const char *, va_list)); /* vsprintf++ */
  36. +void *dup_mem (void *b, size_t c);
  37. +void *copy_of (char *s);
  38. +char *grow (char *s, char **p, size_t len);
  39. +void usage (void);
  40. +void msgf (const char *fmt, ...);
  41. +void fatal (int code, const char *fmt, ...);
  42. +SIGTYPE sigalrm (int signo);
  43. +SIGTYPE sigint (int signo);
  44. +SIGTYPE sigterm (int signo);
  45. +SIGTYPE sighup (int signo);
  46. +void unalarm (void);
  47. +void init (void);
  48. +void set_tty_parameters (void);
  49. +void echo_stderr (int);
  50. +void break_sequence (void);
  51. +void terminate (int status);
  52. +void do_file (char *chat_file);
  53. +int get_string (register char *string);
  54. +int put_string (register char *s);
  55. +int write_char (int c);
  56. +int put_char (int c);
  57. +int get_char (void);
  58. +void chat_send (register char *s);
  59. +char *character (int c);
  60. +void chat_expect (register char *s);
  61. +char *clean (register char *s, int sending);
  62. +void break_sequence (void);
  63. +void terminate (int status);
  64. +void pack_array (char **array, int end);
  65. +char *expect_strtok (char *, char *);
  66. +int vfmtmsg (char *, int, const char *, va_list); /* vsprintf++ */
  67. -int main __P((int, char *[]));
  68. +int main (int, char *[]);
  69. void *dup_mem(b, c)
  70. void *b;