]> git.ozlabs.org Git - ppp.git/commitdiff
fix some compile bugs
authorPaul Mackerras <paulus@samba.org>
Sun, 23 Oct 1994 11:45:47 +0000 (11:45 +0000)
committerPaul Mackerras <paulus@samba.org>
Sun, 23 Oct 1994 11:45:47 +0000 (11:45 +0000)
pppd/sys-bsd.c

index 9d8e804498467ac870caae6859a44f754cc9da0d..708b9b03cd0964d34c9dcae1d4278097cf7bead5 100644 (file)
@@ -19,7 +19,7 @@
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: sys-bsd.c,v 1.14 1994/10/22 11:50:36 paulus Exp $";
+static char rcsid[] = "$Id: sys-bsd.c,v 1.15 1994/10/23 11:45:47 paulus Exp $";
 #endif
 
 /*
@@ -502,6 +502,10 @@ sifvjcomp(u, vjcomp, cidcomp, maxcid)
 /*
  * sifup - Config the interface up and enable IP packets to pass.
  */
+#ifndef SC_ENABLE_IP
+#define SC_ENABLE_IP   0x100   /* compat for old versions of kernel code */
+#endif
+
 int
 sifup(u)
     int u;
@@ -907,7 +911,7 @@ get_ether_addr(ipaddr, hwaddr)
      */
     ifend = (struct ifreq *) (ifc.ifc_buf + ifc.ifc_len);
     for (ifr = ifc.ifc_req; ifr < ifend; ifr = (struct ifreq *)
-               ((char *)&ifr->ifr_addr + ifr->ifr_addr.sa_len) {
+               ((char *)&ifr->ifr_addr + ifr->ifr_addr.sa_len)) {
        if (ifr->ifr_addr.sa_family == AF_INET) {
            ina = ((struct sockaddr_in *) &ifr->ifr_addr)->sin_addr.s_addr;
            strncpy(ifreq.ifr_name, ifr->ifr_name, sizeof(ifreq.ifr_name));