attempt to regularize atoi mess.
[oweals/busybox.git] / init / halt.c
index 2ac210e59aca76e8afd62e07ba68fe226b281c79..9e3cbb1cfc4d0d0c74909b824801a81f05b9aadf 100644 (file)
@@ -35,7 +35,7 @@ RB_AUTOBOOT
 
        /* Parse and handle arguments */
        flags = getopt32(argc, argv, "d:nf", &delay);
-       if (flags&1) sleep(atoi(delay));
+       if (flags&1) sleep(xatou(delay));
        if (!(flags&2)) sync();
 
        /* Perform action. */