From 574d5f2dfc25226afc718aa5ba1a145fe5cad221 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 2 Apr 2013 20:31:42 +0200 Subject: 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. --- src/sysctl/sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sysctl/sysctl.c') diff --git a/src/sysctl/sysctl.c b/src/sysctl/sysctl.c index 79f3f77676..e0ba78a2fe 100644 --- a/src/sysctl/sysctl.c +++ b/src/sysctl/sysctl.c @@ -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)); -- cgit v1.2.3-54-g00ecf