summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith M Wesolowski <wesolows@foobazco.org>2001-03-18 23:29:04 +0000
committerKeith M Wesolowski <wesolows@foobazco.org>2001-03-18 23:29:04 +0000
commit18f50189f7a5585576728b0764052cd5f0e3a2dc (patch)
treebddb3d9be08e904aaa3bd83daf243385c444abf1
parent113870247b2b2dc0188609c0ba7018db321d3961 (diff)
Likewise fix identify bug for mips32.
-rw-r--r--arch/mips/arc/identify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/arc/identify.c b/arch/mips/arc/identify.c
index a2ee29fb4..8fef32507 100644
--- a/arch/mips/arc/identify.c
+++ b/arch/mips/arc/identify.c
@@ -36,7 +36,7 @@ static struct smatch *__init string_to_mach(char *s)
{
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];
}