mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
Fix two compiler warnings
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user