diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-05-03 14:52:41 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-05-03 14:52:41 +0200 |
commit | 04bf875418964c857234e85a11464857c88afb95 (patch) | |
tree | be3cc55d27e3d8fb59b117af5748909b1735d708 /server | |
parent | d5f63c03d0e1452013173e5317e3850cce1b6407 (diff) |
Make MHD_get_connection_info work on old microhttpd.
Diffstat (limited to 'server')
-rw-r--r-- | server/src/httpd.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |