Use of proper test gets rid of a signed/unsigned warning.
This commit is contained in:
parent
8f7ac8b5cd
commit
793e1179ac
|
@ -193,7 +193,7 @@ DWORD WINAPI WsControl(DWORD protocoll,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get a socket so that we can use ioctl */
|
/* Get a socket so that we can use ioctl */
|
||||||
if ( (sock = socket (AF_INET, SOCK_DGRAM, 0)) < 0)
|
if ( (sock = socket (AF_INET, SOCK_DGRAM, 0)) == INVALID_SOCKET)
|
||||||
{
|
{
|
||||||
ERR ("Error creating socket!\n");
|
ERR ("Error creating socket!\n");
|
||||||
return (-1);
|
return (-1);
|
||||||
|
@ -359,7 +359,7 @@ DWORD WINAPI WsControl(DWORD protocoll,
|
||||||
|
|
||||||
|
|
||||||
/* Get a socket so we can use ioctl */
|
/* Get a socket so we can use ioctl */
|
||||||
if ( (sock = socket (AF_INET, SOCK_DGRAM, 0)) < 0)
|
if ( (sock = socket (AF_INET, SOCK_DGRAM, 0)) == INVALID_SOCKET)
|
||||||
{
|
{
|
||||||
ERR ("Error creating socket!\n");
|
ERR ("Error creating socket!\n");
|
||||||
return (-1);
|
return (-1);
|
||||||
|
|
Loading…
Reference in New Issue