From: Pekka Paalanen Date: Thu, 22 Mar 2012 15:21:58 +0000 (+0200) Subject: server: fix signedness in wl_client_connection_data X-Git-Tag: 0.94.90~128 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=00ea1701f261c256e9d1ed1c4dc2d87b86e624a9;p=profile%2Fivi%2Fwayland.git 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 --- 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;