summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>2006-10-03 04:01:30 +0000
committerjb <jb@FreeBSD.org>2006-10-03 04:01:30 +0000
commit81fff2da0bce4c6caf1e64cbb8cc8774109353c7 (patch)
treeef80638011b3e4b6b3ffed622e1835ac4877e2df
parent46a11df83f185c8912cfb74fd035093a0c59cbb0 (diff)
downloadFreeBSD-src-81fff2da0bce4c6caf1e64cbb8cc8774109353c7.zip
FreeBSD-src-81fff2da0bce4c6caf1e64cbb8cc8774109353c7.tar.gz
Solaris compatibility only: Be specific about the fact that
the inline function takes no arguments.
-rw-r--r--sys/sys/time.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/time.h b/sys/sys/time.h
index 359e472..0350c20 100644
--- a/sys/sys/time.h
+++ b/sys/sys/time.h
@@ -339,7 +339,7 @@ __END_DECLS
typedef longlong_t hrtime_t;
#ifndef _KERNEL
-static __inline hrtime_t gethrtime() {
+static __inline hrtime_t gethrtime(void) {
struct timespec ts;
clock_gettime(CLOCK_UPTIME,&ts);
return (((u_int64_t) ts.tv_sec) * NANOSEC + ts.tv_nsec);
OpenPOWER on IntegriCloud