chiark / gitweb /
util: rename write_one_line_file() to write_string_file()
[elogind.git] / src / sysctl / sysctl.c
index 79f3f77676c81efdf3cc584123d9131e23402d0d..e0ba78a2fe240ea13df2bc4eb384f5c53638a46d 100644 (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));