projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e9778c
)
apache plugin: fix compiler warning on Solaris
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sun, 24 Jul 2016 11:43:48 +0000
(13:43 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sun, 24 Jul 2016 11:44:56 +0000
(13:44 +0200)
src/apache.c
patch
|
blob
|
history
diff --git
a/src/apache.c
b/src/apache.c
index
2e91a1b
..
40d0efe
100644
(file)
--- a/
src/apache.c
+++ b/
src/apache.c
@@
-63,8
+63,10
@@
typedef struct apache_s apache_t;
/* TODO: Remove this prototype */
static int apache_read_host (user_data_t *user_data);
-static void apache_free (
apache_t *st
)
+static void apache_free (
void *arg
)
{
+ apache_t *st = arg;
+
if (st == NULL)
return;
@@
-243,7
+245,7
@@
static int config_add (oconfig_item_t *ci)
memset (&ud, 0, sizeof (ud));
ud.data = st;
- ud.free_func =
(void *)
apache_free;
+ ud.free_func = apache_free;
memset (callback_name, 0, sizeof (callback_name));
ssnprintf (callback_name, sizeof (callback_name),