From 0c249064a5c97e131c45696e92773d9d5a2b93f1 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Thu, 22 Mar 2012 17:21:58 +0200 Subject: [PATCH] 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 --- src/wayland-server.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wayland-server.c b/src/wayland-server.c index 70adf289..3b166c98 100644 --- a/src/wayland-server.c +++ b/src/wayland-server.c @@ -173,7 +173,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;