add_error_variable(): make key and data arguments const

Michael
This commit is contained in:
Michael Adam 2009-08-07 08:41:36 +02:00
parent 05d1b2b372
commit 251a975126
2 changed files with 3 additions and 2 deletions

View File

@ -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)))

View File

@ -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);