svn commit: trunk/busybox/miscutils

vodz at busybox.net vodz at busybox.net
Wed Feb 1 12:56:21 UTC 2006


Author: vodz
Date: 2006-02-01 04:56:19 -0800 (Wed, 01 Feb 2006)
New Revision: 13786

Log:
removed anoinig warnings

Modified:
   trunk/busybox/miscutils/devfsd.c
   trunk/busybox/miscutils/less.c


Changeset:
Modified: trunk/busybox/miscutils/devfsd.c
===================================================================
--- trunk/busybox/miscutils/devfsd.c	2006-02-01 12:41:35 UTC (rev 13785)
+++ trunk/busybox/miscutils/devfsd.c	2006-02-01 12:56:19 UTC (rev 13786)
@@ -871,7 +871,7 @@
 }   /*  End Function action_permissions  */
 
 static void action_modload (const struct devfsd_notify_struct *info,
-			    const struct config_entry_struct *entry)
+			    const struct config_entry_struct *entry ATTRIBUTE_UNUSED)
 /*  [SUMMARY] Load a module.
     <info> The devfs change.
     <entry> The config file entry.
@@ -1705,7 +1705,7 @@
 			i==IDE6_MAJOR || i==IDE7_MAJOR || i==IDE8_MAJOR ||
 			i==IDE9_MAJOR )
 		{
-			if(i==major)
+			if((unsigned int)i==major)
 			{
 				letter=c;
 				break;
@@ -1901,7 +1901,7 @@
 		for (ptr = input; isalnum (ch) || (ch == '_') || (ch == ':');ch = *++ptr)
 			/* VOID */ ;
 		len = ptr - input;
-		if (len >= sizeof tmp)
+		if ((size_t)len >= sizeof tmp)
 			goto expand_variable_out;
 
 		safe_memcpy (tmp, input, len);
@@ -1927,7 +1927,7 @@
 	{
 		/*  Must be simple variable expansion with "${var}"  */
 		len = ptr - input;
-		if (len >= sizeof tmp)
+		if ((size_t)len >= sizeof tmp)
 			goto expand_variable_out;
 
 		safe_memcpy (tmp, input, len);
@@ -1943,7 +1943,7 @@
 	}
 	/*  It's that handy "${var:-word}" expression. Check if var is defined  */
 	len = ptr - input;
-	if (len >= sizeof tmp)
+	if ((size_t)len >= sizeof tmp)
 		goto expand_variable_out;
 
 	safe_memcpy (tmp, input, len);
@@ -1988,7 +1988,7 @@
 	pointer to start of word in "${var:-word}"  */
 	input += 2;
 	len = ptr - input;
-	if (len >= sizeof tmp)
+	if ((size_t)len >= sizeof tmp)
 		goto expand_variable_out;
 
 	safe_memcpy (tmp, input, len);

Modified: trunk/busybox/miscutils/less.c
===================================================================
--- trunk/busybox/miscutils/less.c	2006-02-01 12:41:35 UTC (rev 13785)
+++ trunk/busybox/miscutils/less.c	2006-02-01 12:56:19 UTC (rev 13786)
@@ -648,7 +648,7 @@
 			match_found = 1;
 
 		line2 = insert_highlights(line2, match_structs.rm_so + prev_eo, match_structs.rm_eo + prev_eo);
-		if (match_structs.rm_eo + 11 + prev_eo < strlen(line2))
+		if ((size_t)match_structs.rm_eo + 11 + prev_eo < strlen(line2))
 			strcat(sub_line, line2 + match_structs.rm_eo + 11 + prev_eo);
 
 		prev_eo += match_structs.rm_eo + 11;




More information about the busybox-cvs mailing list