summaryrefslogtreecommitdiffstats
path: root/src/dmidecode.c
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2009-06-04 17:40:01 +0200
committerDavid Sommerseth <davids@redhat.com>2009-06-04 17:40:01 +0200
commit842f44f4efff348367ff9be5972def06d899b77b (patch)
tree2995d7147559ef87d193b62d548f63d65d5b7186 /src/dmidecode.c
parent2cf4f28f6fc671478003b31c03b93e070eee9942 (diff)
downloadpython-dmidecode-842f44f4efff348367ff9be5972def06d899b77b.tar.gz
python-dmidecode-842f44f4efff348367ff9be5972def06d899b77b.tar.xz
python-dmidecode-842f44f4efff348367ff9be5972def06d899b77b.zip
Fixed compiling issues after commit 2cf4f28f6fc671478003b31c03b93e070eee9942
Also cleaned up a little bit more, removed more unneeded stuff.
Diffstat (limited to 'src/dmidecode.c')
-rw-r--r--src/dmidecode.c4
1 files changed, 1 insertions, 3 deletions
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) {