summaryrefslogtreecommitdiff
path: root/luaclient.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2013-09-16 14:56:54 (GMT)
committerChristian Pointner <equinox@helsinki.at>2013-09-16 14:56:54 (GMT)
commit4dbc730656002f93cbbc0824e4b2d46d1ede6983 (patch)
tree3a21f56519155a35d75d6ff5dbf548a7b4c65cb2 /luaclient.c
parent6aef19e1b31044795ecd2d356315ad5506a292a2 (diff)
licence updates
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);