Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet wrap multiline macro by do {} while (0)
details: https://anonhg.NetBSD.org/src/rev/7fd064946708
branches: trunk
changeset: 547176:7fd064946708
user: itojun <itojun%NetBSD.org@localhost>
date: Wed May 14 16:57:03 2003 +0000
description:
wrap multiline macro by do {} while (0)
diffstat:
sys/netinet/ip_mroute.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (52 lines):
diff -r 80e71fb4f851 -r 7fd064946708 sys/netinet/ip_mroute.c
--- a/sys/netinet/ip_mroute.c Wed May 14 16:52:53 2003 +0000
+++ b/sys/netinet/ip_mroute.c Wed May 14 16:57:03 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_mroute.c,v 1.68 2003/05/14 16:52:53 itojun Exp $ */
+/* $NetBSD: ip_mroute.c,v 1.69 2003/05/14 16:57:03 itojun Exp $ */
/*
* Copyright (c) 1989 Stephen Deering
@@ -54,7 +54,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_mroute.c,v 1.68 2003/05/14 16:52:53 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_mroute.c,v 1.69 2003/05/14 16:57:03 itojun Exp $");
#include "opt_ipsec.h"
@@ -243,7 +243,7 @@
* Type of service parameter to be added in the future!!!
*/
-#define MFCFIND(o, g, rt) { \
+#define MFCFIND(o, g, rt) do { \
struct mfc *_rt; \
(rt) = 0; \
++mrtstat.mrts_mfc_lookups; \
@@ -257,13 +257,13 @@
} \
if ((rt) == 0) \
++mrtstat.mrts_mfc_misses; \
-}
+} while (/*CONSTCOND*/ 0)
/*
* Macros to compute elapsed time efficiently
* Borrowed from Van Jacobson's scheduling code
*/
-#define TV_DELTA(a, b, delta) { \
+#define TV_DELTA(a, b, delta) do { \
int xxs; \
delta = (a).tv_usec - (b).tv_usec; \
xxs = (a).tv_sec - (b).tv_sec; \
@@ -280,7 +280,7 @@
delta += (1000000 * xxs); \
break; \
} \
-}
+} while (/*CONSTCOND*/ 0)
#ifdef UPCALL_TIMING
u_int32_t upcall_data[51];
Home |
Main Index |
Thread Index |
Old Index