summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/lua/lfontlib.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2010-01-25 12:30:04 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2010-01-25 12:30:04 +0000
commit65c37b17f39210ff32ba3ec1415d5f5a3f8e86ff (patch)
treea23710d061b8695f9eec30cbf5591e6016432089 /Build/source/texk/web2c/luatexdir/lua/lfontlib.c
parenta6ff9d2b253991c7c8eb94f2977abb10ad466480 (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/lfontlib.c')
-rw-r--r--Build/source/texk/web2c/luatexdir/lua/lfontlib.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/Build/source/texk/web2c/luatexdir/lua/lfontlib.c b/Build/source/texk/web2c/luatexdir/lua/lfontlib.c
index 418d8439318..c07da9d0717 100644
--- a/Build/source/texk/web2c/luatexdir/lua/lfontlib.c
+++ b/Build/source/texk/web2c/luatexdir/lua/lfontlib.c
@@ -30,9 +30,7 @@ static const char _svn_version[] =
# include <sys/time.h>
#endif
-
-/* this function is in vfovf.c for the moment */
-extern int make_vf_table(lua_State * L, char *name, scaled s);
+#include "inc-vfovf.h"
static int get_fontid(void)
{
@@ -47,9 +45,9 @@ static int font_read_tfm(lua_State * L)
internalfontnumber f;
scaled s;
int k;
- char *cnom;
+ const char *cnom;
if (lua_isstring(L, 1)) {
- cnom = (char *) lua_tostring(L, 1);
+ cnom = lua_tostring(L, 1);
if (lua_isnumber(L, 2)) {
s = (integer) lua_tonumber(L, 2);
if (strlen(cnom)) {
@@ -82,9 +80,9 @@ static int font_read_tfm(lua_State * L)
static int font_read_vf(lua_State * L)
{
scaled s;
- char *cnom;
+ const char *cnom;
if (lua_isstring(L, 1)) {
- cnom = (char *) lua_tostring(L, 1);
+ cnom = lua_tostring(L, 1);
if (strlen(cnom)) {
if (lua_isnumber(L, 2)) {
s = lua_tonumber(L, 2);