Bugzilla bug #15858: fixed compiler warnings.

This commit is contained in:
wtc%netscape.com 1999-10-29 01:33:54 +00:00
Родитель 893d09589f
Коммит 8375357e00
3 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -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);

Просмотреть файл

@ -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)
{

Просмотреть файл

@ -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;