hal/hald/linux/volume_id volume_id.c,1.35,1.36

Kay Sievers kay at freedesktop.org
Sun Sep 19 16:23:48 PDT 2004


Update of /cvs/hal/hal/hald/linux/volume_id
In directory gabe:/tmp/cvs-serv13224/hald/linux/volume_id

Modified Files:
	volume_id.c 
Log Message:
2004-09-20  Kay Sievers  <kay.sievers at vrfy.org>

        * hald/linux/volume_id/volume_id.c: (probe_vfat): Trivial fix
        for debug output, the last iteration of the loop should end
        with 0 not -1



Index: volume_id.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux/volume_id/volume_id.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- volume_id.c	16 Sep 2004 23:18:06 -0000	1.35
+++ volume_id.c	19 Sep 2004 23:23:46 -0000	1.36
@@ -31,10 +31,10 @@
 #  include <config.h>
 #endif
 
-#include <stdlib.h>
 #include <stdio.h>
-#include <string.h>
+#include <stdlib.h>
 #include <unistd.h>
+#include <string.h>
 #include <errno.h>
 #include <ctype.h>
 #include <fcntl.h>
@@ -954,7 +954,7 @@
 
 	next = root_cluster;
 	maxloop = 100;
-	while (maxloop--) {
+	while (--maxloop) {
 		__u32 next_sect_off;
 		__u64 next_off;
 		__u64 fat_entry_off;




More information about the hal-commit mailing list