From 04bf875418964c857234e85a11464857c88afb95 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 3 May 2012 14:52:41 +0200 Subject: Make MHD_get_connection_info work on old microhttpd. --- server/src/httpd.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/src') diff --git a/server/src/httpd.cc b/server/src/httpd.cc index 10bd5bb..9349697 100644 --- a/server/src/httpd.cc +++ b/server/src/httpd.cc @@ -77,7 +77,7 @@ static int request_handler(void *cls, time_t now = time(NULL); DEBUG(httpd, "Request time: %s", ctime(&now)); - struct sockaddr *so; + void *so; so = MHD_get_connection_info(con, MHD_CONNECTION_INFO_CLIENT_ADDRESS)->client_addr; char peeraddr[INET_ADDRSTRLEN]; -- cgit v1.2.3