diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-12-16 18:27:18 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-12-16 18:27:18 -0500 |
commit | a7b4401c57dd2b35460685e8762b2d4da0baf4d0 (patch) | |
tree | ce38ee893b3281e790bacef91b06c2b087c752d5 /netlib.c | |
parent | 4a8ba33a11077c241c60cf888f1c5ddb6bbb5b4b (diff) | |
download | gpsd-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.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 @*/ |