]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
api.c: Fix warning caused by misplaced const keyword
authorTom Hromatka <tom.hromatka@oracle.com>
Sun, 5 Jan 2020 21:47:27 +0000 (14:47 -0700)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 8 Jan 2020 15:01:39 +0000 (08:01 -0700)
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 <tom.hromatka@oracle.com>
src/api.c

index 396621761ab198cdc3a81d11b0021e4cb63e8560..c68de8f63b7a85d8c6fc46d36b0ab1183588ce46 100644 (file)
--- 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",