diff options
author | alfred <alfred@FreeBSD.org> | 2002-11-09 12:55:07 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-11-09 12:55:07 +0000 |
commit | 533541c47bc98b118c55a2c646188e129abde3b8 (patch) | |
tree | 00d1b1f343ceacaa4c61b263e81e4f79e7449948 /sys/netinet/tcp_syncache.c | |
parent | 75770c482cd1308590f40a83da5eccefb24a2d44 (diff) | |
download | FreeBSD-src-533541c47bc98b118c55a2c646188e129abde3b8.zip FreeBSD-src-533541c47bc98b118c55a2c646188e129abde3b8.tar.gz |
Fix instances of macros with improperly parenthasized arguments.
Verified by: md5
Diffstat (limited to 'sys/netinet/tcp_syncache.c')
-rw-r--r-- | sys/netinet/tcp_syncache.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c index 8426a63..772713c 100644 --- a/sys/netinet/tcp_syncache.c +++ b/sys/netinet/tcp_syncache.c @@ -179,14 +179,14 @@ static MALLOC_DEFINE(M_SYNCACHE, "syncache", "TCP syncache"); #define ENDPTS6_EQ(a, b) (memcmp(a, b, sizeof(*a)) == 0) -#define SYNCACHE_TIMEOUT(sc, slot) do { \ - sc->sc_rxtslot = slot; \ - sc->sc_rxttime = ticks + TCPTV_RTOBASE * tcp_backoff[slot]; \ - TAILQ_INSERT_TAIL(&tcp_syncache.timerq[slot], sc, sc_timerq); \ - if (!callout_active(&tcp_syncache.tt_timerq[slot])) \ - callout_reset(&tcp_syncache.tt_timerq[slot], \ - TCPTV_RTOBASE * tcp_backoff[slot], \ - syncache_timer, (void *)((intptr_t)slot)); \ +#define SYNCACHE_TIMEOUT(sc, slot) do { \ + sc->sc_rxtslot = (slot); \ + sc->sc_rxttime = ticks + TCPTV_RTOBASE * tcp_backoff[(slot)]; \ + TAILQ_INSERT_TAIL(&tcp_syncache.timerq[(slot)], sc, sc_timerq); \ + if (!callout_active(&tcp_syncache.tt_timerq[(slot)])) \ + callout_reset(&tcp_syncache.tt_timerq[(slot)], \ + TCPTV_RTOBASE * tcp_backoff[(slot)], \ + syncache_timer, (void *)((intptr_t)(slot))); \ } while (0) static void |