summaryrefslogtreecommitdiff
path: root/netlib.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-12-16 17:57:46 -0500
committerEric S. Raymond <esr@thyrsus.com>2010-12-16 17:57:46 -0500
commit4a8ba33a11077c241c60cf888f1c5ddb6bbb5b4b (patch)
tree0a3ee4eb9604930556a29c4f5a46b75daab994f7 /netlib.c
parentfd203176f17c88b334008ce752009213f1c127e3 (diff)
downloadgpsd-4a8ba33a11077c241c60cf888f1c5ddb6bbb5b4b.tar.gz
Refactor to turf all uses of gpsd_report() out of netlib.c
A recent bug report makes it clear that all such uses have to be removed from the client libraries. Otherwise a GUI client might dummp log messages uselessly in the X session error log. This is a start.
Diffstat (limited to 'netlib.c')
-rw-r--r--netlib.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/netlib.c b/netlib.c
index df1f2646..d30856d2 100644
--- a/netlib.c
+++ b/netlib.c
@@ -94,7 +94,6 @@ socket_t netlib_connectsock(int af, const char *host, const char *service,
}
if (s > 0) {
- gpsd_report(LOG_SPIN, "close(%d) in netlib_connectsock()\n", s);
(void)close(s);
}
}
@@ -121,8 +120,6 @@ socket_t netlib_connectsock(int af, const char *host, const char *service,
/* set socket to noblocking */
(void)fcntl(s, F_SETFL, fcntl(s, F_GETFL) | O_NONBLOCK);
- gpsd_report(LOG_SPIN, "netlib_connectsock() returns socket on fd %d\n",
- s);
return s;
/*@ +type +mustfreefresh @*/
}