add_error_variable(): make key and data arguments const
Michael
This commit is contained in:
parent
05d1b2b372
commit
251a975126
@ -229,7 +229,7 @@ send_http_error_message (struct conn_s *connptr)
|
|||||||
#define ERRVAR_BUCKETCOUNT 16
|
#define ERRVAR_BUCKETCOUNT 16
|
||||||
|
|
||||||
int
|
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)
|
||||||
if (!(connptr->error_variables = hashmap_create (ERRVAR_BUCKETCOUNT)))
|
if (!(connptr->error_variables = hashmap_create (ERRVAR_BUCKETCOUNT)))
|
||||||
|
@ -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 send_http_error_message (struct conn_s *connptr);
|
||||||
extern int indicate_http_error (struct conn_s *connptr, int number,
|
extern int indicate_http_error (struct conn_s *connptr, int number,
|
||||||
char *message, ...);
|
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_html_file (FILE * infile, struct conn_s *connptr);
|
||||||
extern int send_http_headers (struct conn_s *connptr, int code,
|
extern int send_http_headers (struct conn_s *connptr, int code,
|
||||||
char *message);
|
char *message);
|
||||||
|
Loading…
Reference in New Issue
Block a user