зеркало из https://github.com/mozilla/pjs.git
Bugzilla bug #15858: fixed compiler warnings.
This commit is contained in:
Родитель
893d09589f
Коммит
8375357e00
|
@ -462,7 +462,6 @@ PRIntervalTime timeout)
|
||||||
static PRStatus PR_CALLBACK SocketBind(PRFileDesc *fd, const PRNetAddr *addr)
|
static PRStatus PR_CALLBACK SocketBind(PRFileDesc *fd, const PRNetAddr *addr)
|
||||||
{
|
{
|
||||||
PRInt32 result;
|
PRInt32 result;
|
||||||
int one = 1;
|
|
||||||
|
|
||||||
PR_ASSERT(IsValidNetAddr(addr) == PR_TRUE);
|
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)
|
PR_IMPLEMENT(PRStatus) PR_StringToNetAddr(const char *string, PRNetAddr *addr)
|
||||||
{
|
{
|
||||||
PRIntn rv;
|
|
||||||
PRStatus status = PR_SUCCESS;
|
PRStatus status = PR_SUCCESS;
|
||||||
|
|
||||||
#if defined(_PR_INET6)
|
#if defined(_PR_INET6)
|
||||||
|
PRIntn rv;
|
||||||
|
|
||||||
rv = inet_pton(AF_INET6, string, &addr->ipv6.ip);
|
rv = inet_pton(AF_INET6, string, &addr->ipv6.ip);
|
||||||
if (1 == rv)
|
if (1 == rv)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1301,7 +1301,7 @@ void _PR_InitIO()
|
||||||
PRIntn index;
|
PRIntn index;
|
||||||
char *num_io_queues;
|
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);
|
_pt_tq_count = atoi(num_io_queues);
|
||||||
}
|
}
|
||||||
|
@ -1829,7 +1829,6 @@ failed:
|
||||||
static PRStatus pt_Bind(PRFileDesc *fd, const PRNetAddr *addr)
|
static PRStatus pt_Bind(PRFileDesc *fd, const PRNetAddr *addr)
|
||||||
{
|
{
|
||||||
PRIntn rv;
|
PRIntn rv;
|
||||||
PRInt32 one = 1;
|
|
||||||
pt_SockLen addr_len;
|
pt_SockLen addr_len;
|
||||||
#ifdef _PR_HAVE_SOCKADDR_LEN
|
#ifdef _PR_HAVE_SOCKADDR_LEN
|
||||||
PRNetAddr addrCopy;
|
PRNetAddr addrCopy;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче