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/lpdflib.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/lpdflib.c')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/lua/lpdflib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/luatexdir/lua/lpdflib.c b/Build/source/texk/web2c/luatexdir/lua/lpdflib.c index 4592df64e3d..6de1ae112a9 100644 --- a/Build/source/texk/web2c/luatexdir/lua/lpdflib.c +++ b/Build/source/texk/web2c/luatexdir/lua/lpdflib.c @@ -40,7 +40,7 @@ static int findcurh(lua_State * L) return 1; } -int luapdfprint(lua_State * L) +static int luapdfprint(lua_State * L) { int n; unsigned i; @@ -58,7 +58,7 @@ int luapdfprint(lua_State * L) lua_pushstring(L, "invalid argument for print literal mode"); lua_error(L); } else { - outputstr = (char *) lua_tostring(L, -2); + outputstr = lua_tostring(L, -2); if (strcmp(outputstr, "direct") == 0) literal_mode = direct_always; else if (strcmp(outputstr, "page") == 0) @@ -123,9 +123,9 @@ static int l_immediateobj(lua_State * L) static int getpdf(lua_State * L) { - char *st; + const char *st; if (lua_isstring(L, 2)) { - st = (char *) lua_tostring(L, 2); + st = lua_tostring(L, 2); if (st && *st) { if (*st == 'h') return findcurh(L); |