summaryrefslogtreecommitdiff
path: root/monitor_ubx.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-01-20 05:57:57 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-01-20 05:57:57 -0500
commitc46ae044e399113f040196fc156489e1e2f303f9 (patch)
treeea602052cf4b3c08b5bcd44fe30edd400e8b4a86 /monitor_ubx.c
parent87b26e0bcff5ac6a1764c185f4f7d484f73c3861 (diff)
downloadgpsd-c46ae044e399113f040196fc156489e1e2f303f9.tar.gz
splint cleanup.
Diffstat (limited to 'monitor_ubx.c')
-rw-r--r--monitor_ubx.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/monitor_ubx.c b/monitor_ubx.c
index d7f14172..dc6adbc2 100644
--- a/monitor_ubx.c
+++ b/monitor_ubx.c
@@ -154,15 +154,15 @@ static void display_nav_sol(unsigned char *buf, size_t data_len)
(void)wmove(navsolwin, 7, 7);
/*@ -compdef @*/
{
- int day = tow / 8640000;
- int tod = tow % 8640000;
- int h = tod / 360000;
- int m = tod % 360000;
- int s = m % 6000;
+ unsigned int day = tow / 8640000;
+ unsigned int tod = tow % 8640000;
+ unsigned int h = tod / 360000;
+ unsigned int m = tod % 360000;
+ unsigned int s = m % 6000;
m = (m - s) / 6000;
- (void)wprintw(navsolwin, "%d %02d:%02d:%05.2f", day, h, m, (double)s / 100);
+ (void)wprintw(navsolwin, "%u %02u:%02u:%05.2f", day, h, m, (double)s / 100);
}
/*@ +compdef @*/
(void)wmove(navsolwin, 8, 11);