diff options
author | Jean-Philippe Andre <jp.andre@samsung.com> | 2015-04-06 22:12:24 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2015-04-07 11:39:32 +0900 |
commit | 07e95f8003b7dacdd37b3a0ae6870d5dac85c446 (patch) | |
tree | a92e1864617a8afc43fb76385681ca4d08a0136a /src/bin/ecore_evas | |
parent | d0dcad1ddaa0699984ad2d6a4772503d6661b717 (diff) |
eetpack: Fix shadow variable warning
Diffstat (limited to 'src/bin/ecore_evas')
-rw-r--r-- | src/bin/ecore_evas/eetpack.c | 14 |
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 | ||
11 | static const char *file = NULL; | 11 | static const char *output = NULL; |
12 | static Eet_File *ef = NULL; | 12 | static Eet_File *ef = NULL; |
13 | static Ecore_Evas *ee = NULL; | 13 | static Ecore_Evas *ee = NULL; |
14 | static Evas *evas = NULL; | 14 | static Evas *evas = NULL; |
@@ -18,11 +18,11 @@ static void | |||
18 | file_add(void) | 18 | file_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 | |||
31 | file_del(void) | 31 | file_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 | ||