2d07f9
Nur in udftools-1.0.0b3-new/cdrwtool: cdrwtool.
2d07f9
Nur in udftools-1.0.0b3-new/cdrwtool: cdrwtool.o.
2d07f9
Nur in udftools-1.0.0b3-new/cdrwtool: defaults.o.
2d07f9
Nur in udftools-1.0.0b3-new/cdrwtool: .deps.
2d07f9
Nur in udftools-1.0.0b3-new/cdrwtool: .libs.
2d07f9
Nur in udftools-1.0.0b3-new/cdrwtool: main.o.
2d07f9
Nur in udftools-1.0.0b3-new/cdrwtool: Makefile.
2d07f9
Nur in udftools-1.0.0b3-new/cdrwtool: mkudffs.o.
2d07f9
Nur in udftools-1.0.0b3-new/cdrwtool: options.o.
2d07f9
Nur in udftools-1.0.0b3-new: config.log.
2d07f9
Nur in udftools-1.0.0b3-new: config.status.
2d07f9
Nur in udftools-1.0.0b3-new: debugfiles.list.
2d07f9
Nur in udftools-1.0.0b3-new: debuglinks.list.
2d07f9
Nur in udftools-1.0.0b3-new: debugsources.list.
2d07f9
Nur in udftools-1.0.0b3-new/doc: Makefile.
2d07f9
Nur in udftools-1.0.0b3-new/include: config.h.
2d07f9
Nur in udftools-1.0.0b3-new/include: stamp-h1.
2d07f9
Nur in udftools-1.0.0b3-new: libtool.
2d07f9
Nur in udftools-1.0.0b3-new/libudffs: crc.lo.
2d07f9
Nur in udftools-1.0.0b3-new/libudffs: crc.o.
2d07f9
Nur in udftools-1.0.0b3-new/libudffs: .deps.
2d07f9
Nur in udftools-1.0.0b3-new/libudffs: desc.lo.
2d07f9
Nur in udftools-1.0.0b3-new/libudffs: desc.o.
2d07f9
Nur in udftools-1.0.0b3-new/libudffs: extent.lo.
2d07f9
Nur in udftools-1.0.0b3-new/libudffs: extent.o.
2d07f9
diff -ur udftools-1.0.0b3/libudffs/file.c udftools-1.0.0b3-new/libudffs/file.c
2d07f9
--- udftools-1.0.0b3/libudffs/file.c	2002-11-26 08:18:51.000000000 +0100
2d07f9
+++ udftools-1.0.0b3-new/libudffs/file.c	2007-08-23 14:02:07.000000000 +0200
2d07f9
@@ -576,7 +576,7 @@
2d07f9
 	tmp = leBPL_to_cpup(p);
2d07f9
 found_first:
2d07f9
 	tmp |= (~0UL << size);
2d07f9
-	if (tmp == ~0UL)	/* Are any bits zero? */
2d07f9
+	if (tmp == (uintBPL)~0UL)	/* Are any bits zero? */
2d07f9
 		return result + size; /* Nope. */
2d07f9
 found_middle:
2d07f9
 	return result + ffz(tmp);
2d07f9
Nur in udftools-1.0.0b3-new/libudffs: file.lo.
2d07f9
Nur in udftools-1.0.0b3-new/libudffs: file.o.
2d07f9
Nur in udftools-1.0.0b3-new/libudffs: .libs.
2d07f9
Nur in udftools-1.0.0b3-new/libudffs: libudffs.la.
2d07f9
Nur in udftools-1.0.0b3-new/libudffs: Makefile.
2d07f9
Nur in udftools-1.0.0b3-new/libudffs: unicode.lo.
2d07f9
Nur in udftools-1.0.0b3-new/libudffs: unicode.o.
2d07f9
Nur in udftools-1.0.0b3-new: Makefile.
2d07f9
Nur in udftools-1.0.0b3-new/mkudffs: defaults.o.
2d07f9
Nur in udftools-1.0.0b3-new/mkudffs: .deps.
2d07f9
Nur in udftools-1.0.0b3-new/mkudffs: .libs.
2d07f9
Nur in udftools-1.0.0b3-new/mkudffs: main.o.
2d07f9
Nur in udftools-1.0.0b3-new/mkudffs: Makefile.
2d07f9
Nur in udftools-1.0.0b3-new/mkudffs: mkudffs.
2d07f9
diff -ur udftools-1.0.0b3/mkudffs/mkudffs.c udftools-1.0.0b3-new/mkudffs/mkudffs.c
2d07f9
--- udftools-1.0.0b3/mkudffs/mkudffs.c	2007-08-23 14:32:38.000000000 +0200
2d07f9
+++ udftools-1.0.0b3-new/mkudffs/mkudffs.c	2007-08-23 14:14:42.000000000 +0200
2d07f9
@@ -72,7 +72,7 @@
2d07f9
 	disc->udf_pvd[0] = malloc(sizeof(struct primaryVolDesc));
