diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-02-12 16:56:49 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-02-12 18:24:39 -0500 |
commit | df9232c655921ed37083c9509940fdb52b8f70fa (patch) | |
tree | 4d20a940ef2b991d1b68304241607e8ca137425d /gpsd.h-tail | |
parent | cb75e02a7f2b1854f956e7fa0565dfc31c791dc9 (diff) | |
download | gpsd-df9232c655921ed37083c9509940fdb52b8f70fa.tar.gz |
Replace Gary's magic number 22 with TIMESPEC_LEN.
All regression tests pass.
Diffstat (limited to 'gpsd.h-tail')
-rw-r--r-- | gpsd.h-tail | 3 |
1 files changed, 3 insertions, 0 deletions
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 *); |