From 873c68b5157abe0d5a76d9aeb0b95c086856bff7 Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Mon, 18 Aug 2014 10:34:47 +0200 Subject: [PATCH] Make http_status_text() available everywhere --- includes/http.h | 1 + src/http.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/http.h b/includes/http.h index d2bc34a..f5c80ed 100644 --- a/includes/http.h +++ b/includes/http.h @@ -202,6 +202,7 @@ extern u_int16_t http_keepalive_time; void http_init(void); void http_process(void); +char *http_status_text(int); time_t http_date_to_time(char *); void http_request_free(struct http_request *); void http_request_sleep(struct http_request *); diff --git a/src/http.c b/src/http.c index 9d5a079..a3acea3 100644 --- a/src/http.c +++ b/src/http.c @@ -31,7 +31,6 @@ #include "tasks.h" #endif -static char *http_status_text(int); static int http_post_data_recv(struct netbuf *); static void http_error_response(struct connection *, struct spdy_stream *, int); @@ -1236,7 +1235,7 @@ http_response_normal(struct http_request *req, struct connection *c, } } -static char * +char * http_status_text(int status) { char *r;