[Olsr-dev] [PATCH v1 056/115] info: rename a http header function

Ferry Huberts (spam-protected)
Wed Dec 2 21:28:29 CET 2015


From: Ferry Huberts <(spam-protected)>

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 lib/info/http_headers.c | 2 +-
 lib/info/http_headers.h | 2 +-
 lib/info/olsrd_info.c   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/info/http_headers.c b/lib/info/http_headers.c
index a9195f3..83675b6 100644
--- a/lib/info/http_headers.c
+++ b/lib/info/http_headers.c
@@ -41,7 +41,7 @@
 
 #include "http_headers.h"
 
-void build_http_header(const char *plugin_name, const char *status, const char *mime, struct autobuf *abuf, int *contentLengthIndex) {
+void http_header_build(const char *plugin_name, const char *status, const char *mime, struct autobuf *abuf, int *contentLengthIndex) {
   /* Status */
   abuf_appendf(abuf, "%s\r\n", status);
 
diff --git a/lib/info/http_headers.h b/lib/info/http_headers.h
index f51f715..705110e 100644
--- a/lib/info/http_headers.h
+++ b/lib/info/http_headers.h
@@ -47,7 +47,7 @@
 /* Response types */
 #define HTTP_200 "HTTP/1.1 200 OK"
 
-void build_http_header(const char * plugin_name, const char *status, const char *mime, struct autobuf *abuf, int *contentLengthIndex);
+void http_header_build(const char * plugin_name, const char *status, const char *mime, struct autobuf *abuf, int *contentLengthIndex);
 
 void http_header_adjust_content_length(struct autobuf *abuf, int contentLengthIndex, int contentLength);
 
diff --git a/lib/info/olsrd_info.c b/lib/info/olsrd_info.c
index 1159184..faf47c6 100644
--- a/lib/info/olsrd_info.c
+++ b/lib/info/olsrd_info.c
@@ -187,7 +187,7 @@ static void send_info(unsigned int send_what, int the_socket) {
   abuf_init(&abuf, 2 * 4096);
 
   if (info_plugin_config->http_headers) {
-    build_http_header(PLUGIN_NAME, HTTP_200, content_type, &abuf, &contentLengthIndex);
+    http_header_build(PLUGIN_NAME, HTTP_200, content_type, &abuf, &contentLengthIndex);
     headerLength = abuf.len;
   }
 
-- 
2.5.0




More information about the Olsr-dev mailing list