From 2ad8416dd057e7e3185169609ca3006e7649f576 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Wed, 8 Jan 2014 17:41:41 -0500 Subject: No need to canonicalize fixed paths --- src/shared/path-util.c | 4 ++-- src/shared/path-util.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/shared') diff --git a/src/shared/path-util.c b/src/shared/path-util.c index 2cc2b2d4b7..fc42a704b7 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); diff --git a/src/shared/path-util.h b/src/shared/path-util.h index 4b74fe077e..178bed5f17 100644 --- a/src/shared/path-util.h +++ b/src/shared/path-util.h @@ -55,7 +55,7 @@ int path_is_os_tree(const char *path); int find_binary(const char *name, char **filename); -bool paths_check_timestamp(char **paths, usec_t *paths_ts_usec, bool update); +bool paths_check_timestamp(const char* const* paths, usec_t *paths_ts_usec, bool update); /* Iterates through the path prefixes of the specified path, going up * the tree, to root. Also returns "" (and not "/"!) for the root -- cgit v1.2.3-54-g00ecf