summaryrefslogtreecommitdiff
path: root/netlib.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-12-16 18:27:18 -0500
committerEric S. Raymond <esr@thyrsus.com>2010-12-16 18:27:18 -0500
commita7b4401c57dd2b35460685e8762b2d4da0baf4d0 (patch)
treece38ee893b3281e790bacef91b06c2b087c752d5 /netlib.c
parent4a8ba33a11077c241c60cf888f1c5ddb6bbb5b4b (diff)
downloadgpsd-a7b4401c57dd2b35460685e8762b2d4da0baf4d0.tar.gz
Abolish gpsd_report.c. No more hardwired logging from the client libraries.
Only the daemon now uses this function.
Diffstat (limited to 'netlib.c')
-rw-r--r--netlib.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/netlib.c b/netlib.c
index d30856d2..75321456 100644
--- a/netlib.c
+++ b/netlib.c
@@ -147,6 +147,7 @@ char /*@observer@*/ *netlib_errstr(const int err)
}
char *netlib_sock2ip(int fd)
+/* retrieve the IP address corresponding to a socket */
{
sockaddr_t fsin;
socklen_t alen = (socklen_t) sizeof(fsin);
@@ -168,15 +169,11 @@ char *netlib_sock2ip(int fd)
break;
#endif
default:
- gpsd_report(LOG_ERROR, "Unhandled address family %d in %s\n",
- fsin.sa.sa_family, __FUNCTION__);
(void)strlcpy(ip, "<unknown AF>", sizeof(ip));
return ip;
}
}
if (r != 0) {
- gpsd_report(LOG_INF, "getpeername() = %d, error = %s (%d)\n", r,
- strerror(errno), errno);
(void)strlcpy(ip, "<unknown>", sizeof(ip));
}
/*@ +branchstate +unrecog -boolint @*/