aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhael-Danilov <mikhaeldanilov@gmail.com>2013-02-20 22:19:05 +0400
committerMikhael-Danilov <mikhaeldanilov@gmail.com>2013-02-20 22:19:05 +0400
commitb21e375840c3f4afcba8d4d56e4586849928c2aa (patch)
tree0e6366c1907a903845781c4bf08d036724124746
parent9c2679f9d78f773471f2a9e58d02d8d6b29a2aa1 (diff)
downloadluafilesystem-b21e375840c3f4afcba8d4d56e4586849928c2aa.tar.gz
luafilesystem-b21e375840c3f4afcba8d4d56e4586849928c2aa.tar.bz2
luafilesystem-b21e375840c3f4afcba8d4d56e4586849928c2aa.zip
Update src/lfs.c
Fix Windows build: make_link now returns int as it should
-rw-r--r--src/lfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lfs.c b/src/lfs.c
index b270ee8..cfed850 100644
--- a/src/lfs.c
+++ b/src/lfs.c
@@ -408,7 +408,7 @@ static int make_link(lua_State *L)
408 return pushresult(L, 408 return pushresult(L,
409 (lua_toboolean(L,3) ? symlink : link)(oldpath, newpath), NULL); 409 (lua_toboolean(L,3) ? symlink : link)(oldpath, newpath), NULL);
410#else 410#else
411 pusherror(L, "make_link is not supported on Windows"); 411 return pusherror(L, "make_link is not supported on Windows");
412#endif 412#endif
413} 413}
414 414