summaryrefslogtreecommitdiff
path: root/gpsctl.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 /gpsctl.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 'gpsctl.c')
-rw-r--r--gpsctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsctl.c b/gpsctl.c
index 1bcab1fa..cf1d0433 100644
--- a/gpsctl.c
+++ b/gpsctl.c
@@ -363,7 +363,7 @@ int main(int argc, char **argv)
if (gps_open(NULL, NULL, &gpsdata) != 0) {
gpsd_report(context.debug, LOG_ERROR,
"no gpsd running or network error: %s.\n",
- netlib_errstr(errno));
+ gps_errstr(errno));
lowlevel = true;
}
}