From 87d25a2b8535dc627a02eb539fa3946be2a24647 Mon Sep 17 00:00:00 2001 From: vda Date: Sun, 8 Oct 2006 12:49:22 +0000 Subject: attempt to regularize atoi mess. git-svn-id: svn://busybox.net/trunk/busybox@16342 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- init/halt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init') diff --git a/init/halt.c b/init/halt.c index 2ac210e59..9e3cbb1cf 100644 --- a/init/halt.c +++ b/init/halt.c @@ -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. */ -- cgit v1.2.3-55-g6feb