Sync'd with the HEAD branch again. unlabeled-3.21.12
authorcls%seawood.org
Tue, 21 Sep 1999 19:43:31 +0000
branchunlabeled-3.21.12
changeset 822 87eea711bd162be480fb1f0815edfb36efe04c87
parent 781 bfc9bc89a1f36a734fd4910648134c7819f781ff
push idunknown
push userunknown
push dateunknown
Sync'd with the HEAD branch again.
pr/src/pthreads/ptio.c
--- a/pr/src/pthreads/ptio.c
+++ b/pr/src/pthreads/ptio.c
@@ -714,17 +714,16 @@ static void pt_ContinuationThreadInterna
              * This may work out okay. The rule is that only this thread,
              * the continuation thread, can remove elements from the list.
              * Therefore, the list is at worst, longer than when we built
              * the polling list.
              */
 
             for (pollIndex = 0; pollIndex < pollingListUsed; ++pollIndex)
             {
-                PRIntn fd = pollingList[pollIndex].fd;
                 PRInt16 events = pollingList[pollIndex].events;
                 PRInt16 revents = pollingList[pollIndex].revents;
 
                 op = pollingOps[pollIndex];  /* this is the operation */
 
                 /* (ref: Bug #153459)
                 ** In case of POLLERR we let the operation retry in hope
                 ** of getting a more definitive OS error.
@@ -1213,18 +1212,16 @@ static PRBool pt_hpux_transmitfile_cont(
     }
 
     return PR_TRUE;
 }
 #endif  /* HPUX11 */
 
 void _PR_InitIO()
 {
-    PRIntn rv;
-
     pt_tq.ml = PR_NewLock();
     PR_ASSERT(NULL != pt_tq.ml);
 
 #if defined(DEBUG)
     memset(&pt_debug, 0, sizeof(PTDebug));
     pt_debug.timeStarted = PR_Now();
 #endif
 
@@ -2285,17 +2282,16 @@ static PRInt32 pt_AcceptRead(
         /* copy the new info out where caller can see it */
         PRPtrdiff aligned = (PRPtrdiff)buf + amount + sizeof(void*) - 1;
         *raddr = (PRNetAddr*)(aligned & ~(sizeof(void*) - 1));
         memcpy(*raddr, &remote, PR_NETADDR_SIZE(&remote));
         *nd = accepted;
         return rv;
     }
 
-failed:
     PR_Close(accepted);
     return rv;
 }  /* pt_AcceptRead */
 
 static PRStatus pt_GetSockName(PRFileDesc *fd, PRNetAddr *addr)
 {
     PRIntn rv = -1;
     pt_SockLen addr_len = sizeof(PRNetAddr);