summaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2014-01-09 09:24:04 +0100
committerCedric BAIL <cedric.bail@samsung.com>2014-01-10 16:37:45 +0900
commit2ed4a0510a9704c2fae790b3945ae708268dfe16 (patch)
treeebf2d2fcccde269b062448a82e4bd088371f3b45 /src/examples
parentc3d5ff925243d9287bf81038985102d59ac0419a (diff)
examples: fix various warnings in ecore and eina examples.
Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/ecore/ecore_evas_extn_plug_example.c2
-rw-r--r--src/examples/ecore/ecore_exe_example.c2
-rw-r--r--src/examples/eina/eina_inarray_02.c2
-rw-r--r--src/examples/eina/eina_iterator_01.c4
-rw-r--r--src/examples/eina/eina_value_03.c2
5 files changed, 6 insertions, 6 deletions
diff --git a/src/examples/ecore/ecore_evas_extn_plug_example.c b/src/examples/ecore/ecore_evas_extn_plug_example.c
index c8d4d49457..b08cf5ea5b 100644
--- a/src/examples/ecore/ecore_evas_extn_plug_example.c
+++ b/src/examples/ecore/ecore_evas_extn_plug_example.c
@@ -98,7 +98,7 @@ _ecore_evas_msg_handle(Ecore_Evas *ee, int msg_domain, int msg_id, void *data, i
98 printf("data len= (%d).\n", len); 98 printf("data len= (%d).\n", len);
99 99
100 text = ecore_evas_data_get(ee, "text"); 100 text = ecore_evas_data_get(ee, "text");
101 if (text && (size == strlen(txt))) 101 if (text && (size == (int)strlen(txt)))
102 { 102 {
103 printf("Receive msg is text (%s).\n", txt); 103 printf("Receive msg is text (%s).\n", txt);
104 evas_object_text_text_set(text, txt); 104 evas_object_text_text_set(text, txt);
diff --git a/src/examples/ecore/ecore_exe_example.c b/src/examples/ecore/ecore_exe_example.c
index e58ac831cd..aa2bd34e99 100644
--- a/src/examples/ecore/ecore_exe_example.c
+++ b/src/examples/ecore/ecore_exe_example.c
@@ -78,7 +78,7 @@ main(void)
78 if (childPid == -1) 78 if (childPid == -1)
79 fprintf(stderr, "Could not retrive the PID!\n"); 79 fprintf(stderr, "Could not retrive the PID!\n");
80 else 80 else
81 fprintf(stdout, "The child process has PID:%d\n", childPid); 81 fprintf(stdout, "The child process has PID:%u\n", (unsigned int)childPid);
82 82
83 ecore_event_handler_add(ECORE_EXE_EVENT_DATA, _msg_from_child_handler, NULL); 83 ecore_event_handler_add(ECORE_EXE_EVENT_DATA, _msg_from_child_handler, NULL);
84 ecore_timer_add(1, _sendMessage, childHandle); 84 ecore_timer_add(1, _sendMessage, childHandle);
diff --git a/src/examples/eina/eina_inarray_02.c b/src/examples/eina/eina_inarray_02.c
index 17c0667408..a00fb66ca3 100644
--- a/src/examples/eina/eina_inarray_02.c
+++ b/src/examples/eina/eina_inarray_02.c
@@ -20,7 +20,7 @@ main(int argc, char **argv)
20 iarr = eina_inarray_new(sizeof(char *), 0); 20 iarr = eina_inarray_new(sizeof(char *), 0);
21 21
22 for (i = 0; i < 20; i++){ 22 for (i = 0; i < 20; i++){
23 str = &strings[i]; 23 str = (char **)(&strings[i]);
24 eina_inarray_push(iarr, str); 24 eina_inarray_push(iarr, str);
25 } 25 }
26 26
diff --git a/src/examples/eina/eina_iterator_01.c b/src/examples/eina/eina_iterator_01.c
index 88c40cc695..bd1d7ba41f 100644
--- a/src/examples/eina/eina_iterator_01.c
+++ b/src/examples/eina/eina_iterator_01.c
@@ -48,13 +48,13 @@ main(int argc, char **argv)
48 } 48 }
49 49
50 it = eina_array_iterator_new(array); 50 it = eina_array_iterator_new(array);
51 eina_iterator_next(it, &uninteresting); 51 eina_iterator_next(it, (void **)&uninteresting);
52 print_eina_container(it); 52 print_eina_container(it);
53 eina_array_free(eina_iterator_container_get(it)); 53 eina_array_free(eina_iterator_container_get(it));
54 eina_iterator_free(it); 54 eina_iterator_free(it);
55 55
56 it = eina_list_iterator_new(list); 56 it = eina_list_iterator_new(list);
57 eina_iterator_next(it, &uninteresting); 57 eina_iterator_next(it, (void **)&uninteresting);
58 print_eina_container(it); 58 print_eina_container(it);
59 eina_iterator_free(it); 59 eina_iterator_free(it);
60 60
diff --git a/src/examples/eina/eina_value_03.c b/src/examples/eina/eina_value_03.c
index 30520d116c..964110944c 100644
--- a/src/examples/eina/eina_value_03.c
+++ b/src/examples/eina/eina_value_03.c
@@ -20,7 +20,7 @@ _tz_flush(const Eina_Value_Type *type, void *mem)
20static Eina_Bool 20static Eina_Bool
21_tz_copy(const Eina_Value_Type *type, const void *src, void * dst) 21_tz_copy(const Eina_Value_Type *type, const void *src, void * dst)
22{ 22{
23 struct timezone *tzsrc = src; 23 struct timezone *tzsrc = (struct timezone *)src;
24 struct timezone *tzdst = dst; 24 struct timezone *tzdst = dst;
25 *tzdst = *tzsrc; 25 *tzdst = *tzsrc;
26 return EINA_TRUE; 26 return EINA_TRUE;