projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a1a607
)
luci-lib-nixio: fix compilation
author
Jo-Philipp Wich
<jo@mein.io>
Fri, 26 Jul 2019 13:11:17 +0000
(15:11 +0200)
committer
Jo-Philipp Wich
<jo@mein.io>
Fri, 26 Jul 2019 13:11:17 +0000
(15:11 +0200)
Fixes: #2921
Fixes:
f3f42ff09
("address: Replace ualarm with setitimer")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
libs/luci-lib-nixio/src/address.c
patch
|
blob
|
history
diff --git
a/libs/luci-lib-nixio/src/address.c
b/libs/luci-lib-nixio/src/address.c
index ed3a4a1c6135511a1b1dbea601392761f0983fea..7957e8cc19aafa49bc220d3078b61500f452ce5d 100644
(file)
--- 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;