hal/hald/linux2 classdev.c,1.22,1.23

David Zeuthen david at freedesktop.org
Tue Mar 15 18:58:04 PST 2005


Update of /cvs/hal/hal/hald/linux2
In directory gabe:/tmp/cvs-serv22445/hald/linux2

Modified Files:
	classdev.c 
Log Message:
2005-03-15  David Zeuthen  <davidz at redhat.com>

	* hald/util.c (hal_util_get_string_from_file): Yikes, variable i
	needs to be a gint rather than an guint otherwise our for-loop
	with i >= 0 will continue with i < 0 (only seen on x86_64 with
	gcc4)

	* hald/linux2/classdev.c (serial_add): Also make an unsigned int
	an int cf. above comment



Index: classdev.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux2/classdev.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- classdev.c	7 Mar 2005 19:08:41 -0000	1.22
+++ classdev.c	16 Mar 2005 02:58:02 -0000	1.23
@@ -590,7 +590,7 @@
 		}
 	} else {
 		size_t len;
-		unsigned int i;
+		int i;
 
 		len = strlen (last_elem);
 




More information about the hal-commit mailing list