]> git.ozlabs.org Git - ppp.git/commitdiff
minor changes so it compiles with pre-ansi compiler;
authorPaul Mackerras <paulus@samba.org>
Mon, 8 Mar 1999 05:34:46 +0000 (05:34 +0000)
committerPaul Mackerras <paulus@samba.org>
Mon, 8 Mar 1999 05:34:46 +0000 (05:34 +0000)
move hangup_modem back into main.c

pppd/ipcp.c
pppd/main.c
pppd/options.c
pppd/pppd.h
pppd/sys-linux.c
pppd/sys-sunos4.c
pppd/sys-svr4.c

index 724a86bbc851dbc5ccdfbaf414115d579b9b9f4a..225e30a1bc66a14fd40ab56cd056231da910dd22 100644 (file)
@@ -18,7 +18,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: ipcp.c,v 1.36 1999/03/02 05:35:09 paulus Exp $";
+static char rcsid[] = "$Id: ipcp.c,v 1.37 1999/03/08 05:34:43 paulus Exp $";
 #endif
 
 /*
 #endif
 
 /*
@@ -1605,7 +1605,8 @@ ipcp_finished(f)
  * has finished.
  */
 static void
  * has finished.
  */
 static void
-ipcp_script_done(void *arg)
+ipcp_script_done(arg)
+    void *arg;
 {
     ipcp_script_pid = 0;
     switch (ipcp_script_state) {
 {
     ipcp_script_pid = 0;
     switch (ipcp_script_state) {
index 4ec593e067ce6cff787b8101f60cb707faf7cda4..092195471e35c730287e5b80e9cf3e0f80e890c1 100644 (file)
@@ -18,7 +18,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: main.c,v 1.56 1999/03/06 11:28:10 paulus Exp $";
+static char rcsid[] = "$Id: main.c,v 1.57 1999/03/08 05:34:43 paulus Exp $";
 #endif
 
 #include <stdio.h>
 #endif
 
 #include <stdio.h>
@@ -854,6 +854,15 @@ close_tty()
     ttyfd = -1;
 }
 
     ttyfd = -1;
 }
 
+/*
+ * hangup_modem - hang up the modem by clearing DTR.
+ */
+void hangup_modem(ttyfd)
+    int ttyfd;
+{
+    setdtr(ttyfd, 0);
+}
+
 
 struct callout {
     struct timeval     c_time;         /* time at which to call routine */
 
 struct callout {
     struct timeval     c_time;         /* time at which to call routine */
index cc7002352b330a7db1dee2a76b11b625aee43c74..2371ed3fba0a67fdf46030e89bc1eff67f82c25d 100644 (file)
@@ -18,7 +18,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: options.c,v 1.49 1999/03/08 01:47:24 paulus Exp $";
+static char rcsid[] = "$Id: options.c,v 1.50 1999/03/08 05:34:44 paulus Exp $";
 #endif
 
 #include <ctype.h>
 #endif
 
 #include <ctype.h>
@@ -472,7 +472,8 @@ options_for_tty()
  * This could be optimized by using a hash table.
  */
 static option_t *
  * This could be optimized by using a hash table.
  */
 static option_t *
-find_option(char *name)
+find_option(name)
+    char *name;
 {
     option_t *opt;
     int i;
 {
     option_t *opt;
     int i;
@@ -617,7 +618,8 @@ process_option(opt, argv)
  * n_arguments - tell how many arguments an option takes
  */
 static int
  * n_arguments - tell how many arguments an option takes
  */
 static int
-n_arguments(option_t *opt)
+n_arguments(opt)
+    option_t *opt;
 {
     return (opt->type == o_bool || opt->type == o_special_noarg
            || (opt->flags & OPT_NOARG))? 0: 1;
 {
     return (opt->type == o_bool || opt->type == o_special_noarg
            || (opt->flags & OPT_NOARG))? 0: 1;
index 509015c9f4c1107bd344ffc58e5c4512d3f4c8e5..2388b7859a7fdb409022467044e4ce7ffc77b781 100644 (file)
@@ -16,7 +16,7 @@
  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
- * $Id: pppd.h,v 1.27 1999/03/06 11:28:11 paulus Exp $
+ * $Id: pppd.h,v 1.28 1999/03/08 05:34:45 paulus Exp $
  */
 
 /*
  */
 
 /*
@@ -244,6 +244,7 @@ int fmtmsg __P((char *, int, char *, ...));         /* sprintf++ */
 int vfmtmsg __P((char *, int, char *, va_list));       /* vsprintf++ */
 void script_setenv __P((char *, char *));      /* set script env var */
 void script_unsetenv __P((char *));            /* unset script env var */
 int vfmtmsg __P((char *, int, char *, va_list));       /* vsprintf++ */
 void script_setenv __P((char *, char *));      /* set script env var */
 void script_unsetenv __P((char *));            /* unset script env var */
+void hangup_modem __P((int));  /* Make modem hang up */
 
 /* Procedures exported from auth.c */
 void link_required __P((int));   /* we are starting to use the link */
 
 /* Procedures exported from auth.c */
 void link_required __P((int));   /* we are starting to use the link */
@@ -345,7 +346,6 @@ void logwtmp __P((const char *, const char *, const char *));
                                /* Write entry to wtmp file */
 int  get_host_seed __P((void));        /* Get host-dependent random number seed */
 int  have_route_to __P((u_int32_t)); /* Check if route to addr exists */
                                /* Write entry to wtmp file */
 int  get_host_seed __P((void));        /* Get host-dependent random number seed */
 int  have_route_to __P((u_int32_t)); /* Check if route to addr exists */
-void hangup_modem __P((int));  /* Make modem hang up */
 #ifdef PPP_FILTER
 int  set_filters __P((struct bpf_program *pass, struct bpf_program *active));
                                /* Set filter programs in kernel */
 #ifdef PPP_FILTER
 int  set_filters __P((struct bpf_program *pass, struct bpf_program *active));
                                /* Set filter programs in kernel */
index 061a94f0c3515f2eb150228224c8e65017ce4028..7514063af702ec5712a657671e675485a582ac08 100644 (file)
@@ -741,14 +741,6 @@ void set_up_tty(int tty_fd, int local)
     restore_term = TRUE;
   }
 
     restore_term = TRUE;
   }
 
-/*
- * hangup_modem - hang up the modem by clearing DTR.
- */
-void hangup_modem(int ttyfd)
-{
-    setdtr(ttyfd, 0);
-}
-
 /********************************************************************
  *
  * setdtr - control the DTR line on the serial port.
 /********************************************************************
  *
  * setdtr - control the DTR line on the serial port.
index 615a548f674d45c263bd37c4d341524a590f11e3..75bc29f4552665f14f376b271ed56849b8015528 100644 (file)
@@ -26,7 +26,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: sys-sunos4.c,v 1.11 1999/03/08 01:46:24 paulus Exp $";
+static char rcsid[] = "$Id: sys-sunos4.c,v 1.12 1999/03/08 05:34:46 paulus Exp $";
 #endif
 
 #include <stdio.h>
 #endif
 
 #include <stdio.h>
@@ -1224,7 +1224,8 @@ get_ether_addr(ipaddr, hwaddr)
  * For demand mode to work properly, we have to ignore routes
  * through our own interface.
  */
  * For demand mode to work properly, we have to ignore routes
  * through our own interface.
  */
-int have_route_to(u_int32_t addr)
+int have_route_to(addr)
+    u_int32_t addr;
 {
     return -1;
 }
 {
     return -1;
 }
index 7724bc6d31d9263d3902eaf9ecb5502132e339ab..d525064e10dd54f3ba6094dbb7cb183ee6f19b07 100644 (file)
@@ -26,7 +26,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: sys-svr4.c,v 1.22 1999/03/08 04:48:48 paulus Exp $";
+static char rcsid[] = "$Id: sys-svr4.c,v 1.23 1999/03/08 05:34:46 paulus Exp $";
 #endif
 
 #include <limits.h>
 #endif
 
 #include <limits.h>
@@ -628,14 +628,6 @@ restore_tty(fd)
     }
 }
 
     }
 }
 
-/*
- * hangup_modem - hang up the modem by clearing DTR.
- */
-void hangup_modem(int ttyfd)
-{
-    setdtr(ttyfd, 0);
-}
-
 /*
  * setdtr - control the DTR line on the serial port.
  * This is called from die(), so it shouldn't call die().
 /*
  * setdtr - control the DTR line on the serial port.
  * This is called from die(), so it shouldn't call die().