summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6e9778c)
raw | patch | inline | side by side (parent: 6e9778c)
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 2e91a1bee3b6f4311b178e6472350496853f3ec1..40d0efe2bc3d22e093e0a2652e9fd1bd09963083 100644 (file)
--- a/src/apache.c
+++ b/src/apache.c
/* 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;
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),