X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fsys-osf.c;h=257df0a6a06d06158fa8c96126c95d87f7f96976;hp=5f8233ebb8ca0d79e3094a6bd21a7df9846f40ca;hb=df5571391641b9086171b6a07b8b63618a08c535;hpb=b6101aaab41daebf1df13747af0923f51d5c549b diff --git a/pppd/sys-osf.c b/pppd/sys-osf.c index 5f8233e..257df0a 100644 --- a/pppd/sys-osf.c +++ b/pppd/sys-osf.c @@ -19,7 +19,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: sys-osf.c,v 1.6 1996/01/01 23:07:07 paulus Exp $"; +static char rcsid[] = "$Id: sys-osf.c,v 1.7 1996/01/18 03:23:04 paulus Exp $"; #endif /* @@ -1193,7 +1193,7 @@ get_ether_addr(ipaddr, hwaddr) * address on the same subnet as `ipaddr'. */ ifend = (struct ifreq *) (ifc.ifc_buf + ifc.ifc_len); - for (ifr = ifc.ifc_req; ifr < ifend; ) { + for (ifr = ifc.ifc_req; ifr < ifend; ++ifr) { 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)); @@ -1218,7 +1218,6 @@ get_ether_addr(ipaddr, hwaddr) break; } - ifr++; } if (ifr >= ifend)