From c8ee85702e2f038cc55dfc7e55cbf1be00d592a5 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 7 Aug 2009 08:48:51 +0200 Subject: make message argument of indicate_http_error() const. Michael --- src/html-error.c | 3 ++- src/html-error.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3