mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
Include "c-strtod.h".
(scan_double_arg): Update xstrtod call to include new argument, c_strtod.
This commit is contained in:
1 parent
f2701c5758
commit
355848c4c8
1 file changed
+2
-1
@@ -24,6 +24,7 @@
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "system.h"
|
||||
#include "c-strtod.h"
|
||||
#include "error.h"
|
||||
#include "xstrtol.h"
|
||||
#include "xstrtod.h"
|
||||
@@ -113,7 +114,7 @@ scan_double_arg (const char *arg)
|
||||
{
|
||||
double ret_val;
|
||||
|
||||
if (xstrtod (arg, NULL, &ret_val))
|
||||
if (xstrtod (arg, NULL, &ret_val, c_strtod))
|
||||
{
|
||||
error (0, 0, _("invalid floating point argument: %s"), arg);
|
||||
usage (EXIT_FAILURE);
|
||||
|
||||
Reference in new issue
Block a user