diff options
author | Michael Marineau <michael.marineau@coreos.com> | 2014-03-13 21:32:12 -0700 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-03-14 09:31:34 -0400 |
commit | 4cf7ea556aa1e74f9b34d4467f36d46a1bb25da3 (patch) | |
tree | 78f02d17358dff9db9d00fa3aa27625dd552c2aa /src/shared/util.h | |
parent | 315db1a8aed226a51a4cf700172249cfd10ae115 (diff) |
shared: add root argument to search_and_fopen
This adds the same root argument to search_and_fopen that
conf_files_list already has. Tools that use those two functions as a
pair can now be easily modified to load configuration files from an
alternate root filesystem tree.
Diffstat (limited to 'src/shared/util.h')
-rw-r--r-- | src/shared/util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/util.h b/src/shared/util.h index 81831e2771..e99f8d1123 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -696,8 +696,8 @@ char *strip_tab_ansi(char **p, size_t *l); int on_ac_power(void); -int search_and_fopen(const char *path, const char *mode, const char **search, FILE **_f); -int search_and_fopen_nulstr(const char *path, const char *mode, const char *search, FILE **_f); +int search_and_fopen(const char *path, const char *mode, const char *root, const char **search, FILE **_f); +int search_and_fopen_nulstr(const char *path, const char *mode, const char *root, const char *search, FILE **_f); #define FOREACH_LINE(line, f, on_error) \ for (;;) \ |