[Olsr-dev] [PATCH v1 03/10] info: rename an HTTP status define
Ferry Huberts
(spam-protected)
Sun Feb 21 18:56:16 CET 2016
From: Ferry Huberts <(spam-protected)>
Signed-off-by: Ferry Huberts <(spam-protected)>
---
lib/info/http_headers.h | 2 +-
lib/info/olsrd_info.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/info/http_headers.h b/lib/info/http_headers.h
index 62143d4..97908a3 100644
--- a/lib/info/http_headers.h
+++ b/lib/info/http_headers.h
@@ -45,7 +45,7 @@
#include "common/autobuf.h"
/* Response types */
-#define HTTP_200 "HTTP/1.1 200 OK"
+#define INFO_HTTP_OK "HTTP/1.1 200 OK"
void http_header_build(const char * plugin_name, const char *status, const char *mime, struct autobuf *abuf, int *contentLengthIndex);
diff --git a/lib/info/olsrd_info.c b/lib/info/olsrd_info.c
index 7c3f3d8..15b594f 100644
--- a/lib/info/olsrd_info.c
+++ b/lib/info/olsrd_info.c
@@ -197,7 +197,7 @@ static void send_info(unsigned int send_what, int the_socket) {
abuf_init(&abuf, 2 * 4096);
if (config->http_headers) {
- http_header_build(name, HTTP_200, content_type, &abuf, &contentLengthIndex);
+ http_header_build(name, INFO_HTTP_OK, content_type, &abuf, &contentLengthIndex);
headerLength = abuf.len;
}
--
2.5.0
More information about the Olsr-dev
mailing list