X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fsys-osf.c;h=8cd7710b7a4989e72c4c5b8782f33b20c4867f02;hp=66fc07d0856e2da1d44be01968535228fab3783a;hb=7dabc25770ff656c974723282a19f4bdec8deea4;hpb=0a453eda9892660c2b41922e3e1567bf2d9907a0 diff --git a/pppd/sys-osf.c b/pppd/sys-osf.c index 66fc07d..8cd7710 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.2 1995/04/27 00:44:46 paulus Exp $"; +static char rcsid[] = "$Id: sys-osf.c,v 1.3 1995/04/28 06:26:23 paulus Exp $"; #endif /* @@ -1193,8 +1193,7 @@ GetMask(addr) return mask; } 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)) { + for (ifr = ifc.ifc_req; ifr < ifend; ++ifr) { /* * Check the interface's internet address. */