info: rename an HTTP status define
authorFerry Huberts <ferry.huberts@pelagic.nl>
Sun, 21 Feb 2016 14:09:23 +0000 (15:09 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 25 Feb 2016 12:39:15 +0000 (13:39 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/info/http_headers.h
lib/info/olsrd_info.c

index 62143d4..97908a3 100644 (file)
@@ -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);
 
index 7c3f3d8..15b594f 100644 (file)
@@ -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;
   }