summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-03-28 18:53:11 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-03-28 18:53:11 -0400
commitc651976d406e14ee43b48357c86b7b78d6e94821 (patch)
tree308816b29c9992ff89938013a6226bf9deb49c4f /gpsd.c
parent2807b4d18ae2a229c45e54f8423015c1ef8c371d (diff)
downloadgpsd-c651976d406e14ee43b48357c86b7b78d6e94821.tar.gz
Scan-build and splint cleanup. All regression tests pass.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gpsd.c b/gpsd.c
index 887a92f7..67c64e4e 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -698,7 +698,7 @@ static void handle_control(int sfd, char *buf)
/*@ -sefparams @*/
if (buf[0] == '-') {
- snarfline(buf + 1, &stash);
+ (void)snarfline(buf + 1, &stash);
gpsd_report(LOG_INF, "<= control(%d): removing %s\n", sfd, stash);
if ((devp = find_device(stash))) {
deactivate_device(devp);
@@ -707,7 +707,7 @@ static void handle_control(int sfd, char *buf)
} else
ignore_return(write(sfd, "ERROR\n", 6));
} else if (buf[0] == '+') {
- snarfline(buf + 1, &stash);
+ (void)snarfline(buf + 1, &stash);
if (find_device(stash)) {
gpsd_report(LOG_INF, "<= control(%d): %s already active \n", sfd,
stash);
@@ -720,7 +720,7 @@ static void handle_control(int sfd, char *buf)
ignore_return(write(sfd, "ERROR\n", 6));
}
} else if (buf[0] == '!') {
- snarfline(buf + 1, &stash);
+ (void)snarfline(buf + 1, &stash);
eq = strchr(stash, '=');
if (eq == NULL) {
gpsd_report(LOG_WARN, "<= control(%d): ill-formed command \n",
@@ -751,7 +751,7 @@ static void handle_control(int sfd, char *buf)
}
}
} else if (buf[0] == '&') {
- snarfline(buf + 1, &stash);
+ (void)snarfline(buf + 1, &stash);
eq = strchr(stash, '=');
if (eq == NULL) {
gpsd_report(LOG_WARN, "<= control(%d): ill-formed command\n",