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