aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/util/lua/loslib.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2011-01-19 07:40:10 +0000
committerEugene Sandulenko2011-01-19 07:40:10 +0000
commit4bc730f256c7bbda7e6185174c0a24ac9b7241cc (patch)
tree641f1a73df23f22181f9bb6cbee234439010ba7a /engines/sword25/util/lua/loslib.cpp
parent3ba7a21c622f63bfbebe39279a4f40507e74f7f4 (diff)
downloadscummvm-rg350-4bc730f256c7bbda7e6185174c0a24ac9b7241cc.tar.gz
scummvm-rg350-4bc730f256c7bbda7e6185174c0a24ac9b7241cc.tar.bz2
scummvm-rg350-4bc730f256c7bbda7e6185174c0a24ac9b7241cc.zip
SWORD25: Strip off unportable functions
svn-id: r55319
Diffstat (limited to 'engines/sword25/util/lua/loslib.cpp')
-rw-r--r--engines/sword25/util/lua/loslib.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/engines/sword25/util/lua/loslib.cpp b/engines/sword25/util/lua/loslib.cpp
index 70a67bccf7..035925ceb5 100644
--- a/engines/sword25/util/lua/loslib.cpp
+++ b/engines/sword25/util/lua/loslib.cpp
@@ -55,13 +55,7 @@ static int os_rename (lua_State *L) {
static int os_tmpname (lua_State *L) {
- char buff[LUA_TMPNAMBUFSIZE];
- int err;
- lua_tmpnam(buff, err);
- if (err)
- return luaL_error(L, "unable to generate a unique filename");
- lua_pushstring(L, buff);
- return 1;
+ return luaL_error(L, "unable to generate a unique filename");
}