summaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_server.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-11-22 20:28:16 +0000
committerChristian Grothoff <christian@grothoff.org>2014-11-22 20:28:16 +0000
commitf65f40d0d8162e31b32fdc2595b7e5088cd0a5b3 (patch)
tree700037ef9323a6249a852072a1f68abf0ec8ed99 /src/transport/plugin_transport_http_server.c
parent3fabbc289b167e5b30f902a3fbee124ab308d3a0 (diff)
-fix warning
Diffstat (limited to 'src/transport/plugin_transport_http_server.c')
-rw-r--r--src/transport/plugin_transport_http_server.c8
1 files changed, 5 insertions, 3 deletions
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,