From 3653632a3c92774fdcfcbf82738bc2410588aaeb Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Wed, 2 May 2018 12:42:56 +0200 Subject: [PATCH] Do not hide prototype of check_capability() We have a fallback definition for if is not found. That definition needs a prototype. Noticed while checking with sparse on Mac OS. --- src/daemon/common.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/daemon/common.h b/src/daemon/common.h index e3643626..0e2b1d87 100644 --- a/src/daemon/common.h +++ b/src/daemon/common.h @@ -386,12 +386,10 @@ int strtogauge(const char *string, gauge_t *ret_value); int strarray_add(char ***ret_array, size_t *ret_array_len, char const *str); void strarray_free(char **array, size_t array_len); -#ifdef HAVE_SYS_CAPABILITY_H /** Check if the current process benefits from the capability passed in * argument. Returns zero if it does, less than zero if it doesn't or on error. * See capabilities(7) for the list of possible capabilities. * */ int check_capability(int arg); -#endif /* HAVE_SYS_CAPABILITY_H */ #endif /* COMMON_H */ -- 2.11.0