mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -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
|
||||
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;
|
||||
size_t size;
|
||||
|
|
@ -291,7 +291,8 @@ wl_connection_flush(struct wl_connection *connection)
|
|||
struct iovec iov[2];
|
||||
struct msghdr msg = {0};
|
||||
char cmsg[CLEN];
|
||||
int len = 0, count, clen;
|
||||
int len = 0, count;
|
||||
size_t clen;
|
||||
uint32_t tail;
|
||||
|
||||
if (!connection->want_flush)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue