chiark / gitweb /
util: rename write_one_line_file() to write_string_file()
[elogind.git] / src / hostname / hostnamed.c
index 859b5a07845400ce1bd86523f642422415802d53..b4d6d51402c71b7c84344ef452030302c8e07979 100644 (file)
@@ -289,7 +289,7 @@ static int write_data_static_hostname(void) {
 
                 return 0;
         }
-        return write_one_line_file_atomic_label("/etc/hostname", data[PROP_STATIC_HOSTNAME]);
+        return write_string_file_atomic_label("/etc/hostname", data[PROP_STATIC_HOSTNAME]);
 }
 
 static int write_data_other(void) {