diff options
author | Guillem Jover <guillem@debian.org> | 2017-02-11 20:03:20 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2017-02-26 23:40:22 +0100 |
commit | 6031615231a9fd4ba1d462aff9a1cb08037ca184 (patch) | |
tree | d32165e302d6d08a6cfcb083d44236aab4d7163f /utils/start-stop-daemon.c | |
parent | a390de3632925cf1271523a8672dfb642caa68eb (diff) | |
download | dpkg-6031615231a9fd4ba1d462aff9a1cb08037ca184.tar.gz |
s-s-d: Rename err to ret as the former is a function on BSDs
Do not shadow the global err() with a local variable.
Diffstat (limited to 'utils/start-stop-daemon.c')
-rw-r--r-- | utils/start-stop-daemon.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/start-stop-daemon.c b/utils/start-stop-daemon.c index b641bc657..976ec72a9 100644 --- a/utils/start-stop-daemon.c +++ b/utils/start-stop-daemon.c @@ -434,10 +434,10 @@ wait_for_child(pid_t pid) fatal("error waiting for child"); if (WIFEXITED(status)) { - int err = WEXITSTATUS(status); + int ret = WEXITSTATUS(status); - if (err != 0) - fatal("child returned error exit status %d", err); + if (ret != 0) + fatal("child returned error exit status %d", ret); } else if (WIFSIGNALED(status)) { int signo = WTERMSIG(status); |