make message argument of indicate_http_error() const.
Michael
This commit is contained in:
parent
20b606b6f5
commit
c8ee85702e
@ -286,7 +286,8 @@ add_standard_vars (struct conn_s *connptr)
|
|||||||
* Add the error information to the conn structure.
|
* Add the error information to the conn structure.
|
||||||
*/
|
*/
|
||||||
int
|
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;
|
va_list ap;
|
||||||
char *key, *val;
|
char *key, *val;
|
||||||
|
@ -27,7 +27,7 @@ struct conn_s;
|
|||||||
extern int add_new_errorpage (char *filepath, unsigned int errornum);
|
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, ...);
|
const char *message, ...);
|
||||||
extern int add_error_variable (struct conn_s *connptr, const char *key,
|
extern int add_error_variable (struct conn_s *connptr, const char *key,
|
||||||
const char *val);
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user