From 8cf423ce22e03e3d5bfc87ece071bdc27a36ad8b Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 27 Sep 2022 18:10:09 -0400 Subject: Cleaned things up. --- lpm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lpm.c') diff --git a/lpm.c b/lpm.c index 02d1c3d..b58edf3 100644 --- a/lpm.c +++ b/lpm.c @@ -66,8 +66,8 @@ int lpm_symlink(lua_State* L) { } int lpm_chmod(lua_State* L) { - if (chmod(luaL_checkstring(L, 1)), luaL_checkinteger(L, 2)) - return luaL_error(L, "can't chmod %s: %s", luaL_checkstring(L, 1), strerror(errno)) + if (chmod(luaL_checkstring(L, 1), luaL_checkinteger(L, 2))) + return luaL_error(L, "can't chmod %s: %s", luaL_checkstring(L, 1), strerror(errno)); return 0; } -- cgit v1.2.3