summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorjlemon <jlemon@FreeBSD.org>2001-12-19 15:57:43 +0000
committerjlemon <jlemon@FreeBSD.org>2001-12-19 15:57:43 +0000
commitba290916ffe5f37275033b2607996798ba2e1a76 (patch)
treee05300747076878b45c9d73930c5ec3c0f2afddd /sys/netinet
parent25850c205df15c03b41cb0166806b261bbc11533 (diff)
downloadFreeBSD-src-ba290916ffe5f37275033b2607996798ba2e1a76.zip
FreeBSD-src-ba290916ffe5f37275033b2607996798ba2e1a76.tar.gz
When storing an int value in a void *, use intptr_t as the cast type
(instead of int) to keep the 64 bit platforms happy.
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/tcp_syncache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c
index b235f2e..d6ce983 100644
--- a/sys/netinet/tcp_syncache.c
+++ b/sys/netinet/tcp_syncache.c
@@ -175,7 +175,7 @@ static MALLOC_DEFINE(M_SYNCACHE, "syncache", "TCP syncache");
if (!callout_active(&tcp_syncache.tt_timerq[slot])) \
callout_reset(&tcp_syncache.tt_timerq[slot], \
TCPTV_RTOBASE * tcp_backoff[slot], \
- syncache_timer, (void *)((int)slot)); \
+ syncache_timer, (void *)((intptr_t)slot)); \
} while (0)
static void
@@ -351,7 +351,7 @@ static void
syncache_timer(xslot)
void *xslot;
{
- int slot = (int)xslot;
+ intptr_t slot = (intptr_t)xslot;
struct syncache *sc, *nsc;
struct inpcb *inp;
int s;
OpenPOWER on IntegriCloud