chiark / gitweb /
time-util: add and use USEC/NSEC_INFINIY
[elogind.git] / src / firstboot / firstboot.c
index 6abffc528f953173fe658aeec37b52e359774b19..2c08ad481ba71b3dd5d759d2d941de84aedb3c36 100644 (file)
@@ -68,7 +68,7 @@ static bool press_any_key(void) {
         printf("-- Press any key to proceed --");
         fflush(stdout);
 
-        read_one_char(stdin, &k, (usec_t) -1, &need_nl);
+        read_one_char(stdin, &k, USEC_INFINITY, &need_nl);
 
         if (need_nl)
                 putchar('\n');