From 00ea1701f261c256e9d1ed1c4dc2d87b86e624a9 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 a443214..0c0d028 100644 --- a/src/wayland-server.c +++ b/src/wayland-server.c @@ -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; -- 2.7.4