The ARRAY_SIZE macro is convenient, yet mostly unused. Switch lots of
[coreboot.git] / src / arch / i386 / boot / coreboot_table.c
index 86cb9a388b65938df390f39e4a6a19c0343d3051..427b978d96e421cc00f0bdaec36f8b73e2aba99a 100644 (file)
@@ -184,7 +184,7 @@ void lb_strings(struct lb_header *header)
                { LB_TAG_ASSEMBLER,      coreboot_assembler,      },
        };
        unsigned int i;
-       for(i = 0; i < sizeof(strings)/sizeof(strings[0]); i++) {
+       for(i = 0; i < ARRAY_SIZE(strings); i++) {
                struct lb_string *rec;
                size_t len;
                rec = (struct lb_string *)lb_new_record(header);