diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-02-22 01:23:34 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-02-22 01:23:34 +0000 |
commit | 8b617ad77948342faf0917e268e4d001047fec35 (patch) | |
tree | dd116cd81cb2f451314a8140d49159b494396619 /sys/net/route.h | |
parent | d14a3197eff39aeb2d1cf2c146a4a56ae0087f59 (diff) |
Changes made for GCC 2.8 -Wall pleasures
Diffstat (limited to 'sys/net/route.h')
-rw-r--r-- | sys/net/route.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/net/route.h b/sys/net/route.h index 19fb96c1199..fa0b3edfd97 100644 --- a/sys/net/route.h +++ b/sys/net/route.h @@ -1,4 +1,4 @@ -/* $OpenBSD: route.h,v 1.2 1996/03/03 21:07:20 niklas Exp $ */ +/* $OpenBSD: route.h,v 1.3 1998/02/22 01:23:29 niklas Exp $ */ /* $NetBSD: route.h,v 1.9 1996/02/13 22:00:49 christos Exp $ */ /* @@ -228,11 +228,12 @@ struct route_cb { }; #ifdef _KERNEL -#define RTFREE(rt) \ +#define RTFREE(rt) do { \ if ((rt)->rt_refcnt <= 1) \ rtfree(rt); \ else \ - (rt)->rt_refcnt--; + (rt)->rt_refcnt--; \ +} while (0) struct route_cb route_cb; struct rtstat rtstat; |