From f65f40d0d8162e31b32fdc2595b7e5088cd0a5b3 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 22 Nov 2014 20:28:16 +0000 Subject: -fix warning --- src/transport/plugin_transport_http_server.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c index abc3bcbb0..3e5a8f24f 100644 --- a/src/transport/plugin_transport_http_server.c +++ b/src/transport/plugin_transport_http_server.c @@ -2256,9 +2256,11 @@ run_mhd_start_daemon (struct HTTP_Server_Plugin *plugin, if ( (NULL != server) && (0 != (plugin->options & HTTP_OPTIONS_TCP_STEALTH)) ) { - union MHD_DaemonInfo *di = MHD_get_daemon_info (server, - MHD_DAEMON_INFO_LISTEN_FD, - NULL); + const union MHD_DaemonInfo *di; + + di = MHD_get_daemon_info (server, + MHD_DAEMON_INFO_LISTEN_FD, + NULL); if ( (0 != setsockopt ((int) di->listen_fd, IPPROTO_TCP, SO_TCPSTEALTH, -- cgit v1.2.3