From a7b4401c57dd2b35460685e8762b2d4da0baf4d0 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 16 Dec 2010 18:27:18 -0500 Subject: Abolish gpsd_report.c. No more hardwired logging from the client libraries. Only the daemon now uses this function. --- netlib.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'netlib.c') 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, "", sizeof(ip)); return ip; } } if (r != 0) { - gpsd_report(LOG_INF, "getpeername() = %d, error = %s (%d)\n", r, - strerror(errno), errno); (void)strlcpy(ip, "", sizeof(ip)); } /*@ +branchstate +unrecog -boolint @*/ -- cgit v1.2.1