summaryrefslogtreecommitdiff
path: root/uclient-backend.h
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2015-01-21 22:48:35 +0100
committerFelix Fietkau <nbd@openwrt.org>2015-01-22 11:59:43 +0100
commit8d8c2e64db8c1e9f39bf79028da7f59fb33767f3 (patch)
treea62528d17e3f25800422b1991ba130b9efd79d48 /uclient-backend.h
parent6c222d0646fa7c07be96d729009916d5af295332 (diff)
downloaduclient-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-backend.h')
-rw-r--r--uclient-backend.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/uclient-backend.h b/uclient-backend.h
index a5cf4f3..9ccc799 100644
--- a/uclient-backend.h
+++ b/uclient-backend.h
@@ -32,7 +32,7 @@ struct uclient_backend {
void (*disconnect)(struct uclient *cl);
int (*read)(struct uclient *cl, char *buf, unsigned int len);
- int (*write)(struct uclient *cl, char *buf, unsigned int len);
+ int (*write)(struct uclient *cl, const char *buf, unsigned int len);
};
void uclient_backend_set_error(struct uclient *cl, int code);