]> git.ozlabs.org Git - ppp.git/commitdiff
pppd: Add declarations to eliminate compile warnings
authorPaul Mackerras <paulus@samba.org>
Sun, 9 Mar 2014 06:43:11 +0000 (17:43 +1100)
committerPaul Mackerras <paulus@samba.org>
Sun, 9 Mar 2014 06:43:11 +0000 (17:43 +1100)
This adds declarations for sif6up, sif6down and setifstate in order
to eliminate warnings about implicit function declarations.

Signed-off-by: Paul Mackerras <paulus@samba.org>
pppd/pppd.h
pppd/sys-linux.c

index 47e4d9ad40c36e692b97be97d268116fb8b0ef46..7c341006bc18ce28b9707253db42089b803d4902 100644 (file)
@@ -657,6 +657,8 @@ int  cifaddr __P((int, u_int32_t, u_int32_t));
                                /* Reset i/f IP addresses */
 #ifdef INET6
 int  ether_to_eui64(eui64_t *p_eui64); /* convert eth0 hw address to EUI64 */
                                /* Reset i/f IP addresses */
 #ifdef INET6
 int  ether_to_eui64(eui64_t *p_eui64); /* convert eth0 hw address to EUI64 */
+int  sif6up __P((int));                /* Configure i/f up for IPv6 */
+int  sif6down __P((int));      /* Configure i/f down for IPv6 */
 int  sif6addr __P((int, eui64_t, eui64_t));
                                /* Configure IPv6 addresses for i/f */
 int  cif6addr __P((int, eui64_t, eui64_t));
 int  sif6addr __P((int, eui64_t, eui64_t));
                                /* Configure IPv6 addresses for i/f */
 int  cif6addr __P((int, eui64_t, eui64_t));
index a0af43b4e368f3a10b44f93c5b51d3ddf26c4a7c..a40d00c1926908575f1e12a23d35bec32d6596e6 100644 (file)
@@ -240,6 +240,7 @@ static void decode_version (char *buf, int *version, int *mod, int *patch);
 static int set_kdebugflag(int level);
 static int ppp_registered(void);
 static int make_ppp_unit(void);
 static int set_kdebugflag(int level);
 static int ppp_registered(void);
 static int make_ppp_unit(void);
+static int setifstate (int u, int state);
 
 extern u_char  inpacket_buf[]; /* borrowed from main.c */
 
 
 extern u_char  inpacket_buf[]; /* borrowed from main.c */
 
@@ -2321,7 +2322,7 @@ int sif6down (int u)
  * setifstate - Config the interface up or down
  */
 
  * setifstate - Config the interface up or down
  */
 
-int setifstate (int u, int state)
+static int setifstate (int u, int state)
 {
     struct ifreq ifr;
 
 {
     struct ifreq ifr;