2d07f9
 	memcpy(disc->udf_pvd[0], &default_pvd, sizeof(struct primaryVolDesc));
2d07f9
 	memcpy(&disc->udf_pvd[0]->recordingDateAndTime, &ts, sizeof(timestamp));
2d07f9
-	sprintf(&disc->udf_pvd[0]->volSetIdent[1], "%08lx%s",
2d07f9
+	sprintf((char *)&disc->udf_pvd[0]->volSetIdent[1], "%08lx%s",
2d07f9
 		mktime(tm), &disc->udf_pvd[0]->volSetIdent[9]);
2d07f9
 	disc->udf_pvd[0]->volIdent[31] = strlen(disc->udf_pvd[0]->volIdent);
2d07f9
 	disc->udf_pvd[0]->volSetIdent[127] = strlen(disc->udf_pvd[0]->volSetIdent);
2d07f9
@@ -289,7 +289,7 @@
2d07f9
 int write_disc(struct udf_disc *disc)
2d07f9
 {
2d07f9
 	struct udf_extent *start_ext;
2d07f9
-	int ret;
2d07f9
+	int ret=0;
2d07f9
 
2d07f9
 	start_ext = disc->head;
2d07f9
 
2d07f9
@@ -299,6 +299,7 @@
2d07f9
 			return ret;
2d07f9
 		start_ext = start_ext->next;
2d07f9
 	}
2d07f9
+	return ret;
2d07f9
 }
2d07f9
 
2d07f9
 void setup_vrs(struct udf_disc *disc)
2d07f9
@@ -450,7 +451,7 @@
2d07f9
 		struct unallocSpaceEntry *use;
2d07f9
 		short_ad *sad;
2d07f9
 		int max = (0x3FFFFFFF / disc->blocksize) * disc->blocksize;
2d07f9
-		int pos;
2d07f9
+		int pos=0;
2d07f9
 		long long rem;
2d07f9
 
2d07f9
 		if (disc->flags & FLAG_STRATEGY4096)
2d07f9
Nur in udftools-1.0.0b3-new/mkudffs: mkudffs.o.
2d07f9
Nur in udftools-1.0.0b3-new/mkudffs: options.o.
2d07f9
Nur in udftools-1.0.0b3-new/pktsetup: .deps.
2d07f9
Nur in udftools-1.0.0b3-new/pktsetup: .libs.
2d07f9
Nur in udftools-1.0.0b3-new/pktsetup: Makefile.
2d07f9
Nur in udftools-1.0.0b3-new/pktsetup: pktsetup.
2d07f9
Nur in udftools-1.0.0b3-new/pktsetup: pktsetup.o.
2d07f9
Nur in udftools-1.0.0b3-new/udfct: Makefile.
2d07f9
Nur in udftools-1.0.0b3-new/udffsck: .deps.
2d07f9
Nur in udftools-1.0.0b3-new/udffsck: .libs.
2d07f9
Nur in udftools-1.0.0b3-new/udffsck: main.o.
2d07f9
Nur in udftools-1.0.0b3-new/udffsck: Makefile.
2d07f9
Nur in udftools-1.0.0b3-new/udffsck: udffsck.
2d07f9
Nur in udftools-1.0.0b3-new/wrudf: .deps.
2d07f9
diff -ur udftools-1.0.0b3/wrudf/ide-pc.c udftools-1.0.0b3-new/wrudf/ide-pc.c
2d07f9
--- udftools-1.0.0b3/wrudf/ide-pc.c	2002-11-26 08:18:51.000000000 +0100
2d07f9
+++ udftools-1.0.0b3-new/wrudf/ide-pc.c	2007-08-23 14:32:09.000000000 +0200
2d07f9
@@ -31,6 +31,7 @@
2d07f9
 #include <sys types.h="">		/* for u_char etc. */
