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.
This commit is contained in:
Lennart Poettering
2013-04-03 20:12:56 +02:00
parent b6e8f1f03d
commit 574d5f2dfc
22 changed files with 42 additions and 48 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ static int apply_sysctl(const char *property, const char *value) {
}
}
k = write_one_line_file(p, value);
k = write_string_file(p, value);
if (k < 0) {
log_full(k == -ENOENT ? LOG_DEBUG : LOG_WARNING,
"Failed to write '%s' to '%s': %s", value, p, strerror(-k));