diff options
author | ukyg9e5r6k7gubiekd6 <ukyg9e5r6k7gubiekd6@mailinator.com> | 2012-08-07 17:31:56 +1000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2012-09-07 05:32:55 -0400 |
commit | 200eb5a37da191963478a581c730df2676150320 (patch) | |
tree | 08e0e2ec5d92182edce2223e49978bf1072d3f34 /netlib.c | |
parent | 6886edd1858a828b2ffc1d81112edc9d6e766f5d (diff) | |
download | gpsd-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } } |