From 533541c47bc98b118c55a2c646188e129abde3b8 Mon Sep 17 00:00:00 2001 From: alfred Date: Sat, 9 Nov 2002 12:55:07 +0000 Subject: Fix instances of macros with improperly parenthasized arguments. Verified by: md5 --- sys/netinet/tcp_syncache.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'sys/netinet/tcp_syncache.c') 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 -- cgit v1.1