From 3b6bc45c37c9b55330d24c502ad91cd73c2e2f5f Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sun, 9 Aug 2009 23:28:36 +0200 Subject: Fix two implicit cast warnings in pull_client_data(). Michael --- src/reqs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/reqs.c b/src/reqs.c index 1f838b8..d140be8 100644 --- a/src/reqs.c +++ b/src/reqs.c @@ -796,13 +796,14 @@ pull_client_data (struct conn_s *connptr, long int length) char *buffer; ssize_t len; - buffer = safemalloc (min (MAXBUFFSIZE, length)); + buffer = (char *)safemalloc (min (MAXBUFFSIZE, (unsigned long int)length)); if (!buffer) return -1; 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) goto ERROR_EXIT; -- cgit v1.2.3