]> git.ipfire.org Git - thirdparty/systemd.git/commit
macro: introduce new PID_TO_PTR macros and make use of them
authorLennart Poettering <lennart@poettering.net>
Thu, 3 Sep 2015 11:22:51 +0000 (13:22 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 4 Sep 2015 07:07:30 +0000 (09:07 +0200)
commitfea72cc0336f4d90875cdddc1aa9739dcbb174f5
tree2df6cafa6b27564f452a8a2f2b9bfbc01d4b88b7
parenta8ba86ce6a78f2bd80529e535af3494bf8297cfd
macro: introduce new PID_TO_PTR macros and make use of them

This adds a new PID_TO_PTR() macro, plus PTR_TO_PID() and makes use of
it wherever we maintain processes in a hash table. Previously we
sometimes used LONG_TO_PTR() and other times ULONG_TO_PTR() for that,
hence let's make this more explicit and clean up things.
src/basic/cgroup-util.c
src/basic/macro.h
src/core/cgroup.c
src/core/killall.c
src/core/manager.c
src/core/unit.c