diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-02-15 22:25:18 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-02-15 22:25:18 -0500 |
commit | 7e15f0cbf72a5710195e0d717d528c1ae9ed585e (patch) | |
tree | 66f802f4538c64cfea44974aa19f554f3ea2027a /ntpshm.c | |
parent | 0487c5f101a21e0f5247f31bedd07b10c4fcf389 (diff) | |
download | gpsd-7e15f0cbf72a5710195e0d717d528c1ae9ed585e.tar.gz |
Shut up, splint! All regressiion tests pass.
Diffstat (limited to 'ntpshm.c')
-rw-r--r-- | ntpshm.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |