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:
+1
-1
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user