summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctputil.c
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2015-05-28 14:24:21 +0000
committertuexen <tuexen@FreeBSD.org>2015-05-28 14:24:21 +0000
commitd4fad6a818ac56e5f5bf1e0ef95a8ad458608d74 (patch)
tree2384cb952b408920b75d76d71f324d1c52629498 /sys/netinet/sctputil.c
parent7fad77ce36457a913d6a03f57f062eb3b1f052b8 (diff)
downloadFreeBSD-src-d4fad6a818ac56e5f5bf1e0ef95a8ad458608d74.zip
FreeBSD-src-d4fad6a818ac56e5f5bf1e0ef95a8ad458608d74.tar.gz
Address some compiler warnings. No functional change.
MFC after: 3 days
Diffstat (limited to 'sys/netinet/sctputil.c')
-rw-r--r--sys/netinet/sctputil.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c
index a30a942..f73e14d 100644
--- a/sys/netinet/sctputil.c
+++ b/sys/netinet/sctputil.c
@@ -1449,7 +1449,7 @@ sctp_timeout_handler(void *t)
struct socket *so;
#endif
- int did_output, type;
+ int did_output;
tmr = (struct sctp_timer *)t;
inp = (struct sctp_inpcb *)tmr->ep;
@@ -1488,7 +1488,6 @@ sctp_timeout_handler(void *t)
}
/* if this is an iterator timeout, get the struct and clear inp */
tmr->stopped_from = 0xa003;
- type = tmr->type;
if (inp) {
SCTP_INP_INCR_REF(inp);
if ((inp->sctp_socket == NULL) &&
@@ -1873,7 +1872,7 @@ out_decr:
}
out_no_decr:
SCTPDBG(SCTP_DEBUG_TIMER1, "Timer now complete (type %d)\n",
- type);
+ tmr->type);
CURVNET_RESTORE();
}
OpenPOWER on IntegriCloud