From 850f5935dd4d354c80a8f03f0e215aaaab5d1773 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sun, 11 Feb 2007 20:10:59 +0000 Subject: Define an ARRAY_SIZE macro which computes the size of a static array, and use it where relevant. --- dmiopt.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'dmiopt.c') diff --git a/dmiopt.c b/dmiopt.c index c4781b4..d571108 100644 --- a/dmiopt.c +++ b/dmiopt.c @@ -26,6 +26,7 @@ #include "config.h" #include "types.h" +#include "util.h" #include "dmidecode.h" #include "dmiopt.h" @@ -71,7 +72,7 @@ static void print_opt_type_list(void) unsigned int i; fprintf(stderr, "Valid type keywords are:\n"); - for(i=0; i