From 97ccdc90ed810f809237669e0c3c91c1cf0ed208 Mon Sep 17 00:00:00 2001 From: tomas Date: Fri, 22 Jun 2007 12:44:46 +0000 Subject: Avoiding dependency in backwards compatibility to Lua 5.0 --- src/lfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lfs.c b/src/lfs.c index e86840a..6158cf0 100644 --- a/src/lfs.c +++ b/src/lfs.c @@ -15,7 +15,7 @@ ** lfs.touch (filepath [, atime [, mtime]]) ** lfs.unlock (fh) ** -** $Id: lfs.c,v 1.38 2007/06/07 01:28:08 tomas Exp $ +** $Id: lfs.c,v 1.39 2007/06/22 12:44:46 tomas Exp $ */ #include @@ -599,7 +599,7 @@ static const struct luaL_reg fslib[] = { int luaopen_lfs (lua_State *L) { dir_create_meta (L); - luaL_openlib (L, "lfs", fslib, 0); + luaL_register (L, "lfs", fslib); set_info (L); return 1; } -- cgit v1.2.3-55-g6feb