diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-09-09 17:31:10 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-09-09 17:35:52 -0400 |
commit | 4bcc8c3cb57733de6eeb2528a194501fade11e6b (patch) | |
tree | 75c950983b3ad00f38d7d7edec6cb7f5cb24b60e /src/shared/path-util.c | |
parent | c9d954b27ee125c3c90a6d2951c62eec4abb160b (diff) |
Fix two compiler warnings
Diffstat (limited to 'src/shared/path-util.c')
-rw-r--r-- | src/shared/path-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |