summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-06 20:38:37 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-06 20:38:37 -0500
commit56e719970de0fcbbc6c086159f31f82b5eb35128 (patch)
treeeec477c566d221cb1823935155231f38036e778c /gpsd.c
parentf1e30c3197910f319cf2d624666be87a0580b82a (diff)
downloadgpsd-56e719970de0fcbbc6c086159f31f82b5eb35128.tar.gz
Code is fully cppcheck, splint, and Coverity clean.
All regression tests pass. PPS is live.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gpsd.c b/gpsd.c
index c1e916ac..f721403d 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -356,6 +356,7 @@ static socket_t passivesock_af(int af, char *service, char *tcp_or_udp, int qlen
INVALIDATE_SOCKET(s);
if ((pse = getservbyname(service, tcp_or_udp)))
port = ntohs((in_port_t) pse->s_port);
+ // cppcheck-suppress unreadVariable
else if ((port = (in_port_t) atoi(service)) == 0) {
gpsd_report(context.debug, LOG_ERROR,
"can't get \"%s\" service entry.\n", service);