summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3246d80)
raw | patch | inline | side by side (parent: 3246d80)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 4 Aug 2009 08:23:42 +0000 (10:23 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 4 Aug 2009 08:23:42 +0000 (10:23 +0200) |
Since `type' is now included in `value_list_t' the `data_set_t' is no
longer required.
longer required.
src/common.h | patch | blob | history | |
src/utils_cache.c | patch | blob | history |
diff --git a/src/common.h b/src/common.h
index e424f5dd88c652e81e4ac8a6628443c5c8d4e0f0..6682e1c852ffd3328253f347a54fa23de78f630b 100644 (file)
--- a/src/common.h
+++ b/src/common.h
const char *hostname,
const char *plugin, const char *plugin_instance,
const char *type, const char *type_instance);
-#define FORMAT_VL(ret, ret_len, vl, ds) \
+#define FORMAT_VL(ret, ret_len, vl) \
format_name (ret, ret_len, (vl)->host, (vl)->plugin, (vl)->plugin_instance, \
- (ds)->type, (vl)->type_instance)
+ (vl)->type, (vl)->type_instance)
int parse_identifier (char *str, char **ret_host,
char **ret_plugin, char **ret_plugin_instance,
diff --git a/src/utils_cache.c b/src/utils_cache.c
index 39a14687e06996413da1f8158a1ae6104fa1cfc0..a81501214a9db7260e2c8c7547460aefae2426d5 100644 (file)
--- a/src/utils_cache.c
+++ b/src/utils_cache.c
int status;
int i;
- if (FORMAT_VL (name, sizeof (name), vl, ds) != 0)
+ if (FORMAT_VL (name, sizeof (name), vl) != 0)
{
ERROR ("uc_update: FORMAT_VL failed.");
return (-1);
size_t ret_num = 0;
int status;
- if (FORMAT_VL (name, sizeof (name), vl, ds) != 0)
+ if (FORMAT_VL (name, sizeof (name), vl) != 0)
{
ERROR ("utils_cache: uc_get_rate: FORMAT_VL failed.");
return (NULL);
cache_entry_t *ce = NULL;
int ret = STATE_ERROR;
- if (FORMAT_VL (name, sizeof (name), vl, ds) != 0)
+ if (FORMAT_VL (name, sizeof (name), vl) != 0)
{
ERROR ("uc_get_state: FORMAT_VL failed.");
return (STATE_ERROR);
cache_entry_t *ce = NULL;
int ret = -1;
- if (FORMAT_VL (name, sizeof (name), vl, ds) != 0)
+ if (FORMAT_VL (name, sizeof (name), vl) != 0)
{
ERROR ("uc_get_state: FORMAT_VL failed.");
return (STATE_ERROR);
{
char name[6 * DATA_MAX_NAME_LEN];
- if (FORMAT_VL (name, sizeof (name), vl, ds) != 0)
+ if (FORMAT_VL (name, sizeof (name), vl) != 0)
{
ERROR ("utils_cache: uc_get_history: FORMAT_VL failed.");
return (-1);