summaryrefslogtreecommitdiff
path: root/weston-ivi-shell
diff options
context:
space:
mode:
authorEmre Ucan <eucan@de.adit-jv.com>2015-05-21 14:19:41 +0200
committerNobuhiko Tanibata <nobuhiko_tanibata@xddp.denso.co.jp>2015-06-15 16:23:34 +0900
commitaf808ccc7107500676fd3199d6da2e4612943b2e (patch)
tree7913d9e6a9dfa633d317aa245c9e3ffd64282513 /weston-ivi-shell
parentda33f7f9fa454204c1548074264c9eb546196e0b (diff)
downloadwayland-ivi-extension-af808ccc7107500676fd3199d6da2e4612943b2e.tar.gz
ivi-controller: fix compiler warnings -Wpointer-sign
Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
Diffstat (limited to 'weston-ivi-shell')
-rw-r--r--weston-ivi-shell/src/ivi-controller-impl.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/weston-ivi-shell/src/ivi-controller-impl.c b/weston-ivi-shell/src/ivi-controller-impl.c
index cee6d5f..52e82d3 100644
--- a/weston-ivi-shell/src/ivi-controller-impl.c
+++ b/weston-ivi-shell/src/ivi-controller-impl.c
@@ -314,7 +314,7 @@ send_surface_add_event(struct ivisurface *ivisurf,
enum ivi_layout_notification_mask mask)
{
struct ivi_layout_layer **pArray = NULL;
- uint32_t length = 0;
+ int32_t length = 0;
int32_t ans = 0;
int i = 0;
struct link_layer *link_layer = NULL;
@@ -414,7 +414,7 @@ update_surface_prop(struct ivisurface *ivisurf,
uint32_t mask)
{
struct ivi_layout_layer **pArray = NULL;
- uint32_t length = 0;
+ int32_t length = 0;
int32_t ans = 0;
int i = 0;
struct ivishell *shell = ivisurf->shell;
@@ -493,7 +493,7 @@ send_layer_add_event(struct ivilayer *ivilayer,
enum ivi_layout_notification_mask mask)
{
struct ivi_layout_screen **pArray = NULL;
- uint32_t length = 0;
+ int32_t length = 0;
int32_t ans = 0;
int i = 0;
struct link_screen *link_scrn = NULL;
@@ -588,7 +588,7 @@ update_layer_prop(struct ivilayer *ivilayer,
enum ivi_layout_notification_mask mask)
{
struct ivi_layout_screen **pArray = NULL;
- uint32_t length = 0;
+ int32_t length = 0;
int32_t ans = 0;
struct link_screen *link_scrn = NULL;
struct link_screen *next = NULL;
@@ -807,8 +807,8 @@ controller_surface_screenshot(struct wl_client *client,
free(buffer);
- if (save_as_bitmap(filename, image_buffer, size,
- width, height, 24) != 0) {
+ if (save_as_bitmap(filename, (const char *)image_buffer,
+ size, width, height, 24) != 0) {
weston_log("failed to take screenshot\n");
}
@@ -1116,7 +1116,8 @@ controller_screen_screenshot(struct wl_client *client,
width,
height);
- save_as_bitmap(filename, readpixs, stride * height, width, height, PIXMAN_FORMAT_BPP(output->compositor->read_format));
+ save_as_bitmap(filename, (const char*)readpixs, stride * height, width, height,
+ PIXMAN_FORMAT_BPP(output->compositor->read_format));
free(readpixs);
}
@@ -1644,7 +1645,7 @@ check_layout_layers(struct ivishell *shell)
struct ivi_layout_layer **pArray = NULL;
struct ivilayer *ivilayer = NULL;
uint32_t id_layer = 0;
- uint32_t length = 0;
+ int32_t length = 0;
uint32_t i = 0;
int32_t ret = 0;
@@ -1679,7 +1680,7 @@ check_layout_surfaces(struct ivishell *shell)
struct ivi_layout_surface **pArray = NULL;
struct ivisurface *ivisurf = NULL;
uint32_t id_surface = 0;
- uint32_t length = 0;
+ int32_t length = 0;
uint32_t i = 0;
int32_t ret = 0;