Patch from D. V. Henkel-Wallace <gumby@zembu.com> to make macro nest properly in conditionals

This commit is contained in:
Joel Sherrill
1999-01-04 16:28:49 +00:00
parent 73441b6fef
commit 60a2d6899d
4 changed files with 20 additions and 12 deletions

View File

@@ -253,10 +253,12 @@ struct route_cb {
#ifdef KERNEL
#define RTFREE(rt) \
do { \
if ((rt)->rt_refcnt <= 1) \
rtfree(rt); \
else \
(rt)->rt_refcnt--;
(rt)->rt_refcnt--; \
} while (0)
extern struct route_cb route_cb;
extern struct rtstat rtstat;

View File

@@ -253,10 +253,12 @@ struct route_cb {
#ifdef KERNEL
#define RTFREE(rt) \
do { \
if ((rt)->rt_refcnt <= 1) \
rtfree(rt); \
else \
(rt)->rt_refcnt--;
(rt)->rt_refcnt--; \
} while (0)
extern struct route_cb route_cb;
extern struct rtstat rtstat;

View File

@@ -253,10 +253,12 @@ struct route_cb {
#ifdef KERNEL
#define RTFREE(rt) \
do { \
if ((rt)->rt_refcnt <= 1) \
rtfree(rt); \
else \
(rt)->rt_refcnt--;
(rt)->rt_refcnt--; \
} while (0)
extern struct route_cb route_cb;
extern struct rtstat rtstat;

View File

@@ -253,10 +253,12 @@ struct route_cb {
#ifdef KERNEL
#define RTFREE(rt) \
do { \
if ((rt)->rt_refcnt <= 1) \
rtfree(rt); \
else \
(rt)->rt_refcnt--;
(rt)->rt_refcnt--; \
} while (0)
extern struct route_cb route_cb;
extern struct rtstat rtstat;