diff --git a/src/zone.c b/src/zone.c
index 78e91ef2e4fd7a45de50c75ecb9f4ce9d483a5ca..cb3869d69829ff04e8f908711faecf435a26602e 100644 (file)
--- a/src/zone.c
+++ b/src/zone.c
*
* Authors:
* Mathijs Mohlmann
*
* Authors:
* Mathijs Mohlmann
+ * Dagobert Michelsen (forward-porting)
**/
#define _BSD_SOURCE
**/
#define _BSD_SOURCE
return(NULL);
}
return(NULL);
}
- for (rewinddir(procdir); (direntp = readdir(procdir)); ) {
+ rewinddir(procdir);
+ while ((direntp = readdir(procdir))) {
pidstr = direntp->d_name;
if (pidstr[0] == '.') /* skip "." and ".." */
continue;
pidstr = direntp->d_name;
if (pidstr[0] == '.') /* skip "." and ".." */
continue;