From: Kamalesh Babulal Date: Fri, 11 Aug 2023 06:55:04 +0000 (+0530) Subject: src/systemd.c: fix coding style complaint X-Git-Tag: v3.2.0~231 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dcef005a12cb3e9c608616563e42e5349f06580;p=thirdparty%2Flibcgroup.git 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 --- 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);