diff options
author | wtc%netscape.com <devnull@localhost> | 1999-10-29 01:33:54 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 1999-10-29 01:33:54 +0000 |
commit | ba5f2f5b3fc36eb427738013d95f384b93e43155 (patch) | |
tree | 2f81ed13e664df764e7542587e0dca44e6eac66f | |
parent | ea605b174df46c277af21aa392a658500c391cb6 (diff) | |
download | nspr-hg-ba5f2f5b3fc36eb427738013d95f384b93e43155.tar.gz |
Bugzilla bug #15858: fixed compiler warnings.
-rw-r--r-- | pr/src/io/prsocket.c | 1 | ||||
-rw-r--r-- | pr/src/misc/prnetdb.c | 3 | ||||
-rw-r--r-- | pr/src/pthreads/ptio.c | 3 |
3 files changed, 3 insertions, 4 deletions
diff --git a/pr/src/io/prsocket.c b/pr/src/io/prsocket.c index f0fdeb9e..14b3e961 100644 --- a/pr/src/io/prsocket.c +++ b/pr/src/io/prsocket.c @@ -462,7 +462,6 @@ PRIntervalTime timeout) static PRStatus PR_CALLBACK SocketBind(PRFileDesc *fd, const PRNetAddr *addr) { PRInt32 result; - int one = 1; PR_ASSERT(IsValidNetAddr(addr) == PR_TRUE); diff --git a/pr/src/misc/prnetdb.c b/pr/src/misc/prnetdb.c index f55c47da..22f9f4f3 100644 --- a/pr/src/misc/prnetdb.c +++ b/pr/src/misc/prnetdb.c @@ -988,10 +988,11 @@ PR_IMPLEMENT(PRStatus) PR_DestroyNetAddr(PRNetAddr *addr) PR_IMPLEMENT(PRStatus) PR_StringToNetAddr(const char *string, PRNetAddr *addr) { - PRIntn rv; PRStatus status = PR_SUCCESS; #if defined(_PR_INET6) + PRIntn rv; + rv = inet_pton(AF_INET6, string, &addr->ipv6.ip); if (1 == rv) { diff --git a/pr/src/pthreads/ptio.c b/pr/src/pthreads/ptio.c index a91b397e..f0aee649 100644 --- a/pr/src/pthreads/ptio.c +++ b/pr/src/pthreads/ptio.c @@ -1301,7 +1301,7 @@ void _PR_InitIO() PRIntn index; char *num_io_queues; - if (num_io_queues = getenv("NSPR_NUM_IO_QUEUES")) + if (NULL != (num_io_queues = getenv("NSPR_NUM_IO_QUEUES"))) { _pt_tq_count = atoi(num_io_queues); } @@ -1829,7 +1829,6 @@ failed: static PRStatus pt_Bind(PRFileDesc *fd, const PRNetAddr *addr) { PRIntn rv; - PRInt32 one = 1; pt_SockLen addr_len; #ifdef _PR_HAVE_SOCKADDR_LEN PRNetAddr addrCopy; |