summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0ed401e)
raw | patch | inline | side by side (parent: 0ed401e)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Tue, 1 Mar 2016 10:43:13 +0000 (11:43 +0100) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Tue, 1 Mar 2016 10:43:13 +0000 (11:43 +0100) |
Commit straight to 5.5, this function doesn't exist in 5.4.
src/daemon/utils_cache.c | patch | blob | history | |
src/daemon/utils_cache.h | patch | blob | history |
index 00de85ae42f1f5f6bdd868bc314be1beb90d9979..8c5db31662edcb49ce85390dd4d850a7dd5ae837 100644 (file)
--- a/src/daemon/utils_cache.c
+++ b/src/daemon/utils_cache.c
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);
index ea3eb2f4db8342de2d85daef48271fe265024992..75bfc425a38c7c4624b89e8edf813a2433ca73fc 100644 (file)
--- a/src/daemon/utils_cache.h
+++ b/src/daemon/utils_cache.h
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);