cgroup: rename cgroup_modify_nft_set() → unit_modify_nft_set()
authorLennart Poettering <lennart@poettering.net>
Fri, 6 Oct 2023 16:38:22 +0000 (18:38 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 6 Oct 2023 16:42:22 +0000 (18:42 +0200)
commit49b6babb76c306ccf9a06845cd6a4cb2083e051a
tree969f0e32b53cdeb68c5c90e37f6c661e1026f2b9
parent64c71f4fd7ad032c8e221bcbe18b4928345db4c8
cgroup: rename cgroup_modify_nft_set() → unit_modify_nft_set()

This is the only function that cgroup.h exports that is prefixed with
cgroup_ where this does not refer to some type such as CGroupContext or
CGroupTasksMax or so. It simply operates on a unit. And it doesn't even
modify a cgroup, but just modifies an nft set.

Hence, to make the naming scheme systematic, change prefix from cgroup_
to unit_, matching the majority of the functions that operate on Unit*
in the file.
src/core/cgroup.c
src/core/cgroup.h
src/core/unit.c