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 <[email protected]>
---
src/api.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/api.c b/src/api.c
index 396621761ab1..c68de8f63b7a 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",
--
1.8.3.1
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel