From: caro Date: Fri, 23 Jan 2009 18:24:35 +0000 (+0000) Subject: fix warnings with vc++ X-Git-Tag: 2.0_alpha~70^2~1041 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e31d5d2ce9eb86f5844dd682592512ebac6251d2;p=framework%2Fuifw%2Feina.git fix warnings with vc++ git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@38744 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/eina_stringshare.c b/src/lib/eina_stringshare.c index e3ccec8..a7bc6a2 100644 --- a/src/lib/eina_stringshare.c +++ b/src/lib/eina_stringshare.c @@ -420,7 +420,7 @@ _eina_stringshare_small_bucket_resize(Eina_Stringshare_Small_Bucket *bucket, int { void *tmp; - tmp = realloc(bucket->strings, size * sizeof(bucket->strings[0])); + tmp = realloc((void*)bucket->strings, size * sizeof(bucket->strings[0])); if (!tmp) { eina_error_set(EINA_ERROR_OUT_OF_MEMORY); @@ -482,7 +482,7 @@ _eina_stringshare_small_bucket_insert_at(Eina_Stringshare_Small_Bucket **p_bucke todo = bucket->count - index; if (todo > 0) { - memmove(bucket->strings + off, bucket->strings + index, + memmove((void *)(bucket->strings + off), bucket->strings + index, todo * sizeof(bucket->strings[0])); memmove(bucket->lengths + off, bucket->lengths + index, todo * sizeof(bucket->lengths[0])); @@ -514,7 +514,7 @@ _eina_stringshare_small_bucket_remove_at(Eina_Stringshare_Small_Bucket **p_bucke if (bucket->count == 1) { - free(bucket->strings); + free((void *)bucket->strings); free(bucket->lengths); free(bucket->references); free(bucket); @@ -529,7 +529,7 @@ _eina_stringshare_small_bucket_remove_at(Eina_Stringshare_Small_Bucket **p_bucke off = index + 1; todo = bucket->count - index; - memmove(bucket->strings + index, bucket->strings + off, + memmove((void *)(bucket->strings + index), bucket->strings + off, todo * sizeof(bucket->strings[0])); memmove(bucket->lengths + index, bucket->lengths + off, todo * sizeof(bucket->lengths[0])); @@ -617,7 +617,7 @@ _eina_stringshare_small_shutdown(void) for (; s < s_end; s++) free(*s); - free(bucket->strings); + free((void *)bucket->strings); free(bucket->lengths); free(bucket->references); free(bucket);