summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-02-15 22:25:18 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-02-15 22:25:18 -0500
commit7e15f0cbf72a5710195e0d717d528c1ae9ed585e (patch)
tree66f802f4538c64cfea44974aa19f554f3ea2027a
parent0487c5f101a21e0f5247f31bedd07b10c4fcf389 (diff)
downloadgpsd-7e15f0cbf72a5710195e0d717d528c1ae9ed585e.tar.gz
Shut up, splint! All regressiion tests pass.
-rw-r--r--ntpshm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ntpshm.c b/ntpshm.c
index 25155b7a..f8328eff 100644
--- a/ntpshm.c
+++ b/ntpshm.c
@@ -183,8 +183,8 @@ static /*@null@*/ volatile struct shmTime *ntpshm_alloc(struct gps_context_t *co
int i;
for (i = 0; i < NTPSHMSEGS; i++)
- if (context->shmTime[i] != NULL && !context->shmTime[i]->dummy[0] != 0) {
- context->shmTime[i]->dummy[0] = (char)true;
+ if (context->shmTime[i] != NULL && context->shmTime[i]->dummy[0] == (int)false) {
+ context->shmTime[i]->dummy[0] = (int)true;
/*
* In case this segment gets sent to ntpd before an
@@ -214,7 +214,7 @@ static bool ntpshm_free(struct gps_context_t * context, volatile struct shmTime
for (i = 0; i < NTPSHMSEGS; i++)
if (s == context->shmTime[i]) {
- context->shmTime[i]->dummy[0] = (char)false;
+ context->shmTime[i]->dummy[0] = (int)false;
return true;
}