From f73141d7657b3f60b8669bc8386413d8a8a372c6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 3 Apr 2013 19:04:03 +0200 Subject: shared: rework env file reader Implement this with a proper state machine, so that newlines and escaped chars can appear in string assignments. This should bring the parser much closer to shell. --- src/shared/fileio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared/fileio.h') diff --git a/src/shared/fileio.h b/src/shared/fileio.h index 612968b93d..34ed3c1e97 100644 --- a/src/shared/fileio.h +++ b/src/shared/fileio.h @@ -29,5 +29,5 @@ int read_one_line_file(const char *fn, char **line); int read_full_file(const char *fn, char **contents, size_t *size); int parse_env_file(const char *fname, const char *separator, ...) _sentinel_; -int load_env_file(const char *fname, char ***l); +int load_env_file(const char *fname, const char *separator, char ***l); int write_env_file(const char *fname, char **l); -- cgit v1.2.3-54-g00ecf