mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-31 22:25:25 -04:00
connection: change clen type in build_cmsg to size_t
To avoid implicit conversion since msg_control's type is size_t. Signed-off-by: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
This commit is contained in:
parent
d066c4bd4e
commit
2bcc27ff36
1 changed files with 3 additions and 2 deletions
|
|
@ -231,7 +231,7 @@ wl_connection_consume(struct wl_connection *connection, size_t size)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
build_cmsg(struct wl_ring_buffer *buffer, char *data, int *clen)
|
build_cmsg(struct wl_ring_buffer *buffer, char *data, size_t *clen)
|
||||||
{
|
{
|
||||||
struct cmsghdr *cmsg;
|
struct cmsghdr *cmsg;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
@ -291,7 +291,8 @@ wl_connection_flush(struct wl_connection *connection)
|
||||||
struct iovec iov[2];
|
struct iovec iov[2];
|
||||||
struct msghdr msg = {0};
|
struct msghdr msg = {0};
|
||||||
char cmsg[CLEN];
|
char cmsg[CLEN];
|
||||||
int len = 0, count, clen;
|
int len = 0, count;
|
||||||
|
size_t clen;
|
||||||
uint32_t tail;
|
uint32_t tail;
|
||||||
|
|
||||||
if (!connection->want_flush)
|
if (!connection->want_flush)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue