summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>1999-10-29 01:33:54 +0000
committerwtc%netscape.com <devnull@localhost>1999-10-29 01:33:54 +0000
commitba5f2f5b3fc36eb427738013d95f384b93e43155 (patch)
tree2f81ed13e664df764e7542587e0dca44e6eac66f
parentea605b174df46c277af21aa392a658500c391cb6 (diff)
downloadnspr-hg-ba5f2f5b3fc36eb427738013d95f384b93e43155.tar.gz
Bugzilla bug #15858: fixed compiler warnings.
-rw-r--r--pr/src/io/prsocket.c1
-rw-r--r--pr/src/misc/prnetdb.c3
-rw-r--r--pr/src/pthreads/ptio.c3
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;