squid: update to 6.13
[openadk.git] / package / ppp / patches / patch-pppd_tty_c
blobded8db3dd4019a0f1bb67697d90ac3276bb7bdc0
1 --- ppp-2.4.7.orig/pppd/tty.c   2014-08-09 14:31:39.000000000 +0200
2 +++ ppp-2.4.7/pppd/tty.c        2015-06-09 11:14:41.000000000 +0200
3 @@ -98,28 +98,28 @@
4  #include "fsm.h"
5  #include "lcp.h"
6  
7 -void tty_process_extra_options __P((void));
8 -void tty_check_options __P((void));
9 -int  connect_tty __P((void));
10 -void disconnect_tty __P((void));
11 -void tty_close_fds __P((void));
12 -void cleanup_tty __P((void));
13 -void tty_do_send_config __P((int, u_int32_t, int, int));
14 +void tty_process_extra_options (void);
15 +void tty_check_options (void);
16 +int  connect_tty (void);
17 +void disconnect_tty (void);
18 +void tty_close_fds (void);
19 +void cleanup_tty (void);
20 +void tty_do_send_config (int, u_int32_t, int, int);
22 -static int setdevname __P((char *, char **, int));
23 -static int setspeed __P((char *, char **, int));
24 -static int setxonxoff __P((char **));
25 -static int setescape __P((char **));
26 -static void printescape __P((option_t *, void (*)(void *, char *,...),void *));
27 -static void finish_tty __P((void));
28 -static int start_charshunt __P((int, int));
29 -static void stop_charshunt __P((void *, int));
30 -static void charshunt_done __P((void *));
31 -static void charshunt __P((int, int, char *));
32 -static int record_write __P((FILE *, int code, u_char *buf, int nb,
33 -                            struct timeval *));
34 -static int open_socket __P((char *));
35 -static void maybe_relock __P((void *, int));
36 +static int setdevname (char *, char **, int);
37 +static int setspeed (char *, char **, int);
38 +static int setxonxoff (char **);
39 +static int setescape (char **);
40 +static void printescape (option_t *, void (*)(void *, char *,...),void *);
41 +static void finish_tty (void);
42 +static int start_charshunt (int, int);
43 +static void stop_charshunt (void *, int);
44 +static void charshunt_done (void *);
45 +static void charshunt (int, int, char *);
46 +static int record_write (FILE *, int code, u_char *buf, int nb,
47 +                            struct timeval *);
48 +static int open_socket (char *);
49 +static void maybe_relock (void *, int);
51  static int pty_master;         /* fd for master side of pty */
52  static int pty_slave;          /* fd for slave side of pty */
53 @@ -378,7 +378,7 @@ setescape(argv)
54  static void
55  printescape(opt, printer, arg)
56      option_t *opt;
57 -    void (*printer) __P((void *, char *, ...));
58 +    void (*printer) (void *, char *, ...);
59      void *arg;
60  {
61         int n;