cgi-bin/tek/os/posix.c
changeset 241 c6c81629f54e
parent 198 87a4de7c7457
     1.1 --- a/cgi-bin/tek/os/posix.c	Fri Oct 05 01:41:59 2007 +0200
     1.2 +++ b/cgi-bin/tek/os/posix.c	Fri May 02 14:42:18 2008 +0200
     1.3 @@ -419,7 +419,7 @@
     1.4  
     1.5  static void
     1.6  addclass(lua_State *L, const char *libname, const char *classname,
     1.7 -	luaL_Reg *functions, luaL_Reg *methods, void *userdata)
     1.8 +	const luaL_Reg *functions, const luaL_Reg *methods, void *userdata)
     1.9  {
    1.10  	luaL_newmetatable(L, classname); /* classtab */
    1.11  	lua_pushliteral(L, "__index"); /* classtab, "__index" */
    1.12 @@ -448,7 +448,6 @@
    1.13  
    1.14  int luaopen_tek_os_posix(lua_State *L)
    1.15  {
    1.16 -	addclass(L, "tek.os.posix", DIRCLASSNAME,
    1.17 -		(luaL_Reg *) lib, (luaL_Reg *) methods, NULL);
    1.18 +	addclass(L, "tek.os.posix", DIRCLASSNAME, lib, methods, NULL);
    1.19  	return 0;
    1.20  }