server: fix signedness in wl_client_connection_data
authorPekka Paalanen <ppaalanen@gmail.com>
Thu, 22 Mar 2012 15:21:58 +0000 (17:21 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 30 Mar 2012 13:32:26 +0000 (09:32 -0400)
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>
src/wayland-server.c

index a443214..0c0d028 100644 (file)
@@ -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;