summaryrefslogtreecommitdiff
path: root/gpsd.h-tail
diff options
context:
space:
mode:
authorZbigniew Chyla <zbigniew.chyla@nsn.com>2015-02-16 01:30:08 +0100
committerEric S. Raymond <esr@thyrsus.com>2015-02-15 22:04:33 -0500
commit49fe1997713deac3440fbb2c960305762eb500f6 (patch)
treef78e265809be7e52b6f82893e830c76af46700f8 /gpsd.h-tail
parent68eaa6fc71f4d03b8d6fc3361569ba0906ee394d (diff)
downloadgpsd-49fe1997713deac3440fbb2c960305762eb500f6.tar.gz
Remove unused and incorrect retval from timespec_str
All callers ignore value returned by timespec_str. Additionally, the function returns simply the result of snprintf(), which is not necessarily the number of chars written to the buffer (if the buffer provided by the caller was too small).
Diffstat (limited to 'gpsd.h-tail')
-rw-r--r--gpsd.h-tail2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsd.h-tail b/gpsd.h-tail
index 4f6ea32e..99624789 100644
--- a/gpsd.h-tail
+++ b/gpsd.h-tail
@@ -958,7 +958,7 @@ extern void pps_early_init(struct gps_context_t *);
TS_NORM( r ); \
} while (0)
-extern int timespec_str(const struct timespec *, /*@out@*/char *, int);
+extern void timespec_str(const 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 *,