summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5b0fc9e)
raw | patch | inline | side by side (parent: 5b0fc9e)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 5 Dec 2010 10:20:49 +0000 (11:20 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 5 Dec 2010 10:20:49 +0000 (11:20 +0100) |
Since "type" is now included in "value_list_t", too, we don't need a
"data_set_t" to initialize the notification.
"data_set_t" to initialize the notification.
src/common.h | patch | blob | history | |
src/threshold.c | patch | blob | history |
diff --git a/src/common.h b/src/common.h
index 425d6e2d6c5b74b729439be7be89b095b9e7c2d0..e6b899de5c8114b26c0413f980056dbbd9b91c0d 100644 (file)
--- a/src/common.h
+++ b/src/common.h
const char *host,
const char *plugin, const char *plugin_instance,
const char *type, const char *type_instance);
-#define NOTIFICATION_INIT_VL(n, vl, ds) \
+#define NOTIFICATION_INIT_VL(n, vl) \
notification_init (n, NOTIF_FAILURE, NULL, \
(vl)->host, (vl)->plugin, (vl)->plugin_instance, \
- (ds)->type, (vl)->type_instance)
+ (vl)->type, (vl)->type_instance)
typedef int (*dirwalk_callback_f)(const char *dirname, const char *filename,
void *user_data);
diff --git a/src/threshold.c b/src/threshold.c
index 893975027482c9c4d0aff0dce4417c841300c6c2..7d48244c4948a29b85b885e22b2c18c6309ecc01 100644 (file)
--- a/src/threshold.c
+++ b/src/threshold.c
if (state != state_old)
uc_set_state (ds, vl, state);
- NOTIFICATION_INIT_VL (&n, vl, ds);
+ NOTIFICATION_INIT_VL (&n, vl);
buf = n.message;
bufsize = sizeof (n.message);