libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 7aa3e9a819c8da4971e68e361070cbb81a7e9b2e
parent c5cd08af580305b46afd53c40cffdb03f8b9cbe4
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sun,  6 Sep 2015 16:02:05 +0000

Fix mixed code/var declaration

Diffstat:
Msrc/microhttpd/daemon.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -1120,6 +1120,7 @@ send_param_adapter (struct MHD_Connection *connection, /* can use sendfile */ uint64_t left; uint64_t offsetu64; + int err; #ifndef HAVE_SENDFILE64 off_t offset; #else /* HAVE_SENDFILE64 */ @@ -1146,7 +1147,7 @@ send_param_adapter (struct MHD_Connection *connection, #endif return ret; } - const int err = MHD_socket_errno_; + err = MHD_socket_errno_; if ( (EINTR == err) || (EAGAIN == err) || (EWOULDBLOCK == err) ) return 0; if ( (EINVAL == err) || (EBADF == err) )