diff options
author | Michael Adam <obnox@samba.org> | 2009-08-07 08:48:51 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-08-07 08:48:51 +0200 |
commit | c8ee85702e2f038cc55dfc7e55cbf1be00d592a5 (patch) | |
tree | b9adb6d4e1fa89245c95df445fda203159a9e45e | |
parent | 20b606b6f5c05314e7005bdf2208c24e0bb41d2c (diff) | |
download | tinyproxy-c8ee85702e2f038cc55dfc7e55cbf1be00d592a5.tar.gz tinyproxy-c8ee85702e2f038cc55dfc7e55cbf1be00d592a5.zip |
make message argument of indicate_http_error() const.
Michael
Diffstat (limited to '')
-rw-r--r-- | src/html-error.c | 3 | ||||
-rw-r--r-- | src/html-error.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/html-error.c b/src/html-error.c index 6037ae6..f4a6150 100644 --- a/src/html-error.c +++ b/src/html-error.c @@ -286,7 +286,8 @@ add_standard_vars (struct conn_s *connptr) * Add the error information to the conn structure. */ int -indicate_http_error (struct conn_s *connptr, int number, char *message, ...) +indicate_http_error (struct conn_s *connptr, int number, + const char *message, ...) { va_list ap; char *key, *val; diff --git a/src/html-error.h b/src/html-error.h index 535cbf6..03cec98 100644 --- a/src/html-error.h +++ b/src/html-error.h @@ -27,7 +27,7 @@ struct conn_s; extern int add_new_errorpage (char *filepath, unsigned int errornum); extern int send_http_error_message (struct conn_s *connptr); extern int indicate_http_error (struct conn_s *connptr, int number, - char *message, ...); + const char *message, ...); 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); |