Port tests/timerfd.c
[akaros.git] / tests / alarm.c
index 68b310d..14c5f23 100644 (file)
@@ -61,7 +61,7 @@ int main(int argc, char **argv)
                perror("Failed to set timer");
                exit(-1);
        }
-       if (devalarm_disable(ctlfd)) {
+       if (devalarm_disable(timerfd)) {
                perror("Failed to cancel timer");
                exit(-1);
        }