summaryrefslogtreecommitdiff
path: root/src/shared/fileio.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-04-02 20:31:42 +0200
committerLennart Poettering <lennart@poettering.net>2013-04-03 20:12:56 +0200
commit574d5f2dfc25226afc718aa5ba1a145fe5cad221 (patch)
tree01fc6b70bd622d40da1c60fd04d1f15c85aebd93 /src/shared/fileio.h
parentb6e8f1f03dc8b7579f8c6b00372f136d74c45232 (diff)
util: rename write_one_line_file() to write_string_file()
You can write much more than just one line with this call (and we frequently do), so let's correct the naming.
Diffstat (limited to 'src/shared/fileio.h')
-rw-r--r--src/shared/fileio.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/fileio.h b/src/shared/fileio.h
index 0023204a73..612968b93d 100644
--- a/src/shared/fileio.h
+++ b/src/shared/fileio.h
@@ -23,8 +23,8 @@
#include <stddef.h>
#include "macro.h"
-int write_one_line_file(const char *fn, const char *line);
-int write_one_line_file_atomic(const char *fn, const char *line);
+int write_string_file(const char *fn, const char *line);
+int write_string_file_atomic(const char *fn, const char *line);
int read_one_line_file(const char *fn, char **line);
int read_full_file(const char *fn, char **contents, size_t *size);