Use unsigned int for some data lengths

This commit is contained in:
matt335672 2023-01-03 11:06:42 +00:00
parent 3183f54088
commit 1fbcdffff1
2 changed files with 4 additions and 4 deletions

View File

@ -1408,7 +1408,7 @@ g_sck_last_error_would_block(int sck)
/*****************************************************************************/
int
g_sck_recv(int sck, void *ptr, int len, int flags)
g_sck_recv(int sck, void *ptr, unsigned int len, int flags)
{
#if defined(_WIN32)
return recv(sck, (char *)ptr, len, flags);
@ -1419,7 +1419,7 @@ g_sck_recv(int sck, void *ptr, int len, int flags)
/*****************************************************************************/
int
g_sck_send(int sck, const void *ptr, int len, int flags)
g_sck_send(int sck, const void *ptr, unsigned int len, int flags)
{
#if defined(_WIN32)
return send(sck, (const char *)ptr, len, flags);

View File

@ -86,8 +86,8 @@ int g_sck_vsock_bind_address(int sck, const char *port, const char *address
int g_tcp_bind_address(int sck, const char *port, const char *address);
int g_sck_listen(int sck);
int g_sck_accept(int sck);
int g_sck_recv(int sck, void *ptr, int len, int flags);
int g_sck_send(int sck, const void *ptr, int len, int flags);
int g_sck_recv(int sck, void *ptr, unsigned int len, int flags);
int g_sck_send(int sck, const void *ptr, unsigned int len, int flags);
int g_sck_last_error_would_block(int sck);
int g_sck_socket_ok(int sck);
int g_sck_can_send(int sck, int millis);