summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/html-error.c2
-rw-r--r--src/html-error.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/html-error.c b/src/html-error.c
index 09116a6..47e4275 100644
--- a/src/html-error.c
+++ b/src/html-error.c
@@ -229,7 +229,7 @@ send_http_error_message (struct conn_s *connptr)
#define ERRVAR_BUCKETCOUNT 16
int
-add_error_variable (struct conn_s *connptr, char *key, char *val)
+add_error_variable (struct conn_s *connptr, const char *key, const char *val)
{
if (!connptr->error_variables)
if (!(connptr->error_variables = hashmap_create (ERRVAR_BUCKETCOUNT)))
diff --git a/src/html-error.h b/src/html-error.h
index b1ace83..95578eb 100644
--- a/src/html-error.h
+++ b/src/html-error.h
@@ -28,7 +28,8 @@ 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, ...);
-extern int add_error_variable (struct conn_s *connptr, char *key, char *val);
+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);