From 4bcc8c3cb57733de6eeb2528a194501fade11e6b Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Mon, 9 Sep 2013 17:31:10 -0400 Subject: Fix two compiler warnings --- src/shared/path-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared') diff --git a/src/shared/path-util.c b/src/shared/path-util.c index 8e108db531..45099eeda8 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) { -- cgit v1.2.3-54-g00ecf