Make flow more obvious
authorDagobert Michelsen <dam@opencsw.org>
Thu, 28 May 2015 12:02:16 +0000 (14:02 +0200)
committerDagobert Michelsen <dam@opencsw.org>
Thu, 28 May 2015 12:02:16 +0000 (14:02 +0200)
src/zone.c

index b8cc919..cb3869d 100644 (file)
@@ -155,7 +155,8 @@ zone_scandir(DIR *procdir)
                return(NULL);
        }
 
-       for (rewinddir(procdir); (direntp = readdir(procdir)); ) {
+       rewinddir(procdir);
+       while ((direntp = readdir(procdir))) {
                pidstr = direntp->d_name;
                if (pidstr[0] == '.')   /* skip "." and ".."  */
                        continue;