From c2bd0b680667c7ec4956552f75d9ff7d040ac941 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 23 Mar 2021 13:50:02 +0100 Subject: timeout,top,watch,ping: parse NN.N fractional duration in locales with other separators Signed-off-by: Denys Vlasenko --- networking/brctl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'networking/brctl.c') diff --git a/networking/brctl.c b/networking/brctl.c index e1f3e64..c83aac6 100644 --- a/networking/brctl.c +++ b/networking/brctl.c @@ -89,6 +89,7 @@ static unsigned str_to_jiffies(const char *time_str) { double dd; char *endptr; +//TODO: needs setlocale(LC_NUMERIC, "C")? dd = /*bb_*/strtod(time_str, &endptr); if (endptr == time_str || dd < 0) bb_error_msg_and_die(bb_msg_invalid_arg_to, time_str, "timespec"); -- cgit v1.1