diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-08-02 09:26:02 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-08-02 09:26:02 +0000 |
commit | aa338b48e4929af2609d758c054a585fc8e4c62e (patch) | |
tree | 80a78365f3fc8f702ee7f76f1bfa4e0a0108761b | |
parent | 0d1e59bc6e563183db090d393acaa9c9d605edee (diff) | |
download | libmicrohttpd-aa338b48e4929af2609d758c054a585fc8e4c62e.tar.gz libmicrohttpd-aa338b48e4929af2609d758c054a585fc8e4c62e.zip |
-dce
-rw-r--r-- | src/microhttpd/internal.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/microhttpd/internal.c b/src/microhttpd/internal.c index 035a1551..b4ecd069 100644 --- a/src/microhttpd/internal.c +++ b/src/microhttpd/internal.c | |||
@@ -134,8 +134,6 @@ MHD_http_unescape (char *val) | |||
134 | { | 134 | { |
135 | char *rpos = val; | 135 | char *rpos = val; |
136 | char *wpos = val; | 136 | char *wpos = val; |
137 | char *end; | ||
138 | char buf3[3]; | ||
139 | 137 | ||
140 | while ('\0' != *rpos) | 138 | while ('\0' != *rpos) |
141 | { | 139 | { |
@@ -173,8 +171,8 @@ MHD_http_unescape (char *val) | |||
173 | * clobbered in the process! | 171 | * clobbered in the process! |
174 | * @param cb function to call on each key-value pair found | 172 | * @param cb function to call on each key-value pair found |
175 | * @param[out] num_headers set to the number of headers found | 173 | * @param[out] num_headers set to the number of headers found |
176 | * @return #MHD_NO on failure (@a cb returned #MHD_NO), | 174 | * @return #MHD_NO on failure (@a cb returned #MHD_NO), |
177 | * #MHD_YES for success (parsing succeeded, @a cb always | 175 | * #MHD_YES for success (parsing succeeded, @a cb always |
178 | * returned #MHD_YES) | 176 | * returned #MHD_YES) |
179 | */ | 177 | */ |
180 | int | 178 | int |
@@ -223,7 +221,7 @@ MHD_parse_arguments_ (struct MHD_Connection *connection, | |||
223 | daemon->unescape_callback (daemon->unescape_callback_cls, | 221 | daemon->unescape_callback (daemon->unescape_callback_cls, |
224 | connection, | 222 | connection, |
225 | equals); | 223 | equals); |
226 | if (MHD_YES != cb (connection, | 224 | if (MHD_YES != cb (connection, |
227 | args, | 225 | args, |
228 | equals, | 226 | equals, |
229 | kind)) | 227 | kind)) |
@@ -266,7 +264,7 @@ MHD_parse_arguments_ (struct MHD_Connection *connection, | |||
266 | equals); | 264 | equals); |
267 | if (MHD_YES != cb (connection, | 265 | if (MHD_YES != cb (connection, |
268 | args, | 266 | args, |
269 | equals, | 267 | equals, |
270 | kind)) | 268 | kind)) |
271 | return MHD_NO; | 269 | return MHD_NO; |
272 | (*num_headers)++; | 270 | (*num_headers)++; |