From: Ruben Kerkhof Date: Wed, 2 May 2018 10:42:56 +0000 (+0200) Subject: Do not hide prototype of check_capability() X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=3653632a3c92774fdcfcbf82738bc2410588aaeb;p=collectd.git 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. --- 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 */