From: Marc Dionne Date: Sat, 11 Sep 2010 18:57:17 +0000 (-0400) Subject: rx: Set but not used variables X-Git-Tag: openafs-devel-1_5_78~148 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=db86d1a9767213b0cf64e366f1086c71656fc55f;p=packages%2Fo%2Fopenafs.git rx: Set but not used variables Remove some unused variables in the rx code. These generate warnings with gcc 4.6. Change-Id: I1e19c82cd05bcd47a65d77079019f1f0b6704826 Reviewed-on: http://gerrit.openafs.org/2732 Reviewed-by: Jeffrey Altman Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear (cherry picked from commit a8cf472fd1723fa0e5f4edc34e470443c941f017) Reviewed-on: http://gerrit.openafs.org/2794 --- diff --git a/src/rx/rx.c b/src/rx/rx.c index 344d4c69c..5fe02865b 100644 --- a/src/rx/rx.c +++ b/src/rx/rx.c @@ -2026,7 +2026,6 @@ afs_int32 rx_EndCall(struct rx_call *call, afs_int32 rc) { struct rx_connection *conn = call->conn; - struct rx_service *service; afs_int32 error; SPLVAR; @@ -2058,7 +2057,6 @@ rx_EndCall(struct rx_call *call, afs_int32 rc) if (call->mode == RX_MODE_SENDING) { rxi_FlushWrite(call); } - service = conn->service; rxi_calltrace(RX_CALL_END, call); /* Call goes to hold state until reply packets are acknowledged */ if (call->tfirst + call->nSoftAcked < call->tnext) { @@ -3825,7 +3823,6 @@ rxi_ReceiveAckPacket(struct rx_call *call, struct rx_packet *np, int acked; int nNacked = 0; int newAckCount = 0; - u_short maxMTU = 0; /* Set if peer supports AFS 3.4a jumbo datagrams */ int maxDgramPackets = 0; /* Set if peer supports AFS 3.5 jumbo datagrams */ int pktsize = 0; /* Set if we need to update the peer mtu */ @@ -4136,7 +4133,6 @@ rxi_ReceiveAckPacket(struct rx_call *call, struct rx_packet *np, * network MTU confused with the loopback MTU. Calculate the * maximum MTU here for use in the slow start code below. */ - maxMTU = peer->maxMTU; /* Did peer restart with older RX version? */ if (peer->maxDgramPackets > 1) { peer->maxDgramPackets = 1; @@ -7085,7 +7081,7 @@ MakeDebugCall(osi_socket socket, afs_uint32 remoteAddr, afs_uint16 remotePort, void *outputData, size_t outputLength) { static afs_int32 counter = 100; - time_t waitTime, waitCount, startTime; + time_t waitTime, waitCount; struct rx_header theader; char tbuffer[1500]; afs_int32 code; @@ -7099,7 +7095,6 @@ MakeDebugCall(osi_socket socket, afs_uint32 remoteAddr, afs_uint16 remotePort, fd_set imask; char *tp; - startTime = time(0); waitTime = 1; waitCount = 5; LOCK_RX_DEBUG; diff --git a/src/rx/rx_rdwr.c b/src/rx/rx_rdwr.c index 7da4ca67c..b1ca6198e 100644 --- a/src/rx/rx_rdwr.c +++ b/src/rx/rx_rdwr.c @@ -580,12 +580,6 @@ int rxi_ReadvProc(struct rx_call *call, struct iovec *iov, int *nio, int maxio, int nbytes) { - int requestCount; - int nextio; - - requestCount = nbytes; - nextio = 0; - /* Free any packets from the last call to ReadvProc/WritevProc */ if (queue_IsNotEmpty(&call->iovq)) { #ifdef RXDEBUG_PACKET