diff options
author | hrs <hrs@FreeBSD.org> | 2013-08-06 15:49:18 +0000 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2013-08-06 15:49:18 +0000 |
commit | cd60e1fa27e6b6272254aba34a77694d9954788c (patch) | |
tree | 86e24e162a05264672a148b8903871fbdf2876e2 /usr.sbin/rtsold/rtsold.c | |
parent | 95f847fd26e800a0e0c7d818836a003eea5981cd (diff) | |
download | FreeBSD-src-cd60e1fa27e6b6272254aba34a77694d9954788c.zip FreeBSD-src-cd60e1fa27e6b6272254aba34a77694d9954788c.tar.gz |
Fix build on arm and mips.
Diffstat (limited to 'usr.sbin/rtsold/rtsold.c')
-rw-r--r-- | usr.sbin/rtsold/rtsold.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/rtsold/rtsold.c b/usr.sbin/rtsold/rtsold.c index 2826c2c..e62e9ff 100644 --- a/usr.sbin/rtsold/rtsold.c +++ b/usr.sbin/rtsold/rtsold.c @@ -188,10 +188,8 @@ main(int argc, char **argv) } /* Generate maximum time in timespec. */ - memset(&tm_max.tv_sec, 0xff, sizeof(tm_max.tv_sec)); - memset(&tm_max.tv_nsec, 0xff, sizeof(tm_max.tv_nsec)); - tm_max.tv_sec &= ~(1UL << (sizeof(tm_max.tv_sec) * 8 - 1)); - tm_max.tv_nsec &= ~(1UL << (sizeof(tm_max.tv_nsec) * 8 - 1)); + tm_max.tv_sec = (-1) & ~((time_t)1 << ((sizeof(tm_max.tv_sec) * 8) - 1)); + tm_max.tv_nsec = (-1) & ~((long)1 << ((sizeof(tm_max.tv_nsec) * 8) - 1)); /* set log level */ if (dflag > 1) |