summaryrefslogtreecommitdiff
path: root/gpspacket.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-09-29 01:42:45 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-09-29 01:46:53 -0400
commit4361ec2d89bdf451602d659ddfd0fb9a79c178a2 (patch)
treeaf067d1d7614a9e67f449eec933ba3347cde10b0 /gpspacket.c
parenta77b95b57475c2856707e91b197f8aaa8e5eb407 (diff)
downloadgpsd-4361ec2d89bdf451602d659ddfd0fb9a79c178a2.tar.gz
Change gpsd_report to no longer use a global. All regression tests pass.
This is a large, ugly change. But without it we can't troubleshoot the ICP/IP-source initialization bug properly - colliding definitions of gpsd_report() were interfering with error reporting early in gpsd runs. More cleanup work remains to be done, but at least this is working.
Diffstat (limited to 'gpspacket.c')
-rw-r--r--gpspacket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpspacket.c b/gpspacket.c
index 172b41c3..ca46f87f 100644
--- a/gpspacket.c
+++ b/gpspacket.c
@@ -14,7 +14,7 @@ static PyObject *ErrorObject = NULL;
static PyObject *report_callback = NULL;
-void gpsd_report(int errlevel, const char *fmt, ... )
+void gpsd_report(int unused UNUSED, int errlevel, const char *fmt, ... )
{
char buf[BUFSIZ];
PyObject *args;