summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2006-10-31 16:26:19 +0000
committerEric S. Raymond <esr@thyrsus.com>2006-10-31 16:26:19 +0000
commit7dc2d5fbc101ca87acd367041e7c1420c5762c52 (patch)
treebbb335c77cd76b750614ae931c7d0ed23fe00d14 /gpsd.c
parent297cf421a91438343242fb23e5c6a0956b588267 (diff)
downloadgpsd-7dc2d5fbc101ca87acd367041e7c1420c5762c52.tar.gz
splint cleanup.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsd.c b/gpsd.c
index 9d6720a3..d5b6af78 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -377,7 +377,7 @@ static /*@null@*/ /*@observer@*/ struct subscriber_t* allocate_client(void)
return NULL;
}
-static void detach_client(/*@only@*/ /*@out@*/struct subscriber_t *sub)
+static void detach_client(struct subscriber_t *sub)
{
(void)close(sub->fd);
gpsd_report(4, "detaching %d in detach_client\n", sub_index(sub));
@@ -386,7 +386,7 @@ static void detach_client(/*@only@*/ /*@out@*/struct subscriber_t *sub)
sub->raw = 0;
sub->watcher = false;
sub->active = 0;
- sub->device = NULL;
+ /*@i1@*/sub->device = NULL;
sub->buffer_policy = casoc;
sub->fd = -1;
}