From 103b956791ca5a89eac271a121962bab9bee17cf Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Tue, 1 Mar 2016 11:43:13 +0100 Subject: [PATCH] Fix prototype of uc_get_size Commit straight to 5.5, this function doesn't exist in 5.4. --- src/daemon/utils_cache.c | 2 +- src/daemon/utils_cache.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.11.0