From 9dcef005a12cb3e9c608616563e42e5349f06580 Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Fri, 11 Aug 2023 12:25:04 +0530 Subject: [PATCH] src/systemd.c: fix coding style complaint Fix the checkpatch.pl warnings, making it coding style complaint. Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- src/systemd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/systemd.c b/src/systemd.c index 642fc29e..2fab7ccc 100644 --- a/src/systemd.c +++ b/src/systemd.c @@ -124,7 +124,7 @@ int cgroup_create_scope(const char * const scope_name, const char * const slice_ } if (child_pid == 0) { - char *args[] = {"libcgroup_systemd_idle_thread", NULL}; + static char * const args[] = {"libcgroup_systemd_idle_thread", NULL}; /* * Have the child sleep forever. Systemd will delete the scope if @@ -241,7 +241,7 @@ int cgroup_create_scope(const char * const scope_name, const char * const slice_ } /* The callback will null out the job_path pointer on completion */ - while(job_path) { + while (job_path) { sdret = sd_bus_process(bus, NULL); if (sdret < 0) { cgroup_err("failed to process the sd bus: %d\n", errno); -- 2.47.2