diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2015-12-31 18:11:44 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2015-12-31 18:11:44 +0100 |
commit | ea34e252fcd9dc41f5e3a3b68cafe417271a5515 (patch) | |
tree | f492e216aedf607fb7bd5b744fc1a6f2b8adb697 /src/satd-run.c | |
parent | m (diff) | |
download | sat-ea34e252fcd9dc41f5e3a3b68cafe417271a5515.tar.gz sat-ea34e252fcd9dc41f5e3a3b68cafe417271a5515.tar.bz2 sat-ea34e252fcd9dc41f5e3a3b68cafe417271a5515.tar.xz |
fix some errors
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r-- | src/satd-run.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/satd-run.c b/src/satd-run.c index 00b642e..9543ca4 100644 --- a/src/satd-run.c +++ b/src/satd-run.c @@ -53,9 +53,8 @@ main(int argc, char *argv[]) for (arg = msg_argv; *arg; arg++) t (remove_job(*arg, 1) && errno); } else { - for (;;) - if (remove_job(NULL, 1)) - t (errno); + while (!remove_job(NULL, 1)); + t (errno); } DAEMON_CLEANUP_START; |