From: Karel Zak Date: Thu, 6 May 2021 09:56:14 +0000 (+0200) Subject: hwclock: follow timespec and use long int for nsec X-Git-Tag: v2.37-rc2~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f6c11689258a33cf59b04984e8751e71df17e54f;p=thirdparty%2Futil-linux.git hwclock: follow timespec and use long int for nsec Signed-off-by: Karel Zak --- diff --git a/sys-utils/hwclock-parse-date.y b/sys-utils/hwclock-parse-date.y index 954bfdc027..f1740a2aeb 100644 --- a/sys-utils/hwclock-parse-date.y +++ b/sys-utils/hwclock-parse-date.y @@ -160,7 +160,7 @@ typedef struct { intmax_t hour; intmax_t minutes; time_t seconds; - int ns; + long ns; } relative_time; #if HAVE_COMPOUND_LITERALS @@ -270,7 +270,7 @@ static void apply_relative_time(parser_control *pc, relative_time rel, /* Set PC-> hour, minutes, seconds and nanoseconds members from arguments. */ static void set_hhmmss(parser_control *pc, intmax_t hour, intmax_t minutes, - time_t sec, int nsec) + time_t sec, long nsec) { pc->hour = hour; pc->minutes = minutes; @@ -1076,7 +1076,7 @@ static int yylex (union YYSTYPE *lvalp, parser_control *pc) } if ((c == '.' || c == ',') && c_isdigit (p[1])) { time_t s; - int ns; + long ns; int digits; uintmax_t value1;