aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrii Kroitor <an.kroitor@samsung.com>2015-03-26 02:55:40 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-03-26 02:57:09 +0900
commit72dae98be8e5763ba0c846e5c54740c498a54259 (patch)
tree703c201daaef17122c5d31596bae4a6e23af1895
parentWayland shm: Fix shadow variable warning (diff)
downloadefl-72dae98be8e5763ba0c846e5c54740c498a54259.tar.gz
eet: fix variable naming
Summary: this file name is used for input, not for output. Reviewers: cedric, seoz, Hermet, raster Subscribers: cedric, reutskiy.v.v Differential Revision: https://phab.enlightenment.org/D2243
-rw-r--r--src/bin/eet/eet_main.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/bin/eet/eet_main.c b/src/bin/eet/eet_main.c
index dc493ef97e..5036d042c5 100644
--- a/src/bin/eet/eet_main.c
+++ b/src/bin/eet/eet_main.c
@@ -241,7 +241,7 @@ do_eet_decode(const char *file,
static void
do_eet_insert(const char *file,
const char *key,
- const char *out,
+ const char *in,
int compress,
const char *crypto_key)
{
@@ -260,10 +260,10 @@ do_eet_insert(const char *file,
exit(-1);
}
- f = fopen(out, "rb");
+ f = fopen(in, "rb");
if (!f)
{
- ERR("cannot open %s", out);
+ ERR("cannot open %s", in);
exit(-1);
}
@@ -271,7 +271,7 @@ do_eet_insert(const char *file,
size = ftell(f);
if (size < 0)
{
- ERR("cannot obtain current file position %s", out);
+ ERR("cannot obtain current file position %s", in);
fclose(f);
exit(-1);
}
@@ -286,7 +286,7 @@ do_eet_insert(const char *file,
if (fread(data, size, 1, f) != 1)
{
- ERR("cannot read file %s", out);
+ ERR("cannot read file %s", in);
exit(-1);
}
@@ -299,7 +299,7 @@ do_eet_insert(const char *file,
static void
do_eet_encode(const char *file,
const char *key,
- const char *out,
+ const char *in,
int compress,
const char *crypto_key)
{
@@ -319,10 +319,10 @@ do_eet_encode(const char *file,
exit(-1);
}
- f = fopen(out, "rb");
+ f = fopen(in, "rb");
if (!f)
{
- ERR("cannot open %s", out);
+ ERR("cannot open %s", in);
exit(-1);
}
@@ -330,7 +330,7 @@ do_eet_encode(const char *file,
textlen = ftell(f);
if (textlen < 0)
{
- ERR("cannot obtain current file position %s", out);
+ ERR("cannot obtain current file position %s", in);
fclose(f);
exit(-1);
}
@@ -345,14 +345,14 @@ do_eet_encode(const char *file,
if (fread(text, textlen, 1, f) != 1)
{
- ERR("cannot read file %s", out);
+ ERR("cannot read file %s", in);
exit(-1);
}
fclose(f);
if (!eet_data_undump_cipher(ef, key, crypto_key, text, textlen, compress))
{
- ERR("cannot parse %s", out);
+ ERR("cannot parse %s", in);
exit(-1);
}