diff options
author | Michael Adam <obnox@samba.org> | 2009-08-09 23:28:36 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-08-09 23:28:36 +0200 |
commit | 3b6bc45c37c9b55330d24c502ad91cd73c2e2f5f (patch) | |
tree | 5fc2abc6b4783d155adff93a7afc9bb4e25cf972 | |
parent | bfca4019b7bd0b849d9dabc0ae2c8e94c048b05b (diff) | |
download | tinyproxy-3b6bc45c37c9b55330d24c502ad91cd73c2e2f5f.tar.gz tinyproxy-3b6bc45c37c9b55330d24c502ad91cd73c2e2f5f.zip |
Fix two implicit cast warnings in pull_client_data().
Michael
-rw-r--r-- | src/reqs.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |