summaryrefslogtreecommitdiff
path: root/dgpsip.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2006-11-02 05:15:20 +0000
committerEric S. Raymond <esr@thyrsus.com>2006-11-02 05:15:20 +0000
commitbb39fd5e0d42af6d926b9547dcf33f00145c42dd (patch)
tree70efef5926d3812cf321e7f65e79b48c2d65f952 /dgpsip.c
parent51cce15a3b63a3802a2301fb41bdfc25d8a77228 (diff)
downloadgpsd-bb39fd5e0d42af6d926b9547dcf33f00145c42dd.tar.gz
Sigh...avoid harmless but *annoying* name collision...
between our LOG_ERR and the syslog() macro by changing ours to LOG_ERROR.
Diffstat (limited to 'dgpsip.c')
-rw-r--r--dgpsip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dgpsip.c b/dgpsip.c
index 6837f722..6383a548 100644
--- a/dgpsip.c
+++ b/dgpsip.c
@@ -38,7 +38,7 @@ int dgpsip_open(struct gps_context_t *context, const char *dgpsserver)
(void)write(context->dsock, buf, strlen(buf));
context->dgnss_service = dgnss_dgpsip;
} else
- gpsd_report(LOG_ERR, "can't connect to DGPS server %s, netlib error %d.\n", dgpsserver, context->dsock);
+ gpsd_report(LOG_ERROR, "can't connect to DGPS server %s, netlib error %d.\n", dgpsserver, context->dsock);
opts = fcntl(context->dsock, F_GETFL);
if (opts >= 0)
@@ -92,7 +92,7 @@ void dgpsip_autoconnect(struct gps_context_t *context,
FILE *sfp = fopen(serverlist, "r");
if (sfp == NULL) {
- gpsd_report(LOG_ERR, "no DGPS server list found.\n");
+ gpsd_report(LOG_ERROR, "no DGPS server list found.\n");
context->dsock = -2; /* don't try this again */
return;
}
@@ -125,7 +125,7 @@ void dgpsip_autoconnect(struct gps_context_t *context,
(void)fclose(sfp);
if (keep[0].server[0] == '\0') {
- gpsd_report(LOG_ERR, "no DGPS servers within %dm.\n", (int)(DGPS_THRESHOLD/1000));
+ gpsd_report(LOG_ERROR, "no DGPS servers within %dm.\n", (int)(DGPS_THRESHOLD/1000));
context->dsock = -2; /* don't try this again */
return;
}