libs/nixio: add missing parameter to alarm reset
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 27 Aug 2012 14:54:37 +0000 (14:54 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 27 Aug 2012 14:54:37 +0000 (14:54 +0000)
libs/nixio/src/address.c

index d4f13d7..4fd557d 100644 (file)
@@ -337,7 +337,7 @@ static int nixio_getnameinfo(lua_State *L) {
 #ifdef __linux__
        if (timeout > 0 && timeout < 1000)
        {
-               ualarm(0);
+               ualarm(0, 0);
                sigaction(SIGALRM, &sa_old, NULL);
        }
 #endif