summaryrefslogtreecommitdiff
path: root/ntpshmmon.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-03-28 06:32:37 -0400
committerEric S. Raymond <esr@thyrsus.com>2015-03-28 06:32:37 -0400
commit6b2e8ab641522c61fa520ca47b3008dc65a8aabb (patch)
treec3c5c40a50cc39c0744cde2a8c84a0cf0190ad58 /ntpshmmon.c
parent5e24bd130a5456d2f5b3b1c6bb2d7222b9613180 (diff)
downloadgpsd-6b2e8ab641522c61fa520ca47b3008dc65a8aabb.tar.gz
splint cleanup. Fixes for minor but real issues...
...no attempt to address the weird cross-platfprm variability we've seen lately. All regression tests pass.
Diffstat (limited to 'ntpshmmon.c')
-rw-r--r--ntpshmmon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ntpshmmon.c b/ntpshmmon.c
index 756d5a2b..0e545169 100644
--- a/ntpshmmon.c
+++ b/ntpshmmon.c
@@ -137,7 +137,7 @@ int main(int argc, char **argv)
* we're ignoring duplicates via timestamp, polling
* at interval < 1 sec shouldn't be a problem.
*/
- (void)usleep(cycle * 1000);
+ (void)usleep((useconds_t)(cycle * 1000));
} while
(nsamples != 0 && time(NULL) - starttime < timeout);