summaryrefslogtreecommitdiffstats
path: root/lib/qtime.h
diff options
context:
space:
mode:
authorChris Hall <chris.hall@highwayman.com>2011-03-21 01:16:05 +0000
committerChris Hall <chris.hall@highwayman.com>2011-03-21 01:16:05 +0000
commit9470cb2c32eab220f796b1438b787528272cbe84 (patch)
treeb9b2cc12446173436d2bc7a32e82cc3378ec721e /lib/qtime.h
parent5cae7eea451f2b7d65b5892e2c1dafc70f8b836e (diff)
downloadquagga-9470cb2c32eab220f796b1438b787528272cbe84.tar.bz2
quagga-9470cb2c32eab220f796b1438b787528272cbe84.tar.xz
Upgrade of "pipework" -- including piping to/from shell commandsex11p
Version 0.99.15ex11p A major overhaul.
Diffstat (limited to 'lib/qtime.h')
-rw-r--r--lib/qtime.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/qtime.h b/lib/qtime.h
index 94d468a8..38d717c0 100644
--- a/lib/qtime.h
+++ b/lib/qtime.h
@@ -52,10 +52,10 @@ typedef qtime_t qtime_mono_t ; /* qtime_t value, monotonic time-base */
typedef qtime_t qtime_tod_t ; /* qtime_t value, timeofday time-base... */
/* ...just in case != CLOCK_REALTIME ! */
-/* A qtime_t second 123456789 -- nano-seconds */
-#define QTIME_SECOND 1000000000
-#define TIMESPEC_SECOND 1000000000
-#define TIMEVAL_SECOND 1000000
+/* A qtime_t second 123456789 -- nano-seconds */
+#define QTIME_SECOND ((qtime_t)1000000000)
+#define TIMESPEC_SECOND 1000000000
+#define TIMEVAL_SECOND 1000000
/* Macro to convert time in seconds to a qtime_t */
/* Note that the time to convert may be a float. */