diff options
author | tuexen <tuexen@FreeBSD.org> | 2015-05-31 12:42:34 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2015-05-31 12:42:34 +0000 |
commit | b583c15e81181d18b48e746c6d40b097b8527259 (patch) | |
tree | 4948be546f661e51d8f791ec700696a0e4f6b5f5 | |
parent | 6d659fd65b557fd29a25107b928212a27732f1db (diff) | |
download | FreeBSD-src-b583c15e81181d18b48e746c6d40b097b8527259.zip FreeBSD-src-b583c15e81181d18b48e746c6d40b097b8527259.tar.gz |
MFC r283648:
Address some compiler warnings. No functional change.
-rw-r--r-- | sys/netinet/sctp_indata.c | 12 | ||||
-rw-r--r-- | sys/netinet/sctp_output.c | 3 | ||||
-rw-r--r-- | sys/netinet/sctputil.c | 5 |
3 files changed, 11 insertions, 9 deletions
diff --git a/sys/netinet/sctp_indata.c b/sys/netinet/sctp_indata.c index d3b4855..f477e0c 100644 --- a/sys/netinet/sctp_indata.c +++ b/sys/netinet/sctp_indata.c @@ -3462,12 +3462,18 @@ sctp_fs_audit(struct sctp_association *asoc) { struct sctp_tmit_chunk *chk; int inflight = 0, resend = 0, inbetween = 0, acked = 0, above = 0; - int entry_flight, entry_cnt, ret; + int ret; +#ifndef INVARIANTS + int entry_flight, entry_cnt; + +#endif + + ret = 0; +#ifndef INVARIANTS entry_flight = asoc->total_flight; entry_cnt = asoc->total_flight_count; - ret = 0; - +#endif if (asoc->pr_sctp_cnt >= asoc->sent_queue_cnt) return (0); diff --git a/sys/netinet/sctp_output.c b/sys/netinet/sctp_output.c index 251d1ff..f887a46 100644 --- a/sys/netinet/sctp_output.c +++ b/sys/netinet/sctp_output.c @@ -12012,9 +12012,6 @@ sctp_copy_one(struct sctp_stream_queue_pending *sp, struct uio *uio, int resv_upfront) { - int left; - - left = sp->length; sp->data = m_uiotombuf(uio, M_WAITOK, sp->length, resv_upfront, 0); if (sp->data == NULL) { 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(); } |