From: Zbigniew Jędrzejewski-Szmek Date: Mon, 9 Sep 2013 21:31:10 +0000 (-0400) Subject: Fix two compiler warnings X-Git-Tag: v207~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4bcc8c3cb57733de6eeb2528a194501fade11e6b;p=platform%2Fupstream%2Fsystemd.git Fix two compiler warnings --- diff --git a/src/run/run.c b/src/run/run.c index da8c788..18a4920 100644 --- a/src/run/run.c +++ b/src/run/run.c @@ -28,6 +28,7 @@ #include "strv.h" #include "build.h" #include "unit-name.h" +#include "path-util.h" static bool arg_scope = false; static bool arg_user = false; diff --git a/src/shared/path-util.c b/src/shared/path-util.c index 8e108db..45099ee 100644 --- a/src/shared/path-util.c +++ b/src/shared/path-util.c @@ -456,7 +456,7 @@ int find_binary(const char *name, char **filename) { FOREACH_WORD_SEPARATOR(w, l, path, ":", state) { char *p; - if (asprintf(&p, "%.*s/%s", l, w, name) < 0) + if (asprintf(&p, "%.*s/%s", (int) l, w, name) < 0) return -ENOMEM; if (access(p, X_OK) < 0) {