use const for char buffer in uclient_write
[oweals/uclient.git] / uclient.h
index 5904a38dbc97e537dd371a8e25d1cd9a39a39068..0c76f6e342d4583d5468908cf278bc59a9eeb0f7 100644 (file)
--- 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);