From d44e16e085418afe43f554cc22fe55c08d948079 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 6 Apr 2007 10:08:45 +0200 Subject: [PATCH] src/plugin.c: Fix compiler-warnings for the Sun CC. Assigning a (void *) to a function-pointer issues a warning with the Sun CC. --- src/plugin.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/plugin.c b/src/plugin.c index cf4af74a..c927522a 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -437,7 +437,6 @@ int plugin_unregister_init (const char *name) int plugin_unregister_read (const char *name) { - return (plugin_unregister (list_read, name)); llentry_t *e; e = llist_search (list_read, name); @@ -494,7 +493,7 @@ void plugin_init_all (void) le = llist_head (list_init); while (le != NULL) { - callback = le->value; + callback = (int (*) (void)) le->value; status = (*callback) (); if (status != 0) @@ -560,7 +559,7 @@ void plugin_shutdown_all (void) le = llist_head (list_shutdown); while (le != NULL) { - callback = le->value; + callback = (int (*) (void)) le->value; (*callback) (); le = le->next; @@ -595,7 +594,7 @@ int plugin_dispatch_values (const char *name, const value_list_t *vl) le = llist_head (list_write); while (le != NULL) { - callback = le->value; + callback = (int (*) (const data_set_t *, const value_list_t *)) le->value; (*callback) (ds, vl); le = le->next; @@ -628,7 +627,7 @@ void plugin_log (int level, const char *format, ...) le = llist_head (list_log); while (le != NULL) { - callback = le->value; + callback = (void (*) (int, const char *)) le->value; (*callback) (level, msg); le = le->next; -- 2.30.2