diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2008-11-08 12:54:59 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2008-11-08 12:54:59 +0000 |
commit | 8082b519e8eb7d4b72eb0bbea42ac126c4ce8d8c (patch) | |
tree | 1db91e3f2a917fe69d1b56dd56852adb9458e7a0 /sys/netinet/ip6.h | |
parent | 7b3a9f02e74287ece0a22b140146ed8e4ace729d (diff) |
fix macros up so they use the do { } while (/* CONSTCOND */ 0) idiom
ok deraadt@ otto@
Diffstat (limited to 'sys/netinet/ip6.h')
-rw-r--r-- | sys/netinet/ip6.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/netinet/ip6.h b/sys/netinet/ip6.h index a9c09536445..c9d54fc352a 100644 --- a/sys/netinet/ip6.h +++ b/sys/netinet/ip6.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ip6.h,v 1.18 2006/12/09 01:12:28 itojun Exp $ */ +/* $OpenBSD: ip6.h,v 1.19 2008/11/08 12:54:58 dlg Exp $ */ /* $KAME: ip6.h,v 1.45 2003/06/05 04:46:38 keiichi Exp $ */ /* @@ -274,7 +274,7 @@ struct ip6_frag { * IP6_EXTHDR_GET0 does the same, except that it aligns the structure at the * very top of mbuf. GET0 is likely to make memory copy than GET. */ -#define IP6_EXTHDR_GET(val, typ, m, off, len) \ +#define IP6_EXTHDR_GET(val, typ, m, off, len) \ do { \ struct mbuf *t; \ int tmp; \ @@ -291,9 +291,9 @@ do { \ (m) = NULL; \ } \ } \ -} while (0) +} while (/* CONSTCOND */ 0) -#define IP6_EXTHDR_GET0(val, typ, m, off, len) \ +#define IP6_EXTHDR_GET0(val, typ, m, off, len) \ do { \ struct mbuf *t; \ if ((off) == 0 && (m)->m_len >= len) \ @@ -309,6 +309,6 @@ do { \ (m) = NULL; \ } \ } \ -} while (0) +} while (/* CONSTCOND */ 0) #endif /* _KERNEL */ #endif /* _NETINET_IP6_H_ */ |