elua: fix warnings with -Wextra -Wshadow
authorDaniel Kolesa <d.kolesa@samsung.com>
Tue, 10 Jun 2014 14:36:07 +0000 (15:36 +0100)
committerDaniel Kolesa <d.kolesa@samsung.com>
Tue, 10 Jun 2014 14:48:54 +0000 (15:48 +0100)
src/bin/elua/main.c

index 2468a00..033545a 100644 (file)
@@ -369,7 +369,7 @@ const luaL_reg gettextlib[] =
 };
 
 static void
-print_help(const char *progname, FILE *stream)
+print_help(const char *pname, FILE *stream)
 {
    fprintf(stream, "Usage: %s [OPTIONS] [SCRIPT [ARGS]]\n\n"
                    "A main entry for all EFL/LuaJIT powered applications.\n\n"
@@ -383,7 +383,7 @@ print_help(const char *progname, FILE *stream)
                    "  -e[CODE],    --execute=[CODE]       Execute string 'code'.\n"
                    "  -l[LIBRARY], --library=[LIBRARY]    Require library 'library'.\n"
                    "  -I[DIR],     --lib-dir=[DIR]        Append an additional require path.\n"
-                   "  -E,          --noenv                Ignore environment variables.\n", progname);
+                   "  -E,          --noenv                Ignore environment variables.\n", pname);
 }
 
 static struct option lopt[] =