summaryrefslogtreecommitdiff
path: root/src/coredump
diff options
context:
space:
mode:
authorStefan Schweter <stefan@schweter.it>2016-10-12 22:49:01 +0200
committerStefan Schweter <stefan@schweter.it>2016-10-12 22:49:01 +0200
commitaa7530d6817b0712c0795bbcdeffd4001ec19467 (patch)
tree2dc2dbd9e16cff9a5664336b12fb39aa88bbdebd /src/coredump
parente7f1334f07e361290f3c682565963f8c0166f132 (diff)
coredump: use for() loop instead of while()
Diffstat (limited to 'src/coredump')
-rw-r--r--src/coredump/coredump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c
index db60d0af7a..a982c204be 100644
--- a/src/coredump/coredump.c
+++ b/src/coredump/coredump.c
@@ -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);