4f0d43
diff -up cdrkit-1.1.8/wodim/wodim.c.werror cdrkit-1.1.8/wodim/wodim.c
4f0d43
--- cdrkit-1.1.8/wodim/wodim.c.werror	2008-05-27 15:34:03.000000000 +0200
4f0d43
+++ cdrkit-1.1.8/wodim/wodim.c	2008-05-27 15:36:22.000000000 +0200
4f0d43
@@ -4089,7 +4089,7 @@ audioread(SCSI *usalp, cdr_t *dp, int fl
4f0d43
 
4f0d43
 	read_scsi(usalp, buf, 1000, 1);
4f0d43
 	printf("XXX:\n");
4f0d43
-	write(1, buf, 512); /* FIXME: handle return value */
4f0d43
+	do{int ret;ret=write(1, buf, 512);}while(0); /* FIXME: handle return value */
4f0d43
 	unload_media(usalp, dp, flags);
4f0d43
 	comexit(0);
4f0d43
 #endif
4f0d43
diff -up cdrkit-1.1.8/wodim/isosize.c.werror cdrkit-1.1.8/wodim/isosize.c
4f0d43
--- cdrkit-1.1.8/wodim/isosize.c.werror	2008-05-27 15:41:36.000000000 +0200
4f0d43
+++ cdrkit-1.1.8/wodim/isosize.c	2008-05-27 15:42:12.000000000 +0200
4f0d43
@@ -69,7 +69,7 @@ isosize(int f)
4f0d43
 	vp = (struct iso9660_pr_voldesc *) &vd;
4f0d43
 
4f0d43
 	do {
4f0d43
-		read(f, &vd, sizeof (vd)); /* FIXME: check return value */
4f0d43
+		do{int ret;ret=read(f, &vd, sizeof (vd));}while(0); /* FIXME: check return value */
4f0d43
 		if (GET_UBYTE(vd.vd_type) == VD_PRIMARY)
4f0d43
 			break;
4f0d43
 
4f0d43
diff -up cdrkit-1.1.8/icedax/toc.c.werror cdrkit-1.1.8/icedax/toc.c
4f0d43
--- cdrkit-1.1.8/icedax/toc.c.werror	2008-05-27 15:34:03.000000000 +0200
4f0d43
+++ cdrkit-1.1.8/icedax/toc.c	2008-05-27 15:41:11.000000000 +0200
4f0d43
@@ -1071,7 +1071,7 @@ static int handle_userchoice(char *p, un
4f0d43
 	/* get user response. */
4f0d43
 	do {
4f0d43
 		fprintf(stderr, "please choose one (0-%u): ", nr);
4f0d43
-		scanf("%u", &user_choice); /* FIXME: check return value */
4f0d43
+		do{int ret;ret=scanf("%u", &user_choice);}while(0); /* FIXME: check return value */
4f0d43
 	} while (user_choice > nr);
4f0d43
 
4f0d43
 	if (user_choice == nr)
4f0d43
diff -up cdrkit-1.1.8/genisoimage/diag/dump.c.werror cdrkit-1.1.8/genisoimage/diag/dump.c
4f0d43
--- cdrkit-1.1.8/genisoimage/diag/dump.c.werror	2008-05-27 15:34:03.000000000 +0200
4f0d43
+++ cdrkit-1.1.8/genisoimage/diag/dump.c	2008-05-27 15:34:03.000000000 +0200
4f0d43
@@ -368,7 +368,7 @@ main(int argc, char *argv[])
4f0d43
 	do {
4f0d43
 		if (file_addr < (off_t)0) file_addr = (off_t)0;
4f0d43
 		showblock(1);
4f0d43
-		read(STDIN_FILENO, &c, 1); /* FIXME: check return value */
4f0d43
+		do{int ret;ret=read(STDIN_FILENO, &c, 1);}while(0); /* FIXME: check return value */
4f0d43
 		if (c == 'a')
4f0d43
 			file_addr -= PAGE;
4f0d43
 		if (c == 'b')
4f0d43
@@ -378,11 +378,11 @@ main(int argc, char *argv[])
4f0d43
 			printf("Enter new starting block (in hex):");
4f0d43
 			if (sizeof (file_addr) > sizeof (long)) {
4f0d43
 				Llong	ll;
4f0d43
-				scanf("%llx", &ll); /* FIXME: check return value */
4f0d43
+				do{int ret;ret=scanf("%llx", &ll);}while(0); /* FIXME: check return value */
4f0d43
 				file_addr = (off_t)ll;
4f0d43
 			} else {
4f0d43
 				long	l;
4f0d43
-				scanf("%lx", &l); /* FIXME: check return value */
4f0d43
+				do{int ret;ret=scanf("%lx", &l);}while(0); /* FIXME: check return value */
4f0d43
 				file_addr = (off_t)l;
4f0d43
 			}
4f0d43
 			file_addr = file_addr << 11;
4f0d43
@@ -392,7 +392,7 @@ main(int argc, char *argv[])
4f0d43
 		if (c == 'f') {
4f0d43
 			crsr2(20, 1);
4f0d43
 			printf("Enter new search string:");
4f0d43
-			fgets((char *)search, sizeof (search), stdin); /* FIXME: check return value */
4f0d43
+			do{char *ret;ret=fgets((char *)search, sizeof (search), stdin);}while(0); /* FIXME: check return value */
4f0d43
 			while (search[strlen((char *)search)-1] == '\n')
4f0d43
 				search[strlen((char *)search)-1] = 0;
4f0d43
 			crsr2(20, 1);
4f0d43
diff -up cdrkit-1.1.8/genisoimage/diag/isoinfo.c.werror cdrkit-1.1.8/genisoimage/diag/isoinfo.c
4f0d43
--- cdrkit-1.1.8/genisoimage/diag/isoinfo.c.werror	2008-05-27 15:34:03.000000000 +0200
4f0d43
+++ cdrkit-1.1.8/genisoimage/diag/isoinfo.c	2008-05-27 15:34:03.000000000 +0200
4f0d43
@@ -651,7 +651,7 @@ extract_file(struct iso_directory_record
4f0d43
 #endif
4f0d43
 		len -= tlen;
4f0d43
 		extent++;
4f0d43
-		write(STDOUT_FILENO, buff, tlen); /* FIXME: check return value */
4f0d43
+		do{int ret;ret=write(STDOUT_FILENO, buff, tlen);}while(0); /* FIXME: check return value */
4f0d43
 	}
4f0d43
 }
4f0d43
 
4f0d43
diff -up cdrkit-1.1.8/genisoimage/diag/isodump.c.werror cdrkit-1.1.8/genisoimage/diag/isodump.c
4f0d43
--- cdrkit-1.1.8/genisoimage/diag/isodump.c.werror	2008-05-27 15:34:03.000000000 +0200
4f0d43
+++ cdrkit-1.1.8/genisoimage/diag/isodump.c	2008-05-27 15:34:03.000000000 +0200
4f0d43
@@ -655,7 +655,7 @@ main(int argc, char *argv[])
4f0d43
 		if (file_addr < 0)
4f0d43
 			file_addr = (off_t)0;
4f0d43
 		showblock(1);
4f0d43
-		read(STDIN_FILENO, &c, 1); /* FIXME: check return value */
4f0d43
+		do{int ret;ret=read(STDIN_FILENO, &c, 1);}while(0); /* FIXME: check return value */
4f0d43
 		if (c == 'a')
4f0d43
 			file_addr -= blocksize;
4f0d43
 		if (c == 'b')
4f0d43
@@ -665,11 +665,11 @@ main(int argc, char *argv[])
4f0d43
 			printf("Enter new starting block (in hex):");
4f0d43
 			if (sizeof (file_addr) > sizeof (long)) {
4f0d43
 				Llong	ll;
4f0d43
-				scanf("%llx", &ll); /* FIXME: check return value */
4f0d43
+				do{int ret;ret=scanf("%llx", &ll);}while(0); /* FIXME: check return value */
4f0d43
 				file_addr = (off_t)ll;
4f0d43
 			} else {
4f0d43
 				long	l;
4f0d43
-				scanf("%lx", &l); /* FIXME: check return value */
4f0d43
+				do{int ret;ret=scanf("%lx", &l);}while(0); /* FIXME: check return value */
4f0d43
 				file_addr = (off_t)l;
4f0d43
 			}
4f0d43
 			file_addr = file_addr * blocksize;
4f0d43
@@ -679,7 +679,7 @@ main(int argc, char *argv[])
4f0d43
 		if (c == 'f') {
4f0d43
 			crsr2(20, 1);
4f0d43
 			printf("Enter new search string:");
4f0d43
-			fgets((char *)search, sizeof (search), stdin); /* FIXME: check return value */
4f0d43
+			do{char *ret;ret=fgets((char *)search, sizeof (search), stdin);}while(0); /* FIXME: check return value */
4f0d43
 			while (search[strlen((char *)search)-1] == '\n')
4f0d43
 				search[strlen((char *)search)-1] = 0;
4f0d43
 			crsr2(20, 1);
4f0d43
diff -up cdrkit-1.1.8/genisoimage/diag/isovfy.c.werror cdrkit-1.1.8/genisoimage/diag/isovfy.c
4f0d43
--- cdrkit-1.1.8/genisoimage/diag/isovfy.c.werror	2008-05-27 15:34:03.000000000 +0200
4f0d43
+++ cdrkit-1.1.8/genisoimage/diag/isovfy.c	2008-05-27 15:34:03.000000000 +0200
4f0d43
@@ -591,11 +591,11 @@ check_path_tables(int typel_extent, int 
4f0d43
 	readsecs(typel_extent * blocksize / 2048, typel, ISO_BLOCKS(path_table_size));
4f0d43
 #else
4f0d43
 	lseek(fileno(infile), (off_t)((off_t)typel_extent) * blocksize, SEEK_SET);
4f0d43
-	read(fileno(infile), typel, path_table_size); /* FIXME: check return value */
4f0d43
+	do{int ret;ret=read(fileno(infile), typel, path_table_size);}while(0); /* FIXME: check return value */
4f0d43
 #endif
4f0d43
 	typem = (char *) malloc(path_table_size);
4f0d43
 	lseek(fileno(infile), (off_t)((off_t)typem_extent) * blocksize, SEEK_SET);
4f0d43
-	read(fileno(infile), typem, path_table_size); /* FIXME: check return value */
4f0d43
+	do{int ret;ret=read(fileno(infile), typem, path_table_size);}while(0); /* FIXME: check return value */
4f0d43
 
4f0d43
 	j = path_table_size;
4f0d43
 	pnt = typel;
4f0d43
diff -up cdrkit-1.1.8/genisoimage/jte.c.werror cdrkit-1.1.8/genisoimage/jte.c
4f0d43
--- cdrkit-1.1.8/genisoimage/jte.c.werror	2008-05-27 15:34:03.000000000 +0200
4f0d43
+++ cdrkit-1.1.8/genisoimage/jte.c	2008-05-27 15:34:03.000000000 +0200
4f0d43
@@ -36,6 +36,8 @@
4f0d43
 #include "vms.h"
4f0d43
 #endif
4f0d43
 
4f0d43
+#include "md5.h"
4f0d43
+
4f0d43
 /* Different types used in building our state list below */
4f0d43
 #define JTET_FILE_MATCH 1
4f0d43
 #define JTET_NOMATCH    2
4f0d43
@@ -643,7 +645,7 @@ static void flush_bz2_chunk(void *buffer
4f0d43
 
4f0d43
     err = BZ2_bzCompressInit(&c_stream, 9, 0, 0);
4f0d43
     comp_buf = malloc(2 * size); /* Worst case */
4f0d43
-    c_stream.next_out = comp_buf;
4f0d43
+    c_stream.next_out = (char *)comp_buf;
4f0d43
     c_stream.avail_out = 2 * size;
4f0d43
     c_stream.next_in = buffer;
4f0d43
     c_stream.avail_in = size;
4f0d43
@@ -691,7 +693,7 @@ static void write_compressed_chunk(unsig
4f0d43
 		if (!uncomp_buf)
4f0d43
 		{
4f0d43
 #ifdef	USE_LIBSCHILY
4f0d43
-            comerr("failed to allocate %d bytes for template compression buffer\n", uncomp_size);
4f0d43
+            comerr("failed to allocate %d bytes for template compression buffer\n", (int)uncomp_size);
4f0d43
 #else
4f0d43
             fprintf(stderr, "failed to allocate %d bytes for template compression buffer\n", uncomp_size);
4f0d43
             exit(1);
4f0d43
@@ -1019,8 +1021,8 @@ void write_jt_match_record(char *filenam
4f0d43
 #endif
4f0d43
 		}
4f0d43
         if (first_block)
4f0d43
-            rsync64_sum = rsync64(buf, MIN_JIGDO_FILE_SIZE);
4f0d43
-        checksum_update(iso_context, buf, use);
4f0d43
+            rsync64_sum = rsync64((unsigned char *)buf, MIN_JIGDO_FILE_SIZE);
4f0d43
+        checksum_update(iso_context, (unsigned char *)buf, use);
4f0d43
 //        mk_MD5Update(&iso_context, buf, use);
4f0d43
         remain -= use;
4f0d43
         first_block = 0;
4f0d43
@@ -1033,7 +1035,7 @@ void write_jt_match_record(char *filenam
4f0d43
     {
4f0d43
         int pad_size = sector_size - (size % sector_size);
4f0d43
         memset(buf, 0, pad_size);
4f0d43
-        checksum_update(iso_context, buf, pad_size);
4f0d43
+        checksum_update(iso_context, (unsigned char *)buf, pad_size);
4f0d43
 //        mk_MD5Update(&iso_context, buf, pad_size);
4f0d43
     }
4f0d43
 
4f0d43
@@ -1041,7 +1043,7 @@ void write_jt_match_record(char *filenam
4f0d43
     if (size % sector_size)
4f0d43
     {
4f0d43
         int pad_size = sector_size - (size % sector_size);
4f0d43
-        write_compressed_chunk(buf, pad_size);
4f0d43
+        write_compressed_chunk((unsigned char *)buf, pad_size);
4f0d43
         add_unmatched_entry(pad_size);
4f0d43
     }        
4f0d43
 }
4f0d43
diff -up cdrkit-1.1.8/genisoimage/eltorito.c.werror cdrkit-1.1.8/genisoimage/eltorito.c
4f0d43
--- cdrkit-1.1.8/genisoimage/eltorito.c.werror	2008-05-27 15:34:03.000000000 +0200
4f0d43
+++ cdrkit-1.1.8/genisoimage/eltorito.c	2008-05-27 15:34:03.000000000 +0200
4f0d43
@@ -660,7 +660,7 @@ fill_boot_desc(struct eltorito_defaultbo
4f0d43
 		set_731(bi_table.bi_length, de->size);
4f0d43
 		set_731(bi_table.bi_csum, bi_checksum);
4f0d43
 
4f0d43
-		write(bootimage, &bi_table, sizeof (bi_table)); /* FIXME: check return value */
4f0d43
+		do{int ret;ret=write(bootimage, &bi_table, sizeof (bi_table));}while(0); /* FIXME: check return value */
4f0d43
 		close(bootimage);
4f0d43
 	}
4f0d43
 }/* fill_boot_desc(... */