]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Include "c-strtod.h".
authorJim Meyering <jim@meyering.net>
Thu, 27 Nov 2003 08:16:38 +0000 (08:16 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 27 Nov 2003 08:16:38 +0000 (08:16 +0000)
(main): Update xstrtod call to include new argument, c_strtod.

src/sleep.c

index 9c96ab38de67d0c6b3ec48bdc297b721e5fc200a..0565c97685bccde49b18539ce4df654aee243a4c 100644 (file)
@@ -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.  */