summaryrefslogtreecommitdiff
path: root/libgps_shm.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-03-13 08:44:04 -0400
committerEric S. Raymond <esr@thyrsus.com>2015-03-13 08:44:04 -0400
commitdf28d9d7f9eabd2373df031fa2939d0b41ee6caa (patch)
tree71ea48f96eeb2d42457764a0e64c0c109c92ffa7 /libgps_shm.c
parentf0a7a853d5eac933f60b562f3b44102296c9e23f (diff)
downloadgpsd-df28d9d7f9eabd2373df031fa2939d0b41ee6caa.tar.gz
splint/cppcheck/coverity prerelease cleanup.
Diffstat (limited to 'libgps_shm.c')
-rw-r--r--libgps_shm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgps_shm.c b/libgps_shm.c
index bc245bea..11ca6514 100644
--- a/libgps_shm.c
+++ b/libgps_shm.c
@@ -78,8 +78,8 @@ bool gps_shm_waiting(const struct gps_data_t *gpsdata, int timeout)
/* timeout is in uSec */
{
volatile struct shmexport_t *shared = (struct shmexport_t *)PRIVATE(gpsdata)->shmseg;
- timestamp_t endtime = timestamp() + (((double)timeout)/1000000);;
volatile bool newdata = false;
+ timestamp_t endtime = timestamp() + (((double)timeout)/1000000);;
/* busy-waiting sucks, but there's not really an alternative */
for (;;) {