From ad252fb2f5b403001a283aff58773b8b429be145 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 24 Nov 2012 20:44:08 +0100 Subject: web_server: Make second argument to websrv_output const. --- source4/web_server/web_server.c | 2 +- source4/web_server/web_server.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source4') diff --git a/source4/web_server/web_server.c b/source4/web_server/web_server.c index 99a6b65f67..239612a6bd 100644 --- a/source4/web_server/web_server.c +++ b/source4/web_server/web_server.c @@ -93,7 +93,7 @@ void websrv_output_headers(struct websrv_context *web, const char *status, struc data_blob_free(&b); } -void websrv_output(struct websrv_context *web, void *data, size_t length) +void websrv_output(struct websrv_context *web, const void *data, size_t length) { data_blob_append(web, &web->output.content, data, length); TEVENT_FD_NOT_READABLE(web->conn->event.fde); diff --git a/source4/web_server/web_server.h b/source4/web_server/web_server.h index 274a54a5c3..9f2135908a 100644 --- a/source4/web_server/web_server.h +++ b/source4/web_server/web_server.h @@ -67,7 +67,7 @@ struct websrv_context { bool wsgi_initialize(struct web_server_data *wdata); void http_error(struct websrv_context *web, const char *status, const char *info); void websrv_output_headers(struct websrv_context *web, const char *status, struct http_header *headers); -void websrv_output(struct websrv_context *web, void *data, size_t length); +void websrv_output(struct websrv_context *web, const void *data, size_t length); NTSTATUS http_parse_header(struct websrv_context *web, const char *line); #endif /* __WEB_SERVER_H__ */ -- cgit