src/plugin.c: Notification callbacks were added to the wrong linked list.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 23 Dec 2007 10:43:02 +0000 (11:43 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 23 Dec 2007 10:43:02 +0000 (11:43 +0100)
src/plugin.c

index b24707a..88da209 100644 (file)
@@ -477,7 +477,7 @@ int plugin_register_log (char *name,
 int plugin_register_notification (const char *name,
                int (*callback) (const notification_t *notif))
 {
-       return (register_callback (&list_log, name, (void *) callback));
+       return (register_callback (&list_notification, name, (void *) callback));
 } /* int plugin_register_log */
 
 int plugin_unregister_config (const char *name)