summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/mcast.h2
-rw-r--r--src/mcast.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/mcast.h b/include/mcast.h
index 68d18e8..30aefc0 100644
--- a/include/mcast.h
+++ b/include/mcast.h
@@ -48,7 +48,7 @@ void mcast_server_destroy(struct mcast_sock *m);
struct mcast_sock *mcast_client_create(struct mcast_conf *conf);
void mcast_client_destroy(struct mcast_sock *m);
-ssize_t mcast_send(struct mcast_sock *m, void *data, int size);
+ssize_t mcast_send(struct mcast_sock *m, const void *data, int size);
ssize_t mcast_recv(struct mcast_sock *m, void *data, int size);
int mcast_get_fd(struct mcast_sock *m);
diff --git a/src/mcast.c b/src/mcast.c
index 8eedd07..3dff855 100644
--- a/src/mcast.c
+++ b/src/mcast.c
@@ -272,7 +272,7 @@ void mcast_client_destroy(struct mcast_sock *m)
free(m);
}
-ssize_t mcast_send(struct mcast_sock *m, void *data, int size)
+ssize_t mcast_send(struct mcast_sock *m, const void *data, int size)
{
ssize_t ret;