diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-03-28 18:53:11 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-03-28 18:53:11 -0400 |
commit | c651976d406e14ee43b48357c86b7b78d6e94821 (patch) | |
tree | 308816b29c9992ff89938013a6226bf9deb49c4f /gpsd.c | |
parent | 2807b4d18ae2a229c45e54f8423015c1ef8c371d (diff) | |
download | gpsd-c651976d406e14ee43b48357c86b7b78d6e94821.tar.gz |
Scan-build and splint cleanup. All regression tests pass.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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", |