]> git.ozlabs.org Git - petitboot/blobdiff - ui/common/timer.c
ui/common: Set current console on boot command
[petitboot] / ui / common / timer.c
index 3c1e8331233b45e8016dd9faa2b8d8a0aaa976f1..b0cae0dfd0e8c93b4b00f049918d372d216dc67a 100644 (file)
@@ -20,7 +20,6 @@
 #include "config.h"
 #endif
 
-#define _GNU_SOURCE
 #include <assert.h>
 #include <limits.h>
 #include <unistd.h>
@@ -50,7 +49,7 @@ static int timer_cb(void *arg)
        struct ui_timer *timer = arg;
 
        timer->handle_timeout(timer);
-       timer->waiter = 0;
+       timer->waiter = NULL;
        return 0;
 }