From: Ruben Kerkhof Date: Tue, 1 Mar 2016 10:43:13 +0000 (+0100) Subject: Fix prototype of uc_get_size X-Git-Tag: collectd-5.5.2~56 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=103b956791ca5a89eac271a121962bab9bee17cf;p=collectd.git Fix prototype of uc_get_size Commit straight to 5.5, this function doesn't exist in 5.4. --- diff --git a/src/daemon/utils_cache.c b/src/daemon/utils_cache.c index 00de85ae..8c5db316 100644 --- a/src/daemon/utils_cache.c +++ b/src/daemon/utils_cache.c @@ -577,7 +577,7 @@ gauge_t *uc_get_rate (const data_set_t *ds, const value_list_t *vl) return (ret); } /* gauge_t *uc_get_rate */ -size_t uc_get_size() { +size_t uc_get_size (void) { size_t size_arrays = 0; pthread_mutex_lock (&cache_lock); diff --git a/src/daemon/utils_cache.h b/src/daemon/utils_cache.h index ea3eb2f4..75bfc425 100644 --- a/src/daemon/utils_cache.h +++ b/src/daemon/utils_cache.h @@ -40,7 +40,7 @@ int uc_update (const data_set_t *ds, const value_list_t *vl); int uc_get_rate_by_name (const char *name, gauge_t **ret_values, size_t *ret_values_num); gauge_t *uc_get_rate (const data_set_t *ds, const value_list_t *vl); -size_t uc_get_size(); +size_t uc_get_size (void); int uc_get_names (char ***ret_names, cdtime_t **ret_times, size_t *ret_number); int uc_get_state (const data_set_t *ds, const value_list_t *vl);