summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2012-07-31 22:45:44 +0000
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2012-07-31 22:45:44 +0000
commitab7e8b5240ba7a2a73ed207b1a20834f28dbbd97 (patch)
tree63a500d6fb366c7424446d4d2911d3012002e300 /src
parent91ebffedfa82e750fbfbcdfcf86b8e3b7cf2c612 (diff)
downloadedje-ab7e8b5240ba7a2a73ed207b1a20834f28dbbd97.tar.gz
edje-ab7e8b5240ba7a2a73ed207b1a20834f28dbbd97.tar.bz2
edje-ab7e8b5240ba7a2a73ed207b1a20834f28dbbd97.zip
edje log: fix some progname leftovers.
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@74702 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
Diffstat (limited to 'src')
-rw-r--r--src/bin/edje_cc.c12
-rw-r--r--src/bin/edje_decc.c6
2 files changed, 9 insertions, 9 deletions
diff --git a/src/bin/edje_cc.c b/src/bin/edje_cc.c
index d0ec3bd..ce78090 100644
--- a/src/bin/edje_cc.c
+++ b/src/bin/edje_cc.c
@@ -21,7 +21,7 @@ char *tmp_dir = NULL;
char *file_out = NULL;
char *watchfile = NULL;
-static char *progname = NULL;
+static const char *progname = NULL;
int no_lossy = 0;
int no_comp = 0;
@@ -160,7 +160,7 @@ main(int argc, char **argv)
EINA_LOG_ERR("Enable to create a log domain.");
exit(-1);
}
- progname = (char *)ecore_file_file_get(argv[0]);
+ progname = ecore_file_file_get(argv[0]);
eina_log_print_cb_set(_edje_cc_log_cb, NULL);
tmp_dir = getenv("TMPDIR");
@@ -271,7 +271,7 @@ main(int argc, char **argv)
if (!file_in)
{
- fprintf(stderr, "%s: Error: no input file specified.\n", progname);
+ ERR("no input file specified.");
main_help();
exit(-1);
}
@@ -296,7 +296,7 @@ main(int argc, char **argv)
if (stat(file_in, &st) || !S_ISREG(st.st_mode))
#endif
{
- fprintf(stderr, "%s: Error: file not found: %s.\n", progname, file_in);
+ ERR("file not found: %s.", file_in);
main_help();
exit(-1);
}
@@ -317,7 +317,7 @@ main(int argc, char **argv)
}
if (!file_out)
{
- fprintf(stderr, "%s: Error: no output file specified.\n", progname);
+ ERR("no output file specified.");
main_help();
exit(-1);
}
@@ -328,7 +328,7 @@ main(int argc, char **argv)
if (!strcmp (file_in, file_out))
#endif
{
- fprintf(stderr, "%s: Error: input file equals output file.\n", progname);
+ ERR("input file equals output file.");
main_help();
exit(-1);
}
diff --git a/src/bin/edje_decc.c b/src/bin/edje_decc.c
index e9d880f..01ece6a 100644
--- a/src/bin/edje_decc.c
+++ b/src/bin/edje_decc.c
@@ -19,7 +19,7 @@
#include "edje_decc.h"
int _edje_cc_log_dom = -1;
-static char *progname = NULL;
+static const char *progname = NULL;
char *file_in = NULL;
char *file_out = NULL;
int compress_mode = EET_COMPRESSION_DEFAULT;
@@ -152,7 +152,7 @@ main(int argc, char **argv)
eina_shutdown();
exit(-1);
}
- progname = (char *)ecore_file_file_get(argv[0]);
+ progname = ecore_file_file_get(argv[0]);
eina_log_print_cb_set(_edje_cc_log_cb, NULL);
eina_log_domain_level_set("edje_decc", EINA_LOG_LEVEL_INFO);
@@ -179,7 +179,7 @@ main(int argc, char **argv)
}
if (!file_in)
{
- ERR("%s: Error: no input file specified.", progname);
+ ERR("no input file specified.");
main_help();
exit(-1);
}