From 126421febc43c4d937502d290f18ac58e3d794e1 Mon Sep 17 00:00:00 2001 From: Haakan Johansson Date: Sat, 12 Mar 2016 19:16:19 +0100 Subject: [PATCH 3/3] Minor spell and wording. --- timespec.h | 2 +- timespec_str.c | 2 +- 2 filer ändrade, 2 tillägg(+), 2 borttagningar(-) diff --git a/timespec.h b/timespec.h index f7c7d74..ae4c760 100644 --- a/timespec.h +++ b/timespec.h @@ -95,7 +95,7 @@ static inline void TS_NORM( struct timespec *ts) /* convert a timespec to a double. * if tv_sec > 2, then inevitable loss of precision in tv_nsec * so best to NEVER use TSTONS() - * WARNING replacing 1e9 with NS_IN_SEC casues loss of precision */ + * WARNING replacing 1e9 with NS_IN_SEC causes loss of precision */ #define TSTONS(ts) ((double)((ts)->tv_sec + ((ts)->tv_nsec / 1e9))) #define TIMESPEC_LEN 22 /* required length of a timespec buffer */ diff --git a/timespec_str.c b/timespec_str.c index 93d2774..755adb9 100644 --- a/timespec_str.c +++ b/timespec_str.c @@ -33,7 +33,7 @@ * So 12 chars, like this: "-0.123456789" * * Absolute worst case is 10 digits of seconds. - * So 21 digits like this: "-2147483647.123456789" + * So 21 characters like this: "-2147483647.123456789" * */ void timespec_str(const struct timespec *ts, char *buf, size_t buf_size) -- 1.7.10.4