summaryrefslogtreecommitdiff
path: root/luaclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'luaclient.c')
-rw-r--r--luaclient.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/luaclient.c b/luaclient.c
index c3f1766..e758b7d 100644
--- a/luaclient.c
+++ b/luaclient.c
@@ -1,7 +1,7 @@
/*
* rhctl
*
- * Copyright (C) 2009 Christian Pointner <equinox@spreadspace.org>
+ * Copyright (C) 2009-2013 Christian Pointner <equinox@helsinki.at>
*
* This file is part of rhctl.
*
@@ -45,7 +45,7 @@
static const luaL_Reg anylike_lualibs[] = {
{"", luaopen_base},
- {LUA_LOADLIBNAME, luaopen_package},
+ {LUA_LOADLIBNAME, luaopen_package},
{LUA_TABLIBNAME, luaopen_table},
{LUA_STRLIBNAME, luaopen_string},
{LUA_MATHLIBNAME, luaopen_math},
@@ -135,7 +135,7 @@ int main_loop(int cmd_fd, options_t* opt)
int ret = init_main_loop(L, opt->lua_file_);
if(!ret)
ret = call_main_loop(L, cmd_fd, opt);
-
+
lua_close(L);
return ret;
}
@@ -175,7 +175,7 @@ int main(int argc, char* argv[])
case -4: fprintf(stderr, "this log target is only allowed once: '%s', exitting\n", tmp->string_); break;
default: fprintf(stderr, "syntax error near: '%s', exitting\n", tmp->string_); break;
}
-
+
options_clear(&opt);
log_close();
exit(ret);
@@ -236,13 +236,13 @@ int main(int argc, char* argv[])
cmd_fd = connect_command_socket(opt.command_sock_);
if(cmd_fd < 0)
ret = 2;
- else {
+ else {
ret = main_loop(cmd_fd, &opt);
- }
+ }
if(ret == 2) {
log_printf(ERROR, "socket error, trying to reconnect in 5 seconds..");
-
+
if(cmd_fd > 0)
close(cmd_fd);
sleep(5);