projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7f1334
)
coredump: use for() loop instead of while()
author
Stefan Schweter
<stefan@schweter.it>
Wed, 12 Oct 2016 20:49:01 +0000
(22:49 +0200)
committer
Stefan Schweter
<stefan@schweter.it>
Wed, 12 Oct 2016 20:49:01 +0000
(22:49 +0200)
src/coredump/coredump.c
patch
|
blob
|
history
diff --git
a/src/coredump/coredump.c
b/src/coredump/coredump.c
index
db60d0a
..
a982c20
100644
(file)
--- 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);