From f69edaae7bbb22601e8b213a342ebd3ba4df780a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 26 Aug 2014 14:15:52 -0400 Subject: Eliminate reverse linkage of gpsd_write. All regression tests pass. --- gpsmon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gpsmon.c') diff --git a/gpsmon.c b/gpsmon.c index 37d6b1aa..cfcaa8e2 100644 --- a/gpsmon.c +++ b/gpsmon.c @@ -639,7 +639,7 @@ void gpsd_report(const int debuglevel, const int errlevel, const char *fmt, ...) } } -ssize_t gpsd_write(struct gps_device_t *session, +static ssize_t gpsmon_serial_write(struct gps_device_t *session, const char *buf, const size_t len) /* pass low-level data to devices, echoing it to the log window */ @@ -1099,6 +1099,7 @@ int main(int argc, char **argv) (void)putenv("TZ=UTC"); // for ctime() /*@ +observertrans @*/ gps_context_init(&context); // initialize the report mutex + context.serial_write = gpsmon_serial_write; while ((option = getopt(argc, argv, "aD:LVhl:nt:?")) != -1) { switch (option) { case 'a': -- cgit v1.2.1