summaryrefslogtreecommitdiff
path: root/source4/web_server
diff options
context:
space:
mode:
Diffstat (limited to 'source4/web_server')
-rw-r--r--source4/web_server/http.c3
-rw-r--r--source4/web_server/web_server.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/source4/web_server/http.c b/source4/web_server/http.c
index f79bedb2de..8dd594de20 100644
--- a/source4/web_server/http.c
+++ b/source4/web_server/http.c
@@ -668,9 +668,8 @@ static void session_timeout(struct event_context *ev, struct timed_event *te,
/*
destroy a session
*/
-static int session_destructor(void *ptr)
+static int session_destructor(struct session_data *s)
{
- struct session_data *s = talloc_get_type(ptr, struct session_data);
DLIST_REMOVE(s->edata->sessions, s);
return 0;
}
diff --git a/source4/web_server/web_server.c b/source4/web_server/web_server.c
index 93d59cc47a..7596ca40fc 100644
--- a/source4/web_server/web_server.c
+++ b/source4/web_server/web_server.c
@@ -37,9 +37,8 @@
/*
destroy a web connection
*/
-static int websrv_destructor(void *ptr)
+static int websrv_destructor(struct websrv_context *web)
{
- struct websrv_context *web = talloc_get_type(ptr, struct websrv_context);
if (web->output.fd != -1) {
close(web->output.fd);
}