summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-11-27 08:16:38 +0000
committerJim Meyering <jim@meyering.net>2003-11-27 08:16:38 +0000
commit6b18b46eaefc05cc15e0cc13de57bd030f867d94 (patch)
treeb05b07444ed1fe8441bdf3b2f473a2b362fb7bd1 /src
parent355848c4c8897314bbc0fea8ba71fa6adfc39665 (diff)
downloadcoreutils-6b18b46eaefc05cc15e0cc13de57bd030f867d94.tar.xz
Include "c-strtod.h".
(main): Update xstrtod call to include new argument, c_strtod.
Diffstat (limited to 'src')
-rw-r--r--src/sleep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sleep.c b/src/sleep.c
index 9c96ab38d..0565c9768 100644
--- a/src/sleep.c
+++ b/src/sleep.c
@@ -22,6 +22,7 @@
#include <getopt.h>
#include "system.h"
+#include "c-strtod.h"
#include "error.h"
#include "long-options.h"
#include "xnanosleep.h"
@@ -144,7 +145,7 @@ main (int argc, char **argv)
{
double s;
const char *p;
- if (xstrtod (argv[i], &p, &s)
+ if (xstrtod (argv[i], &p, &s, c_strtod)
/* Nonnegative interval. */
|| ! (0 <= s)
/* No extra chars after the number and an optional s,m,h,d char. */