ugps: fix 64-bit time_t
authorRosen Penev <rosenp@gmail.com>
Tue, 21 Jul 2020 22:50:37 +0000 (15:50 -0700)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 29 Aug 2020 10:06:15 +0000 (11:06 +0100)
commit511a5b3c84fa715ef0305cf26c98619c12a4867a
treec96ee7d6d71febb020ab8a493ae663791a5f288f
parent0c54380e3d8920100fcfd41f0a1fe9872eb37d0e
ugps: fix 64-bit time_t

The abs function takes a 32-bit int, which can cause truncation. Fixes
compilation error:

error: absolute value function 'abs' given an argu>
if ((sec < 0) || (abs(cur.tv_sec - tv.tv_sec) > MAX_TIME_OFFSET)) {

Signed-off-by: Rosen Penev <rosenp@gmail.com>
nmea.c