kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 873c68b5157abe0d5a76d9aeb0b95c086856bff7
parent 6e6b04238805065211fe7688927d41123170e45d
Author: Joris Vink <joris@coders.se>
Date:   Mon, 18 Aug 2014 10:34:47 +0200

Make http_status_text() available everywhere

Diffstat:
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 @@ -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 @@ -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;