mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-02 09:01:39 -05:00
Fix printf format warnings
connection.c:530: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'unsigned int' /connection.c:560: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'unsigned int' Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
parent
677c5180e6
commit
b7c7963f16
1 changed files with 2 additions and 2 deletions
|
@ -558,7 +558,7 @@ wl_connection_vmarshal(struct wl_connection *connection,
|
|||
return closure;
|
||||
|
||||
err:
|
||||
printf("request too big to marshal, maximum size is %lu\n",
|
||||
printf("request too big to marshal, maximum size is %zu\n",
|
||||
sizeof closure->buffer);
|
||||
errno = ENOMEM;
|
||||
return NULL;
|
||||
|
@ -588,7 +588,7 @@ wl_connection_demarshal(struct wl_connection *connection,
|
|||
|
||||
extra_space = wl_message_size_extra(message);
|
||||
if (sizeof closure->buffer < size + extra_space) {
|
||||
printf("request too big to demarshal, maximum %lu actual %d\n",
|
||||
printf("request too big to demarshal, maximum %zu actual %d\n",
|
||||
sizeof closure->buffer, size + extra_space);
|
||||
errno = ENOMEM;
|
||||
wl_connection_consume(connection, size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue