From 8d8c2e64db8c1e9f39bf79028da7f59fb33767f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Wed, 21 Jan 2015 22:48:35 +0100 Subject: use const for char buffer in uclient_write MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We are not supposed to modify it and ustream accepts const already. Signed-off-by: Rafał Miłecki --- uclient.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uclient.h') diff --git a/uclient.h b/uclient.h index 5904a38..0c76f6e 100644 --- a/uclient.h +++ b/uclient.h @@ -106,7 +106,7 @@ int uclient_connect(struct uclient *cl); void uclient_disconnect(struct uclient *cl); int uclient_read(struct uclient *cl, char *buf, int len); -int uclient_write(struct uclient *cl, char *buf, int len); +int uclient_write(struct uclient *cl, const char *buf, int len); int uclient_request(struct uclient *cl); char *uclient_get_addr(char *dest, int *port, union uclient_addr *a); -- cgit v1.2.1