summaryrefslogtreecommitdiff
path: root/gpsmon.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2014-08-27 16:26:52 -0400
committerEric S. Raymond <esr@thyrsus.com>2014-08-27 16:26:52 -0400
commit6203e5b8fcac9d78ea54b7b3c53cb8d084e8a219 (patch)
treed8611d8e44267151c29ab8920702cc94e86063c5 /gpsmon.c
parentb53db1322c70f8b86dfe72e982d6097304a749ae (diff)
downloadgpsd-6203e5b8fcac9d78ea54b7b3c53cb8d084e8a219.tar.gz
Introduce struct errout_t to encapsulate error-reporting hooks.
A major step towards eliminating reverse linkage. All regression tests pass.
Diffstat (limited to 'gpsmon.c')
-rw-r--r--gpsmon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsmon.c b/gpsmon.c
index fe928d82..151f89a6 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -1106,7 +1106,7 @@ int main(int argc, char **argv)
nocurses = true;
break;
case 'D':
- context.debug = atoi(optarg);
+ context.errout.debug = atoi(optarg);
break;
case 'L': /* list known device types */
(void)
@@ -1291,7 +1291,7 @@ int main(int argc, char **argv)
for (;;)
{
fd_set efds;
- switch(gpsd_await_data(&rfds, &efds, maxfd, &all_fds, context.debug))
+ switch(gpsd_await_data(&rfds, &efds, maxfd, &all_fds, context.errout.debug))
{
case AWAIT_GOT_INPUT:
break;