]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/env-file.h
env-util: make write_env_file() optionally take headers
[thirdparty/systemd.git] / src / basic / env-file.h
index 2465eeddf4d6e3d7de6ac629783a9967d1f88b48..a9714cfd53a79ef00f2f1d5b4c0a0a2a07fcc4a3 100644 (file)
@@ -19,7 +19,4 @@ int load_env_file_pairs_fd(int fd, const char *fname, char ***ret);
 
 int merge_env_file(char ***env, FILE *f, const char *fname);
 
-int write_env_file_at(int dir_fd, const char *fname, char **l);
-static inline int write_env_file(const char *fname, char **l) {
-        return write_env_file_at(AT_FDCWD, fname, l);
-}
+int write_env_file(int dir_fd, const char *fname, char **headers, char **l);