summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9ac1de5)
raw | patch | inline | side by side (parent: 9ac1de5)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Fri, 6 Apr 2007 08:08:45 +0000 (10:08 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Fri, 6 Apr 2007 08:08:45 +0000 (10:08 +0200) |
Assigning a (void *) to a function-pointer issues a warning with the Sun CC.
src/plugin.c | patch | blob | history |
diff --git a/src/plugin.c b/src/plugin.c
index cf4af74a34735904d88fbe5f17d68c366d48e129..c927522afe14f8940cdc08a1ec1a7015a8f7897e 100644 (file)
--- a/src/plugin.c
+++ b/src/plugin.c
int plugin_unregister_read (const char *name)
{
- return (plugin_unregister (list_read, name));
llentry_t *e;
e = llist_search (list_read, name);
le = llist_head (list_init);
while (le != NULL)
{
- callback = le->value;
+ callback = (int (*) (void)) le->value;
status = (*callback) ();
if (status != 0)
le = llist_head (list_shutdown);
while (le != NULL)
{
- callback = le->value;
+ callback = (int (*) (void)) le->value;
(*callback) ();
le = le->next;
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;
le = llist_head (list_log);
while (le != NULL)
{
- callback = le->value;
+ callback = (void (*) (int, const char *)) le->value;
(*callback) (level, msg);
le = le->next;