summaryrefslogtreecommitdiff
path: root/gpspipe.c
diff options
context:
space:
mode:
authorMichael Tatarinov <kukabu@gmail.com>2013-11-28 13:51:09 +0400
committerEric S. Raymond <esr@thyrsus.com>2013-11-28 05:58:12 -0500
commite4e83b53e549845aef15d268090620440de9d29a (patch)
tree61d889727326c19b557f0ee3d49a634041012304 /gpspipe.c
parenta55054c6947583ec6ebf249ab23cea87fccf70ee (diff)
downloadgpsd-e4e83b53e549845aef15d268090620440de9d29a.tar.gz
Use the gps_errstr() to handle gps_open() errors.
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
Diffstat (limited to 'gpspipe.c')
-rw-r--r--gpspipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpspipe.c b/gpspipe.c
index 2c4b8e98..73a0d001 100644
--- a/gpspipe.c
+++ b/gpspipe.c
@@ -283,7 +283,7 @@ int main(int argc, char **argv)
if (gps_open(source.server, source.port, &gpsdata) != 0) {
(void)fprintf(stderr,
"gpspipe: could not connect to gpsd %s:%s, %s(%d)\n",
- source.server, source.port, strerror(errno), errno);
+ source.server, source.port, gps_errstr(errno), errno);
exit(EXIT_FAILURE);
}
/*@ +nullpass +onlytrans @*/