X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Fpath-util.c;h=fc42a704b7fd77742da60639333e848452e90d6b;hp=384386177947fdb7cc9c14df1942949a88a17631;hb=4e2f8d27781731021aa6b96c0ee18a8966eefe1c;hpb=2b6bf07dd23bb467099d213c97b3875c5e453491 diff --git a/src/shared/path-util.c b/src/shared/path-util.c index 384386177..fc42a704b 100644 --- a/src/shared/path-util.c +++ b/src/shared/path-util.c @@ -464,9 +464,9 @@ int find_binary(const char *name, char **filename) { } } -bool paths_check_timestamp(char **paths, usec_t *timestamp, bool update) { +bool paths_check_timestamp(const char* const* paths, usec_t *timestamp, bool update) { bool changed = false; - char **i; + const char* const* i; assert(timestamp); @@ -486,7 +486,7 @@ bool paths_check_timestamp(char **paths, usec_t *timestamp, bool update) { if (*timestamp >= u) continue; - log_debug("timestamp of '%s' changed\n", *i); + log_debug("timestamp of '%s' changed", *i); /* update timestamp */ if (update) {