From: Tom Hromatka Date: Sun, 5 Jan 2020 21:47:27 +0000 (-0700) Subject: api.c: Fix warning caused by misplaced const keyword X-Git-Tag: v0.42~3^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2f1872841a17c2c113c3f15d74c6110faf846bd;p=thirdparty%2Flibcgroup.git api.c: Fix warning caused by misplaced const keyword This commit fixes this warning in api.c: api.c:84:12: warning: duplicate ‘const’ declaration specifier [-Wduplicate-decl-specifier] 84 | const char const *cgroup_strerror_codes[] = { Signed-off-by: Tom Hromatka --- diff --git a/src/api.c b/src/api.c index 39662176..c68de8f6 100644 --- a/src/api.c +++ b/src/api.c @@ -81,7 +81,7 @@ __thread char *cg_namespace_table[CG_CONTROLLER_MAX]; pthread_rwlock_t cg_mount_table_lock = PTHREAD_RWLOCK_INITIALIZER; struct cg_mount_table_s cg_mount_table[CG_CONTROLLER_MAX]; -const char const *cgroup_strerror_codes[] = { +const char * const cgroup_strerror_codes[] = { "Cgroup is not compiled in", "Cgroup is not mounted", "Cgroup does not exist",