From: Kristian Høgsberg Date: Fri, 30 Mar 2012 15:31:25 +0000 (-0400) Subject: Fix warnings resulting from wayland signedness fixes X-Git-Tag: 20120702.1049~331 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ed92f79655e65f2acd40b99d8c6281a17845d8d8;p=profile%2Fivi%2Fweston.git Fix warnings resulting from wayland signedness fixes --- diff --git a/src/shell.c b/src/shell.c index 9cc53d8..02f203a 100644 --- a/src/shell.c +++ b/src/shell.c @@ -197,7 +197,7 @@ move_grab_motion(struct wl_pointer_grab *grab, static void move_grab_button(struct wl_pointer_grab *grab, - uint32_t time, int32_t button, int32_t state) + uint32_t time, uint32_t button, int32_t state) { struct wl_input_device *device = grab->input_device; @@ -296,7 +296,7 @@ resize_grab_motion(struct wl_pointer_grab *grab, static void resize_grab_button(struct wl_pointer_grab *grab, - uint32_t time, int32_t button, int32_t state) + uint32_t time, uint32_t button, int32_t state) { struct wl_input_device *device = grab->input_device; @@ -675,7 +675,7 @@ popup_grab_motion(struct wl_pointer_grab *grab, static void popup_grab_button(struct wl_pointer_grab *grab, - uint32_t time, int32_t button, int32_t state) + uint32_t time, uint32_t button, int32_t state) { struct wl_resource *resource; struct shell_surface *shsurf = @@ -1315,7 +1315,7 @@ rotate_grab_motion(struct wl_pointer_grab *grab, static void rotate_grab_button(struct wl_pointer_grab *grab, - uint32_t time, int32_t button, int32_t state) + uint32_t time, uint32_t button, int32_t state) { struct rotate_grab *rotate = container_of(grab, struct rotate_grab, grab); diff --git a/src/xserver-launcher.c b/src/xserver-launcher.c index 7fc79d8..33bd773 100644 --- a/src/xserver-launcher.c +++ b/src/xserver-launcher.c @@ -775,7 +775,7 @@ weston_wm_read_data_source(int fd, uint32_t mask, void *data) wm->source_data.size = current + len; if (wm->source_data.size >= incr_chunk_size) { if (!wm->incr) { - fprintf(stderr, "got %d bytes, starting incr\n", + fprintf(stderr, "got %zu bytes, starting incr\n", wm->source_data.size); wm->incr = 1; xcb_change_property(wm->conn, @@ -790,13 +790,13 @@ weston_wm_read_data_source(int fd, uint32_t mask, void *data) wl_event_source_remove(wm->property_source); weston_wm_send_selection_notify(wm, wm->selection_request.property); } else if (wm->selection_property_set) { - fprintf(stderr, "got %d bytes, waiting for " + fprintf(stderr, "got %zu bytes, waiting for " "property delete\n", wm->source_data.size); wm->flush_property_on_delete = 1; wl_event_source_remove(wm->property_source); } else { - fprintf(stderr, "got %d bytes, " + fprintf(stderr, "got %zu bytes, " "property deleted, seting new property\n", wm->source_data.size); weston_wm_flush_source_data(wm); @@ -816,10 +816,10 @@ weston_wm_read_data_source(int fd, uint32_t mask, void *data) wm->flush_property_on_delete = 1; if (wm->selection_property_set) { - fprintf(stderr, "got %d bytes, waiting for " + fprintf(stderr, "got %zu bytes, waiting for " "property delete\n", wm->source_data.size); } else { - fprintf(stderr, "got %d bytes, " + fprintf(stderr, "got %zu bytes, " "property deleted, seting new property\n", wm->source_data.size); weston_wm_flush_source_data(wm); @@ -869,7 +869,7 @@ weston_wm_send_incr_chunk(struct weston_wm *wm) wm->selection_property_set = 0; if (wm->flush_property_on_delete) { - fprintf(stderr, "setting new property, %d bytes\n", + fprintf(stderr, "setting new property, %zu bytes\n", wm->source_data.size); wm->flush_property_on_delete = 0; length = weston_wm_flush_source_data(wm);