summaryrefslogtreecommitdiff
path: root/gpsctl.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2014-08-27 20:15:46 -0400
committerEric S. Raymond <esr@thyrsus.com>2014-08-27 20:15:46 -0400
commit7b0feb181260ff4e005547a3ae870ebc545b1e85 (patch)
tree0879418fa834e099d989c80e5bb388e01d3ddf79 /gpsctl.c
parentd77d96c6d6150ffe24f1d57fd021d18f0c20901b (diff)
downloadgpsd-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.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/gpsctl.c b/gpsctl.c
index a8edf599..08ad274e 100644
--- a/gpsctl.c
+++ b/gpsctl.c
@@ -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];