chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
util.h: fix typo
[elogind.git]
/
src
/
shared
/
path-util.c
diff --git
a/src/shared/path-util.c
b/src/shared/path-util.c
index 5bc5012fe89ed61900f038dd260d348593ec58fd..57554cd294613eed7068c6a978edb0f01149f768 100644
(file)
--- a/
src/shared/path-util.c
+++ b/
src/shared/path-util.c
@@
-574,7
+574,7
@@
int find_binary(const char *name, char **filename) {
return 0;
} else {
const char *path;
return 0;
} else {
const char *path;
- c
har *state, *w
;
+ c
onst char *word, *state
;
size_t l;
/**
size_t l;
/**
@@
-585,10
+585,10
@@
int find_binary(const char *name, char **filename) {
if (!path)
path = DEFAULT_PATH;
if (!path)
path = DEFAULT_PATH;
- FOREACH_WORD_SEPARATOR(w, l, path, ":", state) {
+ FOREACH_WORD_SEPARATOR(w
ord
, l, path, ":", state) {
_cleanup_free_ char *p = NULL;
_cleanup_free_ char *p = NULL;
- if (asprintf(&p, "%.*s/%s", (int) l, w, name) < 0)
+ if (asprintf(&p, "%.*s/%s", (int) l, w
ord
, name) < 0)
return -ENOMEM;
if (access(p, X_OK) < 0)
return -ENOMEM;
if (access(p, X_OK) < 0)