diff options
author | Michael Tatarinov <kukabu@gmail.com> | 2013-11-28 13:51:09 +0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-11-28 05:58:12 -0500 |
commit | e4e83b53e549845aef15d268090620440de9d29a (patch) | |
tree | 61d889727326c19b557f0ee3d49a634041012304 /gpspipe.c | |
parent | a55054c6947583ec6ebf249ab23cea87fccf70ee (diff) | |
download | gpsd-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 @*/ |