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

src/tail.c

index 4b14225e88f70549e4522193ec39a31f1b431982..4364ec1edb3b40c9469d0ae531d2f8cc9b5529b0 100644 (file)
@@ -33,6 +33,7 @@
 
 #include "system.h"
 #include "argmatch.h"
+#include "c-strtod.h"
 #include "error.h"
 #include "inttostr.h"
 #include "posixver.h"
@@ -1610,7 +1611,7 @@ parse_options (int argc, char **argv,
        case 's':
          {
            double s;
-           if (xstrtod (optarg, NULL, &s) || ! (0 <= s))
+           if (xstrtod (optarg, NULL, &s, c_strtod) || ! (0 <= s))
              error (EXIT_FAILURE, 0,
                     _("%s: invalid number of seconds"), optarg);
            *sleep_interval = s;