diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-04-16 22:10:49 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-04-16 22:10:49 +0000 |
commit | 6d4f4635648719e346e3ecf59677c3728f2344f9 (patch) | |
tree | 9f4d6aa4435a2a12a466d71c402b8cb8bc8bd8f7 /sbin | |
parent | fa8a8866355b1e3fab0ed16067432f62d1596f7c (diff) |
mark time_t edges with comments
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ping6/ping6.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c index e52a21e21b8..4cfb83d9e63 100644 --- a/sbin/ping6/ping6.c +++ b/sbin/ping6/ping6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ping6.c,v 1.82 2012/12/04 02:24:47 deraadt Exp $ */ +/* $OpenBSD: ping6.c,v 1.83 2013/04/16 22:10:48 deraadt Exp $ */ /* $KAME: ping6.c,v 1.163 2002/10/25 02:19:06 itojun Exp $ */ /* @@ -390,7 +390,7 @@ main(int argc, char *argv[]) errx(1, "%s: only root may use interval < 1s", strerror(EPERM)); } - interval.tv_sec = (long)intval; + interval.tv_sec = (time_t)intval; interval.tv_usec = (long)((intval - interval.tv_sec) * 1000000); if (interval.tv_sec < 0) @@ -1131,7 +1131,7 @@ pinger(void) struct tv32 tv32; (void)gettimeofday(&tv, NULL); - tv32.tv32_sec = htonl(tv.tv_sec); + tv32.tv32_sec = htonl(tv.tv_sec); /* XXX 2038 */ tv32.tv32_usec = htonl(tv.tv_usec); bcopy(&tv32, &outpack[ICMP6ECHOLEN], sizeof(tv32)); } |