2d07f9
 #include <linux cdrom.h="">
2d07f9
 #include <unistd.h>		/* sleep() */
2d07f9
+#include <stdlib.h>
2d07f9
 
2d07f9
 #include "bswap.h"
2d07f9
 #include "ide-pc.h"
2d07f9
Nur in udftools-1.0.0b3-new/wrudf: ide-pc.o.
2d07f9
Nur in udftools-1.0.0b3-new/wrudf: .libs.
2d07f9
Nur in udftools-1.0.0b3-new/wrudf: Makefile.
2d07f9
Nur in udftools-1.0.0b3-new/wrudf: wrudf.
2d07f9
diff -ur udftools-1.0.0b3/wrudf/wrudf.c udftools-1.0.0b3-new/wrudf/wrudf.c
2d07f9
--- udftools-1.0.0b3/wrudf/wrudf.c	2007-08-23 14:32:38.000000000 +0200
2d07f9
+++ udftools-1.0.0b3-new/wrudf/wrudf.c	2007-08-23 14:26:41.000000000 +0200
2d07f9
@@ -245,7 +245,7 @@
2d07f9
 	    } else if( strncmp( spm->partIdent.ident, UDF_ID_VIRTUAL, strlen(UDF_ID_VIRTUAL)) == 0 )
2d07f9
 		virtualPartitionNum = i;
2d07f9
 	}
2d07f9
-	spm = (char*)spm + spm->partitionMapLength;
2d07f9
+	spm = (struct sparablePartitionMap*)((char*)spm + spm->partitionMapLength);
2d07f9
     }
2d07f9
 
2d07f9
     if( medium == CDR ) {
2d07f9
@@ -300,7 +300,7 @@
2d07f9
 	    fail("SpaceBitmap not found\n");
2d07f9
     }
2d07f9
 
2d07f9
-    if (fsdLen = decode_utf8(fsd->fileSetIdent, fsdOut, fsd->fileSetIdent[31]))
2d07f9
+    if ((fsdLen = decode_utf8(fsd->fileSetIdent, fsdOut, fsd->fileSetIdent[31]))>=0)
2d07f9
         fsdOut[fsdLen] = '\0';
2d07f9
 
2d07f9
     printf("You are going to update fileset '%s'\nProceed (y/N) : ", &fsdOut[1]);
2d07f9
@@ -605,7 +605,7 @@
2d07f9
 int
2d07f9
 main(int argc, char** argv) 
