]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
coredump: use for() loop instead of while() 4363/head
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 db60d0af7a0703be91ca22c39668586026d851f3..a982c204be9ff9b6a08abab12cb9059ff9e69126 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);