Make http_status_text() available everywhere

This commit is contained in:
Joris Vink 2014-08-18 10:34:47 +02:00
parent 6e6b042388
commit 873c68b515
2 changed files with 2 additions and 2 deletions

View File

@ -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 *);

View File

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