diff options
| author | Marcin Bukat <marcin.bukat@gmail.com> | 2014-04-02 20:46:06 +0200 |
|---|---|---|
| committer | Marcin Bukat <marcin.bukat@gmail.com> | 2014-04-02 20:46:06 +0200 |
| commit | bfd0179042b0b02fb88748d54e56e7e208bb117f (patch) | |
| tree | 42d5fd51574054caaf673420fca1ec962d62d2f2 /apps/plugins/lua/luadir.c | |
| parent | 36378988ad4059982742f05f5eb50580b456840a (diff) | |
| download | rockbox-bfd0179042b0b02fb88748d54e56e7e208bb117f.zip rockbox-bfd0179042b0b02fb88748d54e56e7e208bb117f.tar.gz rockbox-bfd0179042b0b02fb88748d54e56e7e208bb117f.tar.bz2 rockbox-bfd0179042b0b02fb88748d54e56e7e208bb117f.tar.xz | |
Revert "Update lua plugin to 5.2.3"
FILE typedef to *void needs more work to not break sim and
application builds. I checked only a few random native builds
unfortunately. Sorry for inconvenience.
Diffstat (limited to 'apps/plugins/lua/luadir.c')
| -rw-r--r-- | apps/plugins/lua/luadir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/lua/luadir.c b/apps/plugins/lua/luadir.c index 3c65b28..c8c21d2 100644 --- a/apps/plugins/lua/luadir.c +++ b/apps/plugins/lua/luadir.c @@ -98,7 +98,7 @@ static int dir_iter_factory (lua_State *L) { lua_setmetatable (L, -2); d->dir = rb->opendir (path); if (d->dir == NULL) - luaL_error (L, "cannot open dir %s: %d", path, errno); + luaL_error (L, "cannot open %s: %d", path, errno); return 2; } @@ -125,7 +125,7 @@ static int dir_create_meta (lua_State *L) { return 1; } -static const struct luaL_Reg fslib[] = { +static const struct luaL_reg fslib[] = { {"dir", dir_iter_factory}, {"mkdir", make_dir}, {"rmdir", remove_dir}, |