initctl: minor, rename local variable

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2021-03-11 15:11:16 +01:00
parent 6b688c4211
commit 90005235e8
+2 -2
View File
@@ -567,7 +567,7 @@ static int show_status(char *arg)
if (arg && arg[0]) {
long now = jiffies();
char buf[42] = "N/A";
char uptm[42] = "N/A";
svc = client_svc_find(arg);
if (!svc)
@@ -583,7 +583,7 @@ static int show_status(char *arg)
printf("PID : %d\n", svc->pid);
printf("User : %s\n", svc->username);
printf("Group : %s\n", svc->group);
printf("Uptime : %s\n", svc->pid ? uptime(now - svc->start_time, buf, sizeof(buf)) : buf);
printf("Uptime : %s\n", svc->pid ? uptime(now - svc->start_time, uptm, sizeof(uptm)) : uptm);
printf("Runlevels : %s\n", runlevel_string(runlevel, svc->runlevels));
printf("\n");