2d07f9
 { 
2d07f9
-    int	 	rv;
2d07f9
+    int	 	rv=0;
2d07f9
     int		cmnd;
2d07f9
     char	prompt[256];
2d07f9
     Directory	*d;
2d07f9
Nur in udftools-1.0.0b3-new/wrudf: wrudf-cdr.o.
2d07f9
diff -ur udftools-1.0.0b3/wrudf/wrudf-cdrw.c udftools-1.0.0b3-new/wrudf/wrudf-cdrw.c
2d07f9
--- udftools-1.0.0b3/wrudf/wrudf-cdrw.c	2002-11-26 08:18:51.000000000 +0100
2d07f9
+++ udftools-1.0.0b3-new/wrudf/wrudf-cdrw.c	2007-08-23 14:30:14.000000000 +0200
2d07f9
@@ -614,7 +614,6 @@
2d07f9
 readTaggedBlock(uint32_t lbn, uint16_t partition) 
2d07f9
 {
2d07f9
     int		i;
2d07f9
-    uint32_t	blkno;
2d07f9
     uint8_t	sum, *p;
2d07f9
     struct generic_desc *block;
2d07f9
 
2d07f9
@@ -634,7 +633,7 @@
2d07f9
 	if( strncmp(((struct sparingTable*)block)->sparingIdent.ident, UDF_ID_SPARING, strlen(UDF_ID_SPARING)) != 0 ) {
2d07f9
 	    for( i = 0; i < 2048; i++ ) {
2d07f9
 		if( ((uint8_t*)block)[i] != 0 ) {
2d07f9
-		    printf("readTaggedBlock: Empty block %d not all zeroes\n", blkno);
2d07f9
+		    printf("readTaggedBlock: Empty block %d not all zeroes\n", lbn);
2d07f9
 		    break;
2d07f9
 		}
2d07f9
 	    }
2d07f9
@@ -647,10 +646,10 @@
2d07f9
 	    sum += *(p + i);
2d07f9
 
2d07f9
     if( block->descTag.tagChecksum != sum )
2d07f9
-	fail("readTagged: Checksum error in block %d\n", blkno);
2d07f9
+	fail("readTagged: Checksum error in block %d\n", lbn);
2d07f9
 
2d07f9
     if( block->descTag.descCRC != udf_crc((uint8_t*)block + sizeof(tag), ((tag*)block)->descCRCLength, 0) )
2d07f9
-	fail("readTagged: CRC error in block %d\n", blkno);
2d07f9
+	fail("readTagged: CRC error in block %d\n", lbn);
2d07f9
 
2d07f9
     return block;
2d07f9
 }
2d07f9
@@ -709,8 +708,8 @@
2d07f9
 writeExtents(char* src, int usesShort, void* extents) 
2d07f9
 {
2d07f9
     uint	len, blkno, partitionNumber;
2d07f9
-    long_ad	*lo;
2d07f9
-    short_ad	*sh;
2d07f9
+    long_ad	*lo=NULL;
2d07f9
+    short_ad	*sh=NULL;
2d07f9
 
2d07f9
     if( usesShort ) {
2d07f9
 	sh = (short_ad*) extents;
2d07f9
Nur in udftools-1.0.0b3-new/wrudf: wrudf-cdrw.o.
2d07f9
diff -ur udftools-1.0.0b3/wrudf/wrudf-cmnd.c udftools-1.0.0b3-new/wrudf/wrudf-cmnd.c
2d07f9
--- udftools-1.0.0b3/wrudf/wrudf-cmnd.c	2002-11-26 08:18:51.000000000 +0100
2d07f9
+++ udftools-1.0.0b3-new/wrudf/wrudf-cmnd.c	2007-08-23 14:22:41.000000000 +0200
2d07f9
@@ -45,7 +45,7 @@
2d07f9
 int
2d07f9
 copyFile(Directory *dir, char* inName, char*newName, struct stat *fileStat) 
2d07f9
 {
2d07f9
-    int		fd, i, blkno;
2d07f9
+    int		fd, i=0, blkno;
2d07f9
     uint32_t	nBytes, blkInPkt;
2d07f9
     uint32_t	maxVarPktSize;		// in bytes
2d07f9
     struct fileIdentDesc *fid;
2d07f9
@@ -54,7 +54,7 @@
2d07f9
 
2d07f9
     fd = open(inName, O_RDONLY);
2d07f9
     if( fd == 0 ) {
2d07f9
-	printf("'%s' does not exist\n", cmndv[i]);
2d07f9
+	printf("'%s' does not exist\n", inName);
2d07f9
 	return CMND_FAILED;
2d07f9
     }
2d07f9
 
2d07f9
Nur in udftools-1.0.0b3-new/wrudf: wrudf-cmnd.o.
2d07f9
Nur in udftools-1.0.0b3-new/wrudf: wrudf-desc.o.
2d07f9
Nur in udftools-1.0.0b3-new/wrudf: wrudf.o.