summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-10-17 15:09:01 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-10-17 15:09:41 -0400
commitfe8e58b8ce7c2e61c29c678e7dc335a5eed2f3d3 (patch)
tree8b9487451186ccd189512263c4126838e4b93d72 /libgpsd_core.c
parentafa2d2158b595296aaf5f0a0dc29850d0ae910ae (diff)
downloadgpsd-fe8e58b8ce7c2e61c29c678e7dc335a5eed2f3d3.tar.gz
Egg-on-my-face build and compiler warning fixes.
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r--libgpsd_core.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c
index 83c4ee29..381ef24f 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -18,6 +18,7 @@
#include <string.h>
#include <stdarg.h>
#include <fcntl.h>
+#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <syslog.h>
@@ -163,7 +164,6 @@ static void gpsd_run_device_hook(const int debuglevel,
int gpsd_switch_driver(struct gps_device_t *session, char *type_name)
{
- extern const struct gps_type_t nmea;
/*@-mustfreeonly@*/
const struct gps_type_t **dp;
bool first_sync = (session->device_type != NULL);
@@ -1476,7 +1476,7 @@ int gpsd_multipoll(const bool data_ready,
break;
/* conditional prevents mask dumper from eating CPU */
- if (device->context->debug >= LOG_DATA)
+ if (device->context->debug >= LOG_DATA) {
if (device->packet.type == BAD_PACKET)
gpsd_report(device->context->debug, LOG_DATA,
"packet with bad checksum from %s\n",
@@ -1487,6 +1487,7 @@ int gpsd_multipoll(const bool data_ready,
device->packet.type,
device->gpsdata.dev.path,
gps_maskdump(device->gpsdata.set));
+ }
/* handle data contained in this packet */