diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-01-25 12:30:04 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-01-25 12:30:04 +0000 |
commit | 65c37b17f39210ff32ba3ec1415d5f5a3f8e86ff (patch) | |
tree | a23710d061b8695f9eec30cbf5591e6016432089 /Build/source/texk/web2c/luatexdir/lua/lkpselib.c | |
parent | a6ff9d2b253991c7c8eb94f2977abb10ad466480 (diff) |
texk/web2c/luatexdir: compiler warnings
git-svn-id: svn://tug.org/texlive/trunk@16817 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/lua/lkpselib.c')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/lua/lkpselib.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Build/source/texk/web2c/luatexdir/lua/lkpselib.c b/Build/source/texk/web2c/luatexdir/lua/lkpselib.c index 437f118942b..d4af0600dde 100644 --- a/Build/source/texk/web2c/luatexdir/lua/lkpselib.c +++ b/Build/source/texk/web2c/luatexdir/lua/lkpselib.c @@ -163,7 +163,7 @@ int program_name_set = 0; static int find_file(lua_State * L) { int i; - char *st; + const char *st; int ftype = kpse_tex_format; int mexist = 0; TEST_PROGRAM_NAME_SET; @@ -171,7 +171,7 @@ static int find_file(lua_State * L) lua_pushstring(L, "not a file name"); lua_error(L); } - st = (char *) lua_tostring(L, 1); + st = lua_tostring(L, 1); i = lua_gettop(L); while (i > 1) { if (lua_isboolean(L, i)) { @@ -206,7 +206,7 @@ static int lua_kpathsea_find_file(lua_State * L) int ftype = kpse_tex_format; int mexist = 0; kpathsea *kp = (kpathsea *) luaL_checkudata(L, 1, KPATHSEA_METATABLE); - char *st = (char *) luaL_checkstring(L, 2); + const char *st = luaL_checkstring(L, 2); i = lua_gettop(L); while (i > 2) { if (lua_isboolean(L, i)) { @@ -403,8 +403,8 @@ static int lua_kpathsea_new(lua_State * L) { kpathsea kpse = NULL; kpathsea *kp = NULL; - char *argv = (char *) luaL_checkstring(L, 1); - char *liar = (char *) luaL_optstring(L, 2, argv); + const char *argv = luaL_checkstring(L, 1); + const char *liar = luaL_optstring(L, 2, argv); kpse = kpathsea_new(); kpathsea_set_program_name(kpse, argv, liar); kp = (kpathsea *) lua_newuserdata(L, sizeof(kpathsea *)); |