aboutsummaryrefslogtreecommitdiff
path: root/lpm.c
diff options
context:
space:
mode:
authorAdam <adamdharrison@gmail.com>2022-09-27 18:10:09 -0400
committerAdam <adamdharrison@gmail.com>2022-09-27 18:10:09 -0400
commit8cf423ce22e03e3d5bfc87ece071bdc27a36ad8b (patch)
tree6650b17a211c670fb04a8e5dfe15c06a29a102a3 /lpm.c
parentffb465457b8ff65fba40cda84faa55d5aaad8510 (diff)
downloadlite-xl-plugin-manager-8cf423ce22e03e3d5bfc87ece071bdc27a36ad8b.tar.gz
lite-xl-plugin-manager-8cf423ce22e03e3d5bfc87ece071bdc27a36ad8b.zip
Cleaned things up.
Diffstat (limited to 'lpm.c')
-rw-r--r--lpm.c4
1 files changed, 2 insertions, 2 deletions
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;
}