diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2023-02-02 19:48:35 -0800 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2023-02-02 20:10:06 -0800 |
commit | 3f483219d51b9b71822543e0806a19f91f1ed2f1 (patch) | |
tree | 322122c1df0955caaffa01986ec15c2ff2d2f1e9 | |
parent | 9bdfc8609add40594fc2537b22722d16ccd56227 (diff) | |
download | libcap-3f483219d51b9b71822543e0806a19f91f1ed2f1.tar.gz |
Resolve a couple of compiler warnings.
Explicitly add (void) as argument lists for two function definitions:
cap_reset_ambient(void)
_libcap_initialize(void)
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
-rw-r--r-- | libcap/cap_alloc.c | 2 | ||||
-rw-r--r-- | libcap/cap_proc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libcap/cap_alloc.c b/libcap/cap_alloc.c index c826e7a..2403354 100644 --- a/libcap/cap_alloc.c +++ b/libcap/cap_alloc.c @@ -17,7 +17,7 @@ static __u8 __libcap_mutex; */ static cap_value_t _cap_max_bits; -__attribute__((constructor (300))) void _libcap_initialize() +__attribute__((constructor (300))) void _libcap_initialize(void) { int errno_saved = errno; _cap_mu_lock(&__libcap_mutex); diff --git a/libcap/cap_proc.c b/libcap/cap_proc.c index 0ce5db7..24bc274 100644 --- a/libcap/cap_proc.c +++ b/libcap/cap_proc.c @@ -363,7 +363,7 @@ static int _cap_reset_ambient(struct syscaller_s *sc) * case where the set is empty already but the ambient cap API is * locked. */ -int cap_reset_ambient() +int cap_reset_ambient(void) { return _cap_reset_ambient(&multithread); } |