From: Tom Hromatka Date: Sun, 5 Jan 2020 21:49:14 +0000 (-0700) Subject: api.c: Fix warning caused by misplaced const keyword X-Git-Tag: v0.42~3^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fadfc9d59534d1b929b99959be3708c598abe79;p=thirdparty%2Flibcgroup.git api.c: Fix warning caused by misplaced const keyword This commit fixes this warning in api.c: api.c:117:19: warning: duplicate ‘const’ declaration specifier [-Wduplicate-decl-specifier] 117 | static const char const *cgroup_ignored_tasks_files[] = { "tasks", NULL }; Signed-off-by: Tom Hromatka --- diff --git a/src/api.c b/src/api.c index c68de8f6..d4f6544d 100644 --- a/src/api.c +++ b/src/api.c @@ -114,7 +114,7 @@ const char * const cgroup_strerror_codes[] = { "Failed to remove a non-empty group", }; -static const char const *cgroup_ignored_tasks_files[] = { "tasks", NULL }; +static const char * const cgroup_ignored_tasks_files[] = { "tasks", NULL }; #ifndef UNIT_TEST static int cg_get_cgroups_from_proc_cgroups(pid_t pid, char *cgroup_list[],