]> git.ipfire.org Git - thirdparty/systemd.git/commit
basic/capability-util: let cap_last_cap() return unsigned integer
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 10 Jul 2020 14:53:51 +0000 (16:53 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 10 Jul 2020 14:55:24 +0000 (16:55 +0200)
commit864a25d99bb523e7a5c166771e3ddbf39baffd33
tree7dfa7c31964cbccc830a6651717011e679f399a3
parent417770f3033c426ca848b158d0bf057cd8ad1329
basic/capability-util: let cap_last_cap() return unsigned integer

We never return anything higher than 63, so using "long unsigned"
as the type only confused the reader. (We can still use "long unsigned"
and safe_atolu() to parse the kernel file.)
src/basic/cap-list.c
src/basic/capability-util.c
src/basic/capability-util.h
src/libsystemd/sd-bus/bus-creds.c
src/test/test-capability.c