aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/microhttpd/connection.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 916e75c8..08b76eb6 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -125,6 +125,7 @@
125 */ 125 */
126#define MHD_SENFILE_CHUNK_THR_P_C_ (0x200000) 126#define MHD_SENFILE_CHUNK_THR_P_C_ (0x200000)
127 127
128#ifdef HAVE_MESSAGES
128/** 129/**
129 * Return text description for MHD_ERR_*_ codes 130 * Return text description for MHD_ERR_*_ codes
130 * @param mhd_err_code the error code 131 * @param mhd_err_code the error code
@@ -133,7 +134,6 @@
133static const char * 134static const char *
134str_conn_error_ (ssize_t mhd_err_code) 135str_conn_error_ (ssize_t mhd_err_code)
135{ 136{
136#ifdef HAVE_MESSAGES
137 switch (mhd_err_code) 137 switch (mhd_err_code)
138 { 138 {
139 case MHD_ERR_AGAIN_: 139 case MHD_ERR_AGAIN_:
@@ -162,12 +162,11 @@ str_conn_error_ (ssize_t mhd_err_code)
162 162
163 mhd_assert (0); /* Should never be reachable */ 163 mhd_assert (0); /* Should never be reachable */
164 return _ ("Wrong error code value"); 164 return _ ("Wrong error code value");
165#else /* ! HAVE_MESSAGES */
166 return "";
167#endif /* ! HAVE_MESSAGES */
168} 165}
169 166
170 167
168#endif /* HAVE_MESSAGES */
169
171/** 170/**
172 * Callback for receiving data from the socket. 171 * Callback for receiving data from the socket.
173 * 172 *