diff options
-rw-r--r-- | driver_proto.c | 2 | ||||
-rw-r--r-- | gpsdctl.c | 2 | ||||
-rw-r--r-- | ntpshm.c | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/driver_proto.c b/driver_proto.c index f12e2dbc..ab6abe85 100644 --- a/driver_proto.c +++ b/driver_proto.c @@ -285,7 +285,7 @@ gps_mask_t _proto__dispatch(struct gps_device_t *session, unsigned char *buf, si type = GET_MESSAGE_TYPE(); /* we may need to dump the raw packet */ - gpsd_report(LOG_RAW, "raw _proto_ packet type 0x%02x\n", type)); + gpsd_report(LOG_RAW, "raw _proto_ packet type 0x%02x\n", type); /* * The tag field is only 8 bytes; be careful you do not overflow. @@ -14,7 +14,9 @@ #include <stdbool.h> #include <stdlib.h> #include <stdio.h> +#ifndef S_SPLINT_S #include <sys/socket.h> +#endif /* S_SPLINT_S */ #include "gpsd.h" @@ -555,7 +555,7 @@ static /*@null@*/ void *gpsd_ppsmonitor(void *arg) } sample; /* chrony must be started first as chrony insists on creating the socket */ /* open the chrony socket */ - int chronyfd; + int chronyfd = -1; char chrony_path[PATH_MAX]; gpsd_report(LOG_PROG, "PPS Create Thread gpsd_ppsmonitor\n"); |