From: Jo-Philipp Wich Date: Fri, 26 Jul 2019 13:11:17 +0000 (+0200) Subject: luci-lib-nixio: fix compilation X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=16f23de9779908850f756d62c2550b354c97e0f7;p=oweals%2Fluci.git luci-lib-nixio: fix compilation Fixes: #2921 Fixes: f3f42ff09 ("address: Replace ualarm with setitimer") Signed-off-by: Jo-Philipp Wich --- diff --git a/libs/luci-lib-nixio/src/address.c b/libs/luci-lib-nixio/src/address.c index ed3a4a1c6..7957e8cc1 100644 --- a/libs/luci-lib-nixio/src/address.c +++ b/libs/luci-lib-nixio/src/address.c @@ -288,9 +288,9 @@ static int nixio_getnameinfo(lua_State *L) { const char *family = luaL_optstring(L, 2, NULL); #ifdef __linux__ - const struct itimerval t = { {timeout * 1000 * 1000, 0} , {0, 0} }; struct sigaction sa_new, sa_old; int timeout = luaL_optnumber(L, 3, 0); + const struct itimerval t = { {timeout * 1000 * 1000, 0} , {0, 0} }; if (timeout > 0 && timeout < 1000) { sa_new.sa_handler = nixio__handle_alarm;