Fix two compiler warnings

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2013-09-09 17:35:52 -04:00
parent c9d954b27e
commit 4bcc8c3cb5
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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) {