diff --git a/src/import/pull-common.c b/src/import/pull-common.c index e290b94020..ecdcbd2dc2 100644 --- a/src/import/pull-common.c +++ b/src/import/pull-common.c @@ -546,7 +546,7 @@ int pull_verify(PullJob *main_job, pid = 0; if (r < 0) goto finish; - if (r > 0) { + if (r != EXIT_SUCCESS) { log_error("DOWNLOAD INVALID: Signature verification failed."); r = -EBADMSG; } else { diff --git a/src/import/pull-tar.c b/src/import/pull-tar.c index a6fb0d4953..6ee63bdad5 100644 --- a/src/import/pull-tar.c +++ b/src/import/pull-tar.c @@ -337,7 +337,7 @@ static void tar_pull_job_on_finished(PullJob *j) { i->tar_pid = 0; if (r < 0) goto finish; - if (r > 0) { + if (r != EXIT_SUCCESS) { r = -EIO; goto finish; } diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 4e892c20a3..1376497f8d 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -6132,7 +6132,7 @@ static int enable_sysv_units(const char *verb, char **args) { if (j < 0) return j; if (streq(verb, "is-enabled")) { - if (j == 0) { + if (j == EXIT_SUCCESS) { if (!arg_quiet) puts("enabled"); r = 1; @@ -6141,7 +6141,7 @@ static int enable_sysv_units(const char *verb, char **args) { puts("disabled"); } - } else if (j != 0) + } else if (j != EXIT_SUCCESS) return -EBADE; /* We don't warn here, under the assumption the script already showed an explanation */ if (found_native)