summaryrefslogtreecommitdiff
path: root/cvs_files.c
diff options
context:
space:
mode:
authorStefan Siegl <stesie@brokenpipe.de>2006-06-09 20:33:08 +0000
committerStefan Siegl <stesie@brokenpipe.de>2006-06-09 20:33:08 +0000
commitc5f1b57ec0871d6a9edf3fc8d3215b1173c6ed2e (patch)
tree53639e22da03edf38b88db6d7a57d9ac50e68033 /cvs_files.c
parent4a9852d9c1400c1dc4ed1bf37de3996d518f8f3e (diff)
eliminated compiler warnings, based on patch by "Aanjhan R" <aanjhan@gmail.com>
Diffstat (limited to 'cvs_files.c')
-rw-r--r--cvs_files.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cvs_files.c b/cvs_files.c
index 8cb579b55..0ec167fd0 100644
--- a/cvs_files.c
+++ b/cvs_files.c
@@ -93,10 +93,10 @@ cvs_files_cvsattr_to_mode_t(const char *ptr)
*/
#ifdef HAVE_LIBZ
static int
-cvs_files_gzip_check_header(char **data, int *len)
+cvs_files_gzip_check_header(char **data, uInt *len)
{
static const char gzip_magic[2] = {0x1f, 0x8b};
- int pos = 10;
+ uInt pos = 10;
int method;
int flags;
@@ -173,7 +173,7 @@ cvs_files_gzip_inflate(FILE *recv, size_t bytes, char **content, size_t *len)
int got_header = 0;
/* initialize zlib decompression */
- z.next_in = input;
+ z.next_in = ((Bytef *)input);
z.avail_in = 0;
z.next_out = NULL;
z.zalloc = Z_NULL;
@@ -276,7 +276,7 @@ cvs_files_gzip_inflate(FILE *recv, size_t bytes, char **content, size_t *len)
/* discard inflated bits from the input buffer ... */
memmove(input, z.next_in, sizeof(input) - ((char *)z.next_in - input));
- z.next_in = input;
+ z.next_in = ((Bytef *)input);
}
if(bytes)