From 842f44f4efff348367ff9be5972def06d899b77b Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Thu, 4 Jun 2009 17:40:01 +0200 Subject: Fixed compiling issues after commit 2cf4f28f6fc671478003b31c03b93e070eee9942 Also cleaned up a little bit more, removed more unneeded stuff. --- src/dmidecode.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/dmidecode.c') diff --git a/src/dmidecode.c b/src/dmidecode.c index fbc151a..0f77e67 100644 --- a/src/dmidecode.c +++ b/src/dmidecode.c @@ -5003,10 +5003,8 @@ static void dmi_table(u8 *type, u32 base, u16 len, u16 num, u16 ver, const char u8 *next; struct dmi_header h; - int display; to_dmi_header(&h, data); - display = (type == NULL || type[h.type]) // FIXME: Is this check correct? /* ** If a short entry is found (less than 4 bytes), not only it @@ -5037,7 +5035,7 @@ static void dmi_table(u8 *type, u32 base, u16 len, u16 num, u16 ver, const char next += 2; xmlNode *handle_n = NULL; - if(display) { + if( type == NULL || type[h.type] ) { // FIXME: Is this check correct? if(next - buf <= len) { /* TODO: ... * if(opt->flags & FLAG_DUMP) { -- cgit