Fix two compiler warnings

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2013-09-09 17:31:10 -04:00
parent c9d954b27e
commit 4bcc8c3cb5
2 changed files with 2 additions and 1 deletions

View File

@@ -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;

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) {