server: fix button signedness in wl_grab_interface
authorPekka Paalanen <ppaalanen@gmail.com>
Fri, 30 Mar 2012 13:38:39 +0000 (16:38 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 30 Mar 2012 14:14:51 +0000 (10:14 -0400)
commit4560b6b6b4d19a65350591d9bbc83df1cdc7bd13
treee65dabb770e931e14055649946c5e18525d32aa0
parent03c40a8c99e1d9c63cb5cb0a70fc2272163e8be6
server: fix button signedness in wl_grab_interface

wl_input_device::grab_button is unsigned but the button parameter to
wl_grab_interface::button is signed. This lead to a warning in
data-device.c.

The button number is unsigned in the protocol, so make it unsigned in
the wl_grab_interface API, too. Fixes the compiler warning "comparison
between signed and unsigned integer expressions".

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
src/data-device.c
src/wayland-server.c
src/wayland-server.h