From: raster Date: Tue, 2 Mar 2010 03:15:33 +0000 (+0000) Subject: ok - dont need itt at all - will make llvm quieter, but in this case it was X-Git-Tag: accepted/2.0/20130306.225542~242^2~1979 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f8ff7c7078faa6af6fef69746fd48e2e0603141;p=profile%2Fivi%2Fevas.git ok - dont need itt at all - will make llvm quieter, but in this case it was wrong. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@46770 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/bin/evas_cserve_main.c b/src/bin/evas_cserve_main.c index 2aeef5c..4a6745f 100644 --- a/src/bin/evas_cserve_main.c +++ b/src/bin/evas_cserve_main.c @@ -1325,23 +1325,22 @@ message(void *fdata, Server *s, Client *c, int opcode, int size, unsigned char * DBG("... walk all imgs"); EINA_LIST_FOREACH(imgs, l, img) { - Op_Getinfo_Item *itt, it; + Op_Getinfo_Item it; LKL(img->lock); DBG("... img %p", img); memset(&it, 0, sizeof(Op_Getinfo_Item)); - itt = (Op_Getinfo_Item *)p; it.file_key_size = 0; if (img->file.file) { - strcpy((char*) p + sizeof(Op_Getinfo_Item) + it.file_key_size, img->file.file); + strcpy((char *)p + sizeof(Op_Getinfo_Item) + it.file_key_size, img->file.file); it.file_key_size += strlen(img->file.file); } p[sizeof(Op_Getinfo_Item) + it.file_key_size] = 0; it.file_key_size += 1; if (img->file.key) { - strcpy((char*) p + sizeof(Op_Getinfo_Item) + it.file_key_size, img->file.key); + strcpy((char *)p + sizeof(Op_Getinfo_Item) + it.file_key_size, img->file.key); it.file_key_size += strlen(img->file.key); } p[sizeof(Op_Getinfo_Item) + it.file_key_size] = 0; @@ -1379,8 +1378,8 @@ message(void *fdata, Server *s, Client *c, int opcode, int size, unsigned char * it.dead = img->dead; it.useless = img->useless; DBG("... memcpy %p %p %zu ", - itt, &it, sizeof(Op_Getinfo_Item)); - memcpy(itt, &it, sizeof(Op_Getinfo_Item)); + p, &it, sizeof(Op_Getinfo_Item)); + memcpy(p, &it, sizeof(Op_Getinfo_Item)); DBG("... memcpy done %p", img); p += sizeof(Op_Getinfo_Item) + it.file_key_size; LKU(img->lock);