From 20b606b6f5c05314e7005bdf2208c24e0bb41d2c Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 7 Aug 2009 08:44:47 +0200 Subject: make message argument to send_http_headers() constant. Michael --- src/html-error.c | 2 +- src/html-error.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/html-error.c b/src/html-error.c index 47e4275..6037ae6 100644 --- a/src/html-error.c +++ b/src/html-error.c @@ -172,7 +172,7 @@ send_html_file (FILE * infile, struct conn_s *connptr) } int -send_http_headers (struct conn_s *connptr, int code, char *message) +send_http_headers (struct conn_s *connptr, int code, const char *message) { char *headers = "HTTP/1.0 %d %s\r\n" diff --git a/src/html-error.h b/src/html-error.h index 95578eb..535cbf6 100644 --- a/src/html-error.h +++ b/src/html-error.h @@ -32,7 +32,7 @@ extern int add_error_variable (struct conn_s *connptr, const char *key, const char *val); extern int send_html_file (FILE * infile, struct conn_s *connptr); extern int send_http_headers (struct conn_s *connptr, int code, - char *message); + const char *message); extern int add_standard_vars (struct conn_s *connptr); #endif /* !TINYPROXY_HTML_ERROR_H */ -- cgit v1.2.3