diff options
author | Christian Pointner <equinox@helsinki.at> | 2014-12-25 16:23:39 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2014-12-25 16:23:39 (GMT) |
commit | 942f4f9593c503770121f96a2be9342e848595fb (patch) | |
tree | 916c67b09ad94a5f68420aa678af9c1c00d86309 /rhnop-server/l_pipe.c | |
parent | 8e8a20b135ebade8473f10617f1f97b7472d7d42 (diff) |
some cleanup
added todo for mysql error handling
Diffstat (limited to 'rhnop-server/l_pipe.c')
-rw-r--r-- | rhnop-server/l_pipe.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rhnop-server/l_pipe.c b/rhnop-server/l_pipe.c index 4a30ee5..1cd8e49 100644 --- a/rhnop-server/l_pipe.c +++ b/rhnop-server/l_pipe.c @@ -58,7 +58,7 @@ static int l_pipe_signal(lua_State *L) break; } - + lua_pushinteger(L, ret); return 1; } @@ -69,7 +69,7 @@ static int l_pipe_getfd(lua_State *L) luaL_error(L, "can't retreive pipe fd"); lua_pushliteral(L, "fd"); - lua_gettable(L, -2); + lua_gettable(L, -2); return 1; } @@ -112,9 +112,9 @@ static int l_pipe_consume(lua_State *L) if(len >= sizeof(data)) { ret = 0; break; - } + } } - + if(ret) lua_pushstring(L, data); else |