aboutsummaryrefslogtreecommitdiff
path: root/init/halt.c
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-10-08 12:49:22 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-10-08 12:49:22 +0000
commit87d25a2b8535dc627a02eb539fa3946be2a24647 (patch)
treefc4d14a910593d1235318bb36abe5e9f72d2039e /init/halt.c
parent81177b14907e73f11560f69e0b4ec34371f1a7d5 (diff)
downloadbusybox-w32-87d25a2b8535dc627a02eb539fa3946be2a24647.tar.gz
busybox-w32-87d25a2b8535dc627a02eb539fa3946be2a24647.tar.bz2
busybox-w32-87d25a2b8535dc627a02eb539fa3946be2a24647.zip
attempt to regularize atoi mess.
git-svn-id: svn://busybox.net/trunk/busybox@16342 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'init/halt.c')
-rw-r--r--init/halt.c2
1 files changed, 1 insertions, 1 deletions
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
35 35
36 /* Parse and handle arguments */ 36 /* Parse and handle arguments */
37 flags = getopt32(argc, argv, "d:nf", &delay); 37 flags = getopt32(argc, argv, "d:nf", &delay);
38 if (flags&1) sleep(atoi(delay)); 38 if (flags&1) sleep(xatou(delay));
39 if (!(flags&2)) sync(); 39 if (!(flags&2)) sync();
40 40
41 /* Perform action. */ 41 /* Perform action. */