diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2015-01-21 22:48:35 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-01-22 11:59:43 +0100 |
commit | 8d8c2e64db8c1e9f39bf79028da7f59fb33767f3 (patch) | |
tree | a62528d17e3f25800422b1991ba130b9efd79d48 /uclient-http.c | |
parent | 6c222d0646fa7c07be96d729009916d5af295332 (diff) | |
download | uclient-8d8c2e64db8c1e9f39bf79028da7f59fb33767f3.tar.gz |
use const for char buffer in uclient_write
We are not supposed to modify it and ustream accepts const already.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Diffstat (limited to 'uclient-http.c')
-rw-r--r-- | uclient-http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uclient-http.c b/uclient-http.c index af43b05..9f9fac9 100644 --- a/uclient-http.c +++ b/uclient-http.c @@ -931,7 +931,7 @@ uclient_http_set_header(struct uclient *cl, const char *name, const char *value) } static int -uclient_http_send_data(struct uclient *cl, char *buf, unsigned int len) +uclient_http_send_data(struct uclient *cl, const char *buf, unsigned int len) { struct uclient_http *uh = container_of(cl, struct uclient_http, uc); |