]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Parens.
authorRoy Marples <roy@marples.name>
Wed, 5 Nov 2008 14:36:23 +0000 (14:36 +0000)
committerRoy Marples <roy@marples.name>
Wed, 5 Nov 2008 14:36:23 +0000 (14:36 +0000)
if-linux.c

index 188a9af59d9e2eba95312acf9eb807434a09ebac..1dca9ee11b6dc00ee8563e9052fb70374827d18d 100644 (file)
@@ -437,7 +437,7 @@ discover_interfaces(int argc, char * const *argv)
        struct interface *ifs = NULL, *ifp, *ifl;
 
        if ((f = fopen("/proc/net/dev", "r"))) {
-               while (p = get_line(f)) {
+               while ((p = get_line(f))) {
                        if (++ln < 2)
                                continue;
                        n = strcspn(p, ": \t");