summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-11-24 20:44:08 +0100
committerJelmer Vernooij <jelmer@samba.org>2012-12-05 14:56:43 +0100
commitad252fb2f5b403001a283aff58773b8b429be145 (patch)
tree6773bf28eb3c0a34e5b5ac1e3577ad23fbe2e104
parent12c72a38359cb81328c5c57a8d6b6fb9920aebe6 (diff)
downloadsamba-ad252fb2f5b403001a283aff58773b8b429be145.tar.gz
samba-ad252fb2f5b403001a283aff58773b8b429be145.tar.bz2
samba-ad252fb2f5b403001a283aff58773b8b429be145.zip
web_server: Make second argument to websrv_output const.
-rw-r--r--source4/web_server/web_server.c2
-rw-r--r--source4/web_server/web_server.h2
2 files changed, 2 insertions, 2 deletions
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__ */