Fix two implicit cast warnings in pull_client_data().
Michael
This commit is contained in:
parent
bfca4019b7
commit
3b6bc45c37
@ -796,13 +796,14 @@ pull_client_data (struct conn_s *connptr, long int length)
|
|||||||
char *buffer;
|
char *buffer;
|
||||||
ssize_t len;
|
ssize_t len;
|
||||||
|
|
||||||
buffer = safemalloc (min (MAXBUFFSIZE, length));
|
buffer = (char *)safemalloc (min (MAXBUFFSIZE, (unsigned long int)length));
|
||||||
if (!buffer)
|
if (!buffer)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
len = safe_read (connptr->client_fd, buffer, min (MAXBUFFSIZE, length));
|
len = safe_read (connptr->client_fd, buffer,
|
||||||
|
min (MAXBUFFSIZE, (unsigned long int)length));
|
||||||
if (len <= 0)
|
if (len <= 0)
|
||||||
goto ERROR_EXIT;
|
goto ERROR_EXIT;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user