aboutsummaryrefslogtreecommitdiffstats
path: root/src/satd-run.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-31 18:11:44 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-31 18:11:44 +0100
commitea34e252fcd9dc41f5e3a3b68cafe417271a5515 (patch)
treef492e216aedf607fb7bd5b744fc1a6f2b8adb697 /src/satd-run.c
parentm (diff)
downloadsat-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.c5
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;