summaryrefslogtreecommitdiff
path: root/netlib.c
diff options
context:
space:
mode:
authorukyg9e5r6k7gubiekd6 <ukyg9e5r6k7gubiekd6@mailinator.com>2012-08-07 17:31:56 +1000
committerEric S. Raymond <esr@thyrsus.com>2012-09-07 05:32:55 -0400
commit200eb5a37da191963478a581c730df2676150320 (patch)
tree08e0e2ec5d92182edce2223e49978bf1072d3f34 /netlib.c
parent6886edd1858a828b2ffc1d81112edc9d6e766f5d (diff)
downloadgpsd-200eb5a37da191963478a581c730df2676150320.tar.gz
Use strerror() rather than a generic error message.
Not thread-safe, but at least it has a chance of being useful in problem diagnosis. Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
Diffstat (limited to 'netlib.c')
-rw-r--r--netlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/netlib.c b/netlib.c
index 3c3aa66d..5673686e 100644
--- a/netlib.c
+++ b/netlib.c
@@ -143,7 +143,7 @@ const char /*@observer@*/ *netlib_errstr(const int err)
case NL_NOCONNECT:
return "can't connect to host/port pair";
default:
- return "unknown error";
+ return strerror(errno);
}
}