mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
server: fix signedness in wl_client_connection_data
The variables opcode and size were unsigned, which lead to warnings about comparisons of signed vs. unsigned. Change these variable to signed. Their usage never relies on being unsigned. This also fixes (an assumed) printf format string problem, where these were printed with %d, not %u. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
parent
0e81a0b157
commit
00ea1701f2
1 changed files with 2 additions and 1 deletions
|
|
@ -186,7 +186,8 @@ wl_client_connection_data(int fd, uint32_t mask, void *data)
|
|||
struct wl_object *object;
|
||||
struct wl_closure *closure;
|
||||
const struct wl_message *message;
|
||||
uint32_t p[2], opcode, size;
|
||||
uint32_t p[2];
|
||||
int opcode, size;
|
||||
uint32_t cmask = 0;
|
||||
int len;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue