diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2014-08-27 16:26:52 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2014-08-27 16:26:52 -0400 |
commit | 6203e5b8fcac9d78ea54b7b3c53cb8d084e8a219 (patch) | |
tree | d8611d8e44267151c29ab8920702cc94e86063c5 /gpsmon.c | |
parent | b53db1322c70f8b86dfe72e982d6097304a749ae (diff) | |
download | gpsd-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |