[systemd-devel] [PATCH 3/3] systemctl: return r instead of always returning 0

Lennart Poettering lennart at poettering.net
Thu Nov 7 15:22:24 PST 2013


On Wed, 06.11.13 11:18, Michal Sekletar (msekleta at redhat.com) wrote:

Thanks! Applied!

> ---
>  src/systemctl/systemctl.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
> index 9f5e273..0c1588c 100644
> --- a/src/systemctl/systemctl.c
> +++ b/src/systemctl/systemctl.c
> @@ -1362,7 +1362,7 @@ static int list_jobs(DBusConnection *bus, char **args) {
>          }
>          free(jobs);
>  
> -        return 0;
> +        return r;
>  }
>  
>  static int cancel_job(DBusConnection *bus, char **args) {


Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list