X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Funix.c;h=f50611b5b0eac52ad8ac92502826038eec10afeb;hb=e368fb4396b9bdb22de16f0c93512c9f6d7ab0b4;hp=0409750c3ff7ada10465c1d1ee92d878afb3309a;hpb=ddab38d1659326ae7933319adefc3dff243da352;p=lttng-tools.git diff --git a/src/common/unix.c b/src/common/unix.c index 0409750c3..f50611b5b 100644 --- a/src/common/unix.c +++ b/src/common/unix.c @@ -771,7 +771,7 @@ end: * Returns the size of data sent, or negative error value. */ LTTNG_HIDDEN -ssize_t lttcomm_send_creds_unix_sock(int sock, void *buf, size_t len) +ssize_t lttcomm_send_creds_unix_sock(int sock, const void *buf, size_t len) { struct msghdr msg; struct iovec iov[1]; @@ -787,7 +787,7 @@ ssize_t lttcomm_send_creds_unix_sock(int sock, void *buf, size_t len) memset(&msg, 0, sizeof(msg)); - iov[0].iov_base = buf; + iov[0].iov_base = (void *) buf; iov[0].iov_len = len; msg.msg_iov = iov; msg.msg_iovlen = 1;