From 7b377e071ca76968155e225a7bdc272c8aae5a76 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sun, 18 May 2008 15:00:42 +0000 Subject: Cleanups. --- hardinfo2/arch/linux/common/dmi.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hardinfo2/arch/linux/common/dmi.h b/hardinfo2/arch/linux/common/dmi.h index 14534955..2a63b311 100644 --- a/hardinfo2/arch/linux/common/dmi.h +++ b/hardinfo2/arch/linux/common/dmi.h @@ -30,11 +30,11 @@ struct _DMIInfo { }; DMIInfo dmi_info_table[] = { - { "$BIOS", NULL }, + { "$BIOS", NULL, NULL }, { "Date", "/sys/class/dmi/id/bios_date", "bios-release-date" }, { "Vendor", "/sys/class/dmi/id/bios_vendor", "bios-vendor" }, { "Version", "/sys/class/dmi/id/bios_version", "bios-version" }, - { "$Board", NULL }, + { "$Board", NULL, NULL }, { "Name", "/sys/class/dmi/id/board_name", "baseboard-product-name" }, { "Vendor", "/sys/class/dmi/id/board_vendor", "baseboard-manufacturer" }, }; @@ -83,6 +83,7 @@ gboolean dmi_get_info_dmidecode() buffer); } else { dmi_failed = TRUE; + break; } } } @@ -128,6 +129,7 @@ gboolean dmi_get_info_sys() buffer); } else { dmi_failed = TRUE; + break; } } } -- cgit v1.2.3