diff options
Diffstat (limited to 'src/microhttpd')
-rw-r--r-- | src/microhttpd/Makefile.am | 2 | ||||
-rw-r--r-- | src/microhttpd/connection.c | 1 | ||||
-rw-r--r-- | src/microhttpd/connection_https.c | 1 | ||||
-rw-r--r-- | src/microhttpd/reason_phrase.c | 3 | ||||
-rw-r--r-- | src/microhttpd/reason_phrase.h | 37 | ||||
-rw-r--r-- | src/microhttpd/response.c | 2 |
6 files changed, 3 insertions, 43 deletions
diff --git a/src/microhttpd/Makefile.am b/src/microhttpd/Makefile.am index dbf3bac8..40879036 100644 --- a/src/microhttpd/Makefile.am +++ b/src/microhttpd/Makefile.am | |||
@@ -58,7 +58,7 @@ endif | |||
58 | 58 | ||
59 | libmicrohttpd_la_SOURCES = \ | 59 | libmicrohttpd_la_SOURCES = \ |
60 | connection.c connection.h \ | 60 | connection.c connection.h \ |
61 | reason_phrase.c reason_phrase.h \ | 61 | reason_phrase.c \ |
62 | daemon.c \ | 62 | daemon.c \ |
63 | internal.c internal.h \ | 63 | internal.c internal.h \ |
64 | memorypool.c memorypool.h \ | 64 | memorypool.c memorypool.h \ |
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index b4125211..06823edb 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -30,7 +30,6 @@ | |||
30 | #include "connection.h" | 30 | #include "connection.h" |
31 | #include "memorypool.h" | 31 | #include "memorypool.h" |
32 | #include "response.h" | 32 | #include "response.h" |
33 | #include "reason_phrase.h" | ||
34 | 33 | ||
35 | #if HAVE_NETINET_TCP_H | 34 | #if HAVE_NETINET_TCP_H |
36 | /* for TCP_CORK */ | 35 | /* for TCP_CORK */ |
diff --git a/src/microhttpd/connection_https.c b/src/microhttpd/connection_https.c index 834d52e0..af359fac 100644 --- a/src/microhttpd/connection_https.c +++ b/src/microhttpd/connection_https.c | |||
@@ -30,7 +30,6 @@ | |||
30 | #include "connection.h" | 30 | #include "connection.h" |
31 | #include "memorypool.h" | 31 | #include "memorypool.h" |
32 | #include "response.h" | 32 | #include "response.h" |
33 | #include "reason_phrase.h" | ||
34 | #include <gnutls/gnutls.h> | 33 | #include <gnutls/gnutls.h> |
35 | 34 | ||
36 | 35 | ||
diff --git a/src/microhttpd/reason_phrase.c b/src/microhttpd/reason_phrase.c index 3afe8af8..541efa20 100644 --- a/src/microhttpd/reason_phrase.c +++ b/src/microhttpd/reason_phrase.c | |||
@@ -17,7 +17,6 @@ | |||
17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
18 | 18 | ||
19 | */ | 19 | */ |
20 | |||
21 | /** | 20 | /** |
22 | * @file reason_phrase.c | 21 | * @file reason_phrase.c |
23 | * @brief Tables of the string response phrases | 22 | * @brief Tables of the string response phrases |
@@ -25,7 +24,7 @@ | |||
25 | * @author Christian Grothoff (minor code clean up) | 24 | * @author Christian Grothoff (minor code clean up) |
26 | */ | 25 | */ |
27 | #include "platform.h" | 26 | #include "platform.h" |
28 | #include "reason_phrase.h" | 27 | #include "microhttpd.h" |
29 | 28 | ||
30 | #ifndef NULL | 29 | #ifndef NULL |
31 | #define NULL (void*)0 | 30 | #define NULL (void*)0 |
diff --git a/src/microhttpd/reason_phrase.h b/src/microhttpd/reason_phrase.h deleted file mode 100644 index e4422329..00000000 --- a/src/microhttpd/reason_phrase.h +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /* | ||
2 | This file is part of libmicrohttpd | ||
3 | Copyright (C) 2007 Lymba | ||
4 | |||
5 | This library is free software; you can redistribute it and/or | ||
6 | modify it under the terms of the GNU Lesser General Public | ||
7 | License as published by the Free Software Foundation; either | ||
8 | version 2.1 of the License, or (at your option) any later version. | ||
9 | |||
10 | This library is distributed in the hope that it will be useful, | ||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | Lesser General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU Lesser General Public | ||
16 | License along with this library; if not, write to the Free Software | ||
17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
18 | */ | ||
19 | |||
20 | /** | ||
21 | * @file reason_phrase.c | ||
22 | * @brief Tables of the string response phrases | ||
23 | * @author Elliot Glaysher | ||
24 | */ | ||
25 | |||
26 | #ifndef REASON_PHRASE_H | ||
27 | #define REASON_PHRASE_H | ||
28 | |||
29 | /** | ||
30 | * Returns the string reason phrase for a response code. | ||
31 | * | ||
32 | * If we don't have a string for a status code, we give the first | ||
33 | * message in that status code class. | ||
34 | */ | ||
35 | const char *MHD_get_reason_phrase_for (unsigned int code); | ||
36 | |||
37 | #endif | ||
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c index a5ea15e0..12948352 100644 --- a/src/microhttpd/response.c +++ b/src/microhttpd/response.c | |||
@@ -432,7 +432,7 @@ MHD_create_response_from_fd_at_offset64 (uint64_t size, | |||
432 | if ((int64_t)size < 0 || (int64_t)offset < 0 || (int64_t)(size + offset) < 0) | 432 | if ((int64_t)size < 0 || (int64_t)offset < 0 || (int64_t)(size + offset) < 0) |
433 | return NULL; | 433 | return NULL; |
434 | 434 | ||
435 | response = MHD_create_response_from_callback(size, | 435 | response = MHD_create_response_from_callback (size, |
436 | 4 * 1024, | 436 | 4 * 1024, |
437 | &file_reader, | 437 | &file_reader, |
438 | NULL, | 438 | NULL, |