chiark / gitweb /
util: rename parse_usec() to parse_sec() sinds the default unit is seconds
[elogind.git] / src / core / unit.c
index 75a49d5e24cae9a78f2c1db36f3cd1ce82456f4e..a0d36569a885f93f486f04e59aafdd30dfd7b279 100644 (file)
@@ -698,7 +698,7 @@ void unit_dump(Unit *u, FILE *f, const char *prefix) {
                 fprintf(f, "%s\tSource Path: %s\n", prefix, u->source_path);
 
         STRV_FOREACH(j, u->dropin_paths)
-                fprintf(f, "%s\tDropin Path: %s\n", prefix, *j);
+                fprintf(f, "%s\tDropIn Path: %s\n", prefix, *j);
 
         if (u->job_timeout > 0)
                 fprintf(f, "%s\tJob Timeout: %s\n", prefix, format_timespan(timespan, sizeof(timespan), u->job_timeout));
@@ -2910,7 +2910,7 @@ int unit_write_drop_in(Unit *u, bool runtime, const char *name, const char *data
                 return r;
 
         mkdir_p(p, 0755);
-        return write_one_line_file_atomic_label(q, data);
+        return write_string_file_atomic_label(q, data);
 }
 
 int unit_remove_drop_in(Unit *u, bool runtime, const char *name) {