aboutsummaryrefslogtreecommitdiffstats
path: root/src/satd-run.c
diff options
context:
space:
mode:
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;