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