summaryrefslogtreecommitdiff
path: root/src/bin/ecore_evas/eetpack.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-04-06 22:12:24 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-04-07 11:39:32 +0900
commit07e95f8003b7dacdd37b3a0ae6870d5dac85c446 (patch)
treea92e1864617a8afc43fb76385681ca4d08a0136a /src/bin/ecore_evas/eetpack.c
parentd0dcad1ddaa0699984ad2d6a4772503d6661b717 (diff)
eetpack: Fix shadow variable warning
Diffstat (limited to '')
-rw-r--r--src/bin/ecore_evas/eetpack.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bin/ecore_evas/eetpack.c b/src/bin/ecore_evas/eetpack.c
index 7817fa9620..6e7616d189 100644
--- a/src/bin/ecore_evas/eetpack.c
+++ b/src/bin/ecore_evas/eetpack.c
@@ -8,7 +8,7 @@
8#include <Evas.h> 8#include <Evas.h>
9#include <Ecore_Evas.h> 9#include <Ecore_Evas.h>
10 10
11static const char *file = NULL; 11static const char *output = NULL;
12static Eet_File *ef = NULL; 12static Eet_File *ef = NULL;
13static Ecore_Evas *ee = NULL; 13static Ecore_Evas *ee = NULL;
14static Evas *evas = NULL; 14static Evas *evas = NULL;
@@ -18,11 +18,11 @@ static void
18file_add(void) 18file_add(void)
19{ 19{
20 if (ef) return; 20 if (ef) return;
21 ef = eet_open(file, EET_FILE_MODE_READ_WRITE); 21 ef = eet_open(output, EET_FILE_MODE_READ_WRITE);
22 if (!ef) ef = eet_open(file, EET_FILE_MODE_WRITE); 22 if (!ef) ef = eet_open(output, EET_FILE_MODE_WRITE);
23 if (!ef) 23 if (!ef)
24 { 24 {
25 printf("ERROR: Cannot open %s for reading or writing!\n", file); 25 printf("ERROR: Cannot open %s for reading or writing!\n", output);
26 exit(-1); 26 exit(-1);
27 } 27 }
28} 28}
@@ -31,10 +31,10 @@ static void
31file_del(void) 31file_del(void)
32{ 32{
33 if (ef) return; 33 if (ef) return;
34 ef = eet_open(file, EET_FILE_MODE_READ_WRITE); 34 ef = eet_open(output, EET_FILE_MODE_READ_WRITE);
35 if (!ef) 35 if (!ef)
36 { 36 {
37 printf("ERROR: Cannot open %s for writing!\n", file); 37 printf("ERROR: Cannot open %s for writing!\n", output);
38 exit(-1); 38 exit(-1);
39 } 39 }
40} 40}
@@ -280,7 +280,7 @@ main(int argc, char **argv)
280 ecore_evas_init(); 280 ecore_evas_init();
281 281
282 scratch_canvas_init(); 282 scratch_canvas_init();
283 file = argv[1]; 283 output = argv[1];
284 commands(2, argc, argv); 284 commands(2, argc, argv);
285 if (ef) eet_close(ef); 285 if (ef) eet_close(ef);
286 286