chiark / gitweb /
util: rename write_one_line_file() to write_string_file()
[elogind.git] / src / core / execute.c
index f7353579e9ff4fa517c8d3e19ed1ace52618b7dd..91815b838e374ab5cea304f2872012137f4d1a63 100644 (file)
@@ -1195,7 +1195,7 @@ int exec_spawn(ExecCommand *command,
                         snprintf(t, sizeof(t), "%i", context->oom_score_adjust);
                         char_array_0(t);
 
-                        if (write_one_line_file("/proc/self/oom_score_adj", t) < 0) {
+                        if (write_string_file("/proc/self/oom_score_adj", t) < 0) {
                                 err = -errno;
                                 r = EXIT_OOM_ADJUST;
                                 goto fail_child;