File tiobench-warn.diff of Package tiobench

--- tiobench-0.3.3/tiotest.c.orig	2001-03-05 03:34:00.000000000 +0100
+++ tiobench-0.3.3/tiotest.c	2009-07-14 22:43:56.428644000 +0200
@@ -41,7 +41,7 @@ static void * aligned_alloc(ssize_t size
 	return a;
 }
 
-static int aligned_free(caddr_t a, ssize_t size)
+static int aligned_free(void *a, ssize_t size)
 {
 	return munmap(a, size);
 }
@@ -883,9 +883,9 @@ void report_random_write_error(toff_t of
 	char buf[1024];
 	sprintf(buf, 
 #ifdef LARGEFILES
-		"Error in randomwrite, off=%Ld, read=%d, seeks=%ld : ", 
+		"Error in randomwrite, off=%Ld, read=%zd, seeks=%ld : ", 
 #else
-		"Error in randomwrite, off=%ld, read=%d, seeks=%ld : ",
+		"Error in randomwrite, off=%ld, read=%zd, seeks=%ld : ",
 #endif
 		offset, bytesWritten, wr );
 		    
@@ -897,9 +897,9 @@ void report_read_error(toff_t offset, ss
 	char buf[1024];
 	sprintf(buf, 
 #ifdef LARGEFILES
-		"Error in seek/read, off=%Ld, read=%d, seeks=%ld : ", 
+		"Error in seek/read, off=%Ld, read=%zd, seeks=%ld : ", 
 #else
-		"Error in seek/read, off=%ld, read=%d, seeks=%ld : ",
+		"Error in seek/read, off=%ld, read=%zd, seeks=%ld : ",
 #endif
 		offset, bytesRead, rd );
 		    
@@ -909,7 +909,7 @@ void report_read_error(toff_t offset, ss
 void* do_write_test( ThreadData *d )
 {
 	int     fd;
-	char    *buf = d->buffer;
+	unsigned char    *buf = d->buffer;
 	toff_t  blocks=(d->fileSizeInMBytes*MBYTE)/d->blockSize;
 	toff_t  i;
 	int     openFlags;
@@ -1015,7 +1015,7 @@ void* do_write_test( ThreadData *d )
 void* do_random_write_test( ThreadData *d )
 {
 	int      i;
-	char     *buf = d->buffer;
+	unsigned char     *buf = d->buffer;
 	toff_t   blocks=(d->fileSizeInMBytes*MBYTE/d->blockSize);
 	int      fd;
 	toff_t   offset;
@@ -1108,7 +1108,7 @@ void* do_random_write_test( ThreadData *
 
 void* do_read_test( ThreadData *d )
 {
-	char    *buf = d->buffer;
+	unsigned char    *buf = d->buffer;
 	int     fd;
 	toff_t  blocks=(d->fileSizeInMBytes*MBYTE)/d->blockSize;
 	toff_t  i;
@@ -1215,7 +1215,7 @@ void* do_read_test( ThreadData *d )
 void* do_random_read_test( ThreadData *d )
 {
 	int      i;
-	char     *buf = d->buffer;
+	unsigned char     *buf = d->buffer;
 	toff_t   blocks=(d->fileSizeInMBytes*MBYTE/d->blockSize);
 	int      fd;
 	toff_t   offset;