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:
Pekka Paalanen 2012-03-22 17:21:58 +02:00 committed by Kristian Høgsberg
parent 0e81a0b157
commit 00ea1701f2

View 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;