diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-04-02 20:31:42 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-04-03 20:12:56 +0200 |
commit | 574d5f2dfc25226afc718aa5ba1a145fe5cad221 (patch) | |
tree | 01fc6b70bd622d40da1c60fd04d1f15c85aebd93 /src/hostname | |
parent | b6e8f1f03dc8b7579f8c6b00372f136d74c45232 (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/hostname')
-rw-r--r-- | src/hostname/hostnamed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c index 859b5a0784..b4d6d51402 100644 --- a/src/hostname/hostnamed.c +++ b/src/hostname/hostnamed.c @@ -289,7 +289,7 @@ static int write_data_static_hostname(void) { return 0; } - return write_one_line_file_atomic_label("/etc/hostname", data[PROP_STATIC_HOSTNAME]); + return write_string_file_atomic_label("/etc/hostname", data[PROP_STATIC_HOSTNAME]); } static int write_data_other(void) { |