diff options
| author | Roy Marples <roy@marples.name> | 2008-09-09 19:07:37 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-09-09 19:07:37 +0000 |
| commit | 59795183289d077902f64a815c31126499a12ca2 (patch) | |
| tree | 5a1bafce0b21c431463d05f4a858e5dad46e8f04 /if-linux.c | |
| parent | 2b60ecb71e76e4a6ac765afac3ce7da87ef4464b (diff) | |
| download | dhcpcd-59795183289d077902f64a815c31126499a12ca2.tar.xz | |
Fix compile errors.
Diffstat (limited to 'if-linux.c')
| -rw-r--r-- | if-linux.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -398,7 +398,7 @@ discover_interfaces(int argc, char * const *argv) char *buffer = NULL, *p; size_t len = 0, ln = 0, n; int i; - struct interface *ifaces = NULL, *ifp, *ifl; + struct interface *ifs = NULL, *ifp, *ifl; if ((f = fopen("/proc/net/dev", "r"))) { while (get_line(&buffer, &len, f)) { @@ -410,7 +410,7 @@ discover_interfaces(int argc, char * const *argv) n = strcspn(p, ": \t"); p[n]= '\0'; ifl = NULL; - for (ifp = ifaces; ifp; ifp = ifp->next) { + for (ifp = ifs; ifp; ifp = ifp->next) { if (strcmp(ifp->name, p) == 0) break; ifl = ifp; @@ -426,9 +426,9 @@ discover_interfaces(int argc, char * const *argv) } if ((ifp = init_interface(p))) { if (ifl) - ifl->next =ifp; + ifl->next = ifp; else - ifaces = ifp; + ifs = ifp; } } fclose(f); |
