use const for char buffer in uclient_write
[oweals/uclient.git] / uclient-backend.h
index a5cf4f3d392ab9fd5fa2a6510d49c0f6bcfb355b..9ccc7999dbf7a0e3251db9d0a1be9ca90890f779 100644 (file)
@@ -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);