projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05cbd5a
)
src/plugin.c: Warn if plugin_register_*() overwrites an existing callback.
author
Sebastian Harl
<sh@tokkee.org>
Thu, 30 Jul 2009 15:34:24 +0000
(17:34 +0200)
committer
Sebastian Harl
<sh@tokkee.org>
Tue, 8 Dec 2009 20:13:40 +0000
(21:13 +0100)
src/plugin.c
patch
|
blob
|
history
diff --git
a/src/plugin.c
b/src/plugin.c
index
5ca009c
..
182892a
100644
(file)
--- a/
src/plugin.c
+++ b/
src/plugin.c
@@
-210,6
+210,10
@@
static int register_callback (llist_t **list, /* {{{ */
old_cf = le->value;
le->value = cf;
+ WARNING ("plugin: register_callback: "
+ "a callback named `%s' already exists - "
+ "overwriting the old entry!", name);
+
destroy_callback (old_cf);
sfree (key);
}