coredump: use for() loop instead of while()
authorStefan Schweter <stefan@schweter.it>
Wed, 12 Oct 2016 20:49:01 +0000 (22:49 +0200)
committerStefan Schweter <stefan@schweter.it>
Wed, 12 Oct 2016 20:49:01 +0000 (22:49 +0200)
src/coredump/coredump.c

index db60d0a..a982c20 100644 (file)
@@ -589,7 +589,7 @@ static int get_mount_namespace_leader(pid_t pid, pid_t *container_pid) {
         if (r < 0)
                 return r;
 
-        while (1) {
+        for (;;) {
                 ino_t parent_mntns;
 
                 r = get_process_ppid(cpid, &ppid);