Commits

Anonymous committed 0ee19dc

Avoid signedness warnings in sha1_file.c

Very irritating. But "snprintf()" wants "char *", and zlib wants
"unsigned char *".

Comments (0)

Files changed (1)

 	ssize_t size;
 	unsigned long objsize;
 	int posn = 0;
-	char *buf = map_sha1_file_internal(sha1, &objsize);
+	void *buf = map_sha1_file_internal(sha1, &objsize);
 	z_stream stream;
 	if (!buf) {
 		unsigned char *unpacked;
 		stream.avail_out = size;
 		
 		/* First header.. */
-		stream.next_in = hdr;
+		stream.next_in = (void *)hdr;
 		stream.avail_in = hdrlen;
 		while (deflate(&stream, 0) == Z_OK)
 			/* nothing */;