]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
api.c: Remove static from cgroup_copy_controller_values()
authorTom Hromatka <tom.hromatka@oracle.com>
Wed, 15 Dec 2021 19:37:36 +0000 (19:37 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 3 Feb 2022 21:41:45 +0000 (14:41 -0700)
commitc5632b88318cb2f3f11f2a9a31619f9119456226
tree77d37f5db4ba2111a6a1fedf18c463e8970cfb10
parent251ca6c987b0cc1c88119dd74cec4d9858050ac7
api.c: Remove static from cgroup_copy_controller_values()

Remove static from cgroup_copy_controller_values() in api.c
so that other files within libcgroup can invoke it.  It will
be used by the abstraction layer code in a subsequent commit.

Also, declare *dst as a const pointer and *src as a const *
const pointer.  Subsequent abstraction layer checkins make
heavy use of const and without these changes, warnings (which
continuous integration converts to errors) are thrown.

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
src/api.c
src/libcgroup-internal.h