diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2001-11-05 07:50:38 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2001-11-05 07:50:38 +0000 |
commit | 20cbb69c13dd5fbd01567f8b6a34ee8d528fe4e1 (patch) | |
tree | d2140ddf599186ad445cd97420a377f41f60789e /sbin | |
parent | fff24efa2b4c5fe45e0885a1a7bd23a7d101474e (diff) |
one mistake in ping6_timeval conversion. use int32_t instead of int
when we want a variable with specific size.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ping6/ping6.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c index ebe00f4fd2a..4ce684f8c0a 100644 --- a/sbin/ping6/ping6.c +++ b/sbin/ping6/ping6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ping6.c,v 1.36 2001/11/01 14:18:49 deraadt Exp $ */ +/* $OpenBSD: ping6.c,v 1.37 2001/11/05 07:50:37 itojun Exp $ */ /* $KAME: ping6.c,v 1.129 2001/06/22 13:16:02 itojun Exp $ */ /* @@ -250,8 +250,8 @@ volatile sig_atomic_t seeninfo; #endif struct ping6_timeval { - int tv_sec; - int tv_usec; + int32_t tv_sec; + int32_t tv_usec; }; int main __P((int, char *[])); @@ -2562,7 +2562,7 @@ fill(bp, patp) /* xxx */ if (ii > 0) for (kk = 0; - kk <= MAXDATALEN - (8 + sizeof(struct timeval) + ii); + kk <= MAXDATALEN - (8 + sizeof(struct ping6_timeval) + ii); kk += ii) for (jj = 0; jj < ii; ++jj) bp[jj + kk] = pat[jj]; |