From 2e2f8897f47c4f0a983cc7148960519e79385802 Mon Sep 17 00:00:00 2001 From: discomfitor Date: Sat, 31 Jul 2010 05:10:44 +0000 Subject: [PATCH] const git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@50706 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/bin/edje_decc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/edje_decc.c b/src/bin/edje_decc.c index d509200..a9c06b5 100644 --- a/src/bin/edje_decc.c +++ b/src/bin/edje_decc.c @@ -365,9 +365,9 @@ output(void) static int compiler_cmd_is_sane() { - char *c = edje_file->compiler, *ptr; + const char *c = edje_file->compiler, *ptr; - if (!c || !*c) + if ((!c) || (!*c)) { return 0; } @@ -375,7 +375,7 @@ compiler_cmd_is_sane() for (ptr = c; ptr && *ptr; ptr++) { /* only allow [a-z][A-Z][0-9]_- */ - if (!isalnum(*ptr) && *ptr != '_' && *ptr != '-') + if ((!isalnum(*ptr)) && (*ptr != '_') && (*ptr != '-')) { return 0; } -- 2.7.4