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