summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-03-08 08:06:43 -0400
committerEric S. Raymond <esr@thyrsus.com>2015-03-08 08:06:43 -0400
commitffa6d0965c626b0fa8e3b9eeaaeff9a5f3ac5bfa (patch)
treeae954e1d10595850e66cc7cf1e1ebf4946d811bf
parent3a5c2574f625c82972d5cb078e32ce2a0ae4c027 (diff)
downloadgpsd-ffa6d0965c626b0fa8e3b9eeaaeff9a5f3ac5bfa.tar.gz
Clean up minor ppsthread.c dependencies. No code changes.
-rw-r--r--ppsthread.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ppsthread.c b/ppsthread.c
index 0953b710..ac39c67a 100644
--- a/ppsthread.c
+++ b/ppsthread.c
@@ -46,6 +46,8 @@
*/
#include <string.h>
+#include <stdio.h>
+#include <limits.h>
#include <errno.h>
#include <pthread.h>
#include <math.h>
@@ -95,7 +97,7 @@ static int init_kernel_pps(volatile struct pps_thread_t *pps_thread)
glob_t globbuf;
size_t i; /* to match type of globbuf.gl_pathc */
char pps_num = '\0'; /* /dev/pps[pps_num] is our device */
- char path[GPS_PATH_MAX] = "";
+ char path[PATH_MAX] = "";
#endif
pps_thread->kernelpps_handle = -1;
@@ -253,7 +255,7 @@ static /*@null@*/ void *gpsd_ppsmonitor(void *arg)
char ts_str1[TIMESPEC_LEN], ts_str2[TIMESPEC_LEN];
volatile struct pps_thread_t *thread_context = (struct pps_thread_t *)arg;
double last_fixtime_real = 0;
- /* the system clock ime, to the nSec, when the last fix received */
+ /* the system clock time, to the nSec, when the last fix received */
/* using a double would cause loss of precision */
struct timespec last_fixtime_clock = {0, 0};
struct timespec clock_ts = {0, 0};