diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2014-08-27 20:15:46 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2014-08-27 20:15:46 -0400 |
commit | 7b0feb181260ff4e005547a3ae870ebc545b1e85 (patch) | |
tree | 0879418fa834e099d989c80e5bb388e01d3ddf79 /gpsctl.c | |
parent | d77d96c6d6150ffe24f1d57fd021d18f0c20901b (diff) | |
download | gpsd-7b0feb181260ff4e005547a3ae870ebc545b1e85.tar.gz |
Reverse linkage of gpsd_report() is abolished. All regression tests pass.
Some cleanup and testing is still required.
Diffstat (limited to 'gpsctl.c')
-rw-r--r-- | gpsctl.c | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -36,17 +36,6 @@ static bool hunting = true; */ #define REDIRECT_SNIFF 15 -void gpsd_report(const int debuglevel, const int errlevel, - const char *fmt, ...) -{ - va_list ap; - - va_start(ap, fmt); - gpsd_labeled_report(debuglevel, errlevel, "gpsctl:", fmt, ap); - va_end(ap); - -} - static void settle(struct gps_device_t *session) /* allow the device to settle after a control operation */ { @@ -315,6 +304,8 @@ int main(int argc, char **argv) } } + context.errout.label = "gpsctl"; + if (optind < argc) device = argv[optind]; |