diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2012-03-30 11:52:39 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-03-30 11:52:39 -0400 |
commit | 875ab9e73505cfe922c28bc72f716995f1191ad8 (patch) | |
tree | 2f844ab1c07aebb3548c60e7f687895f238fc329 /clients/dnd.c | |
parent | ed92f79655e65f2acd40b99d8c6281a17845d8d8 (diff) | |
download | weston-875ab9e73505cfe922c28bc72f716995f1191ad8.tar.gz |
Add signedness warning flag and fix fallout
Diffstat (limited to 'clients/dnd.c')
-rw-r--r-- | clients/dnd.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/clients/dnd.c b/clients/dnd.c index 91a7365e..e3d3c34b 100644 --- a/clients/dnd.c +++ b/clients/dnd.c @@ -168,7 +168,7 @@ dnd_redraw_handler(struct widget *widget, void *data) struct rectangle allocation; cairo_t *cr; cairo_surface_t *surface; - int i; + unsigned int i; surface = window_get_surface(dnd->window); cr = cairo_create(surface); @@ -206,7 +206,7 @@ keyboard_focus_handler(struct window *window, static int dnd_add_item(struct dnd *dnd, struct item *item) { - int i; + unsigned int i; for (i = 0; i < ARRAY_LENGTH(dnd->items); i++) { if (dnd->items[i] == 0) { @@ -222,7 +222,7 @@ dnd_get_item(struct dnd *dnd, int32_t x, int32_t y) { struct item *item; struct rectangle allocation; - int i; + unsigned int i; widget_get_allocation(dnd->widget, &allocation); @@ -369,7 +369,7 @@ dnd_button_handler(struct widget *widget, struct display *display; struct wl_compositor *compositor; struct wl_buffer *buffer; - int i; + unsigned int i; widget_get_allocation(dnd->widget, &allocation); input_get_position(input, &x, &y); @@ -518,8 +518,9 @@ static struct dnd * dnd_create(struct display *display) { struct dnd *dnd; - int i, x, y; + int x, y; int32_t width, height; + unsigned int i; dnd = malloc(sizeof *dnd); if (dnd == NULL) |