mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
Include "c-strtod.h".
(main): Update xstrtod call to include new argument, c_strtod.
This commit is contained in:
1 parent
355848c4c8
commit
6b18b46eae
1 file changed
+2
-1
+2
-1
@@ -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. */
|
||||
|
||||
Reference in new issue
Block a user