diff options
author | Russell King <rmk@armlinux.org.uk> | 2021-09-11 11:40:05 +0100 |
---|---|---|
committer | Russell King <rmk@armlinux.org.uk> | 2021-09-11 11:40:05 +0100 |
commit | 88416fdda7f6c3ab3a324c7faeb5bb94d997f0b7 (patch) | |
tree | 71fed11713addfb3e00008ff839533461c4cc00b /event-httpd.c | |
parent | 250764731951b7a335e9425d1d939145ec129d54 (diff) |
event-httpd: make GString argument const
respond_chunk() does not change or take ownership of the GString, so
make this argument const.
Signed-off-by: Russell King <rmk@armlinux.org.uk>
Diffstat (limited to 'event-httpd.c')
-rw-r--r-- | event-httpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/event-httpd.c b/event-httpd.c index 3ec2790..9943b14 100644 --- a/event-httpd.c +++ b/event-httpd.c @@ -36,7 +36,7 @@ void respond_header(struct client *c, int error_code, const char *reason, error_code, reason, headers); } -void respond_chunk(struct client *c, GString *s) +void respond_chunk(struct client *c, const GString *s) { if (c->can_chunk) g_output_stream_printf(c->out, NULL, NULL, NULL, |