Remove unnecessary casts in printfs

No functional change expected :)
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2014-05-15 15:29:58 +02:00
parent 12ed81d9c8
commit de0671ee7f
64 changed files with 221 additions and 198 deletions
+2 -2
View File
@@ -338,7 +338,7 @@ static int start_transient_service(
if (arg_unit)
name = unit_name_mangle_with_suffix(arg_unit, MANGLE_NOGLOB, ".service");
else
asprintf(&name, "run-%lu.service", (unsigned long) getpid());
asprintf(&name, "run-"PID_FMT".service", getpid());
if (!name)
return log_oom();
@@ -474,7 +474,7 @@ static int start_transient_scope(
if (arg_unit)
name = unit_name_mangle_with_suffix(arg_unit, MANGLE_NOGLOB, ".scope");
else
asprintf(&name, "run-%lu.scope", (unsigned long) getpid());
asprintf(&name, "run-"PID_FMT".scope", getpid());
if (!name)
return log_oom();