patch-2.4.6 linux/arch/mips/arc/identify.c
Next file: linux/arch/mips/arc/memory.c
Previous file: linux/arch/mips/arc/console.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Mon Jul  2 13:56:40 2001
-  Orig file: 
v2.4.5/linux/arch/mips/arc/identify.c
-  Orig date: 
Fri Apr 13 20:26:07 2001
diff -u --recursive --new-file v2.4.5/linux/arch/mips/arc/identify.c linux/arch/mips/arc/identify.c
@@ -36,7 +36,7 @@
 {
 	int i;
 
-	for (i = 0; i < sizeof(mach_table); i++) {
+	for (i = 0; i < (sizeof(mach_table) / sizeof (mach_table[0])); i++) {
 		if (!strcmp(s, mach_table[i].name))
 			return &mach_table[i];
 	}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)