From df9232c655921ed37083c9509940fdb52b8f70fa Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 12 Feb 2015 16:56:49 -0500 Subject: Replace Gary's magic number 22 with TIMESPEC_LEN. All regression tests pass. --- gpsd.h-tail | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gpsd.h-tail') diff --git a/gpsd.h-tail b/gpsd.h-tail index 5e883aa9..eaca0cb6 100644 --- a/gpsd.h-tail +++ b/gpsd.h-tail @@ -959,6 +959,9 @@ extern void pps_early_init(struct gps_context_t *); TS_NORM( r ); \ } while (0) +extern int timespec_str(struct timespec *, /*@out@*/char *, int); +#define TIMESPEC_LEN 22 /* required length of a timespec buffer */ + extern void pps_thread_stash_fixtime(struct gps_device_t *, timestamp_t, struct timespec); extern void pps_thread_activate(struct gps_device_t *); -- cgit v1.2.1