svn commit: r283648 - head/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Thu May 28 14:24:22 UTC 2015


Author: tuexen
Date: Thu May 28 14:24:21 2015
New Revision: 283648
URL: https://svnweb.freebsd.org/changeset/base/283648

Log:
  Address some compiler warnings. No functional change.
  
  MFC after: 3 days

Modified:
  head/sys/netinet/sctp_indata.c
  head/sys/netinet/sctp_output.c
  head/sys/netinet/sctputil.c

Modified: head/sys/netinet/sctp_indata.c
==============================================================================
--- head/sys/netinet/sctp_indata.c	Thu May 28 13:56:19 2015	(r283647)
+++ head/sys/netinet/sctp_indata.c	Thu May 28 14:24:21 2015	(r283648)
@@ -3462,12 +3462,18 @@ sctp_fs_audit(struct sctp_association *a
 {
 	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);
 

Modified: head/sys/netinet/sctp_output.c
==============================================================================
--- head/sys/netinet/sctp_output.c	Thu May 28 13:56:19 2015	(r283647)
+++ head/sys/netinet/sctp_output.c	Thu May 28 14:24:21 2015	(r283648)
@@ -11996,9 +11996,6 @@ sctp_copy_one(struct sctp_stream_queue_p
     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) {

Modified: head/sys/netinet/sctputil.c
==============================================================================
--- head/sys/netinet/sctputil.c	Thu May 28 13:56:19 2015	(r283647)
+++ head/sys/netinet/sctputil.c	Thu May 28 14:24:21 2015	(r283648)
@@ -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();
 }
 


More information about the svn-src-all mailing list