X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fsys-linux.c;h=946a2f93033eb5e377208ba9e046bb8c0c36f3b7;hp=34830f06ba0a11e94433b814397e00dd553071b5;hb=ed3c62f8932c151c211d064f95daed3f1f208f80;hpb=7dabc25770ff656c974723282a19f4bdec8deea4 diff --git a/pppd/sys-linux.c b/pppd/sys-linux.c index 34830f0..946a2f9 100644 --- a/pppd/sys-linux.c +++ b/pppd/sys-linux.c @@ -42,7 +42,7 @@ #include #include #include -#include +#include #include #include #include @@ -1184,8 +1184,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. */