diff options
author | shin <shin@FreeBSD.org> | 2000-03-03 11:13:12 +0000 |
---|---|---|
committer | shin <shin@FreeBSD.org> | 2000-03-03 11:13:12 +0000 |
commit | 73d476cc6479c6344b1bd61ca4519254b46d544c (patch) | |
tree | d561c1b7b5d50f03f48de22a70eff74d82d43c59 /sbin/ping/ping.c | |
parent | 91b0fd96fd89837d8fb4bcf2d16d5dca2213c1a4 (diff) | |
download | FreeBSD-src-73d476cc6479c6344b1bd61ca4519254b46d544c.zip FreeBSD-src-73d476cc6479c6344b1bd61ca4519254b46d544c.tar.gz |
CMSG_XXX macros alignment fixes to follow RFC2292.
Approved by: jkh
Submitted by: Partly from tech@openbsd
Reviewed by: itojun
Diffstat (limited to 'sbin/ping/ping.c')
-rw-r--r-- | sbin/ping/ping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c index b08acaf..9c42f93 100644 --- a/sbin/ping/ping.c +++ b/sbin/ping/ping.c @@ -213,7 +213,7 @@ main(argc, argv) struct iovec iov; struct msghdr msg; struct sockaddr_in from; - char ctrl[sizeof(struct cmsghdr) + sizeof(struct timeval)]; + char ctrl[CMSG_SPACE(sizeof(struct timeval))]; #ifdef IPSEC_POLICY_IPSEC char *policy_in = NULL; char *policy_out = NULL; |