commit 105804e32554590e8a09ae87ac53841551c9ee34
parent 873c68b5157abe0d5a76d9aeb0b95c086856bff7
Author: Joris Vink <joris@coders.se>
Date: Mon, 18 Aug 2014 10:37:13 +0200
Make http_status_text() return a const char
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/includes/http.h b/includes/http.h
@@ -202,7 +202,7 @@ extern u_int16_t http_keepalive_time;
void http_init(void);
void http_process(void);
-char *http_status_text(int);
+const 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
@@ -1235,7 +1235,7 @@ http_response_normal(struct http_request *req, struct connection *c,
}
}
-char *
+const char *
http_status_text(int status)
{
char *r;