aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2009-04-25 11:16:04 -0300
committerLeandro A. F. Pereira <leandro@hardinfo.org>2009-04-25 11:16:04 -0300
commit856da8fc7aa60414de905b3088f03f03ae82b881 (patch)
treebf03ea4faaffa13c479047b5ed5fbf35af9c67dc /hardinfo2
parentb9bc708591332baf2f347aa98af25e3408374d09 (diff)
Cleanups
Diffstat (limited to 'hardinfo2')
-rw-r--r--hardinfo2/arch/linux/common/dmi.h14
-rw-r--r--hardinfo2/arch/linux/common/sensors.h1
2 files changed, 7 insertions, 8 deletions
diff --git a/hardinfo2/arch/linux/common/dmi.h b/hardinfo2/arch/linux/common/dmi.h
index 7c5e6e6f..6d35b25a 100644
--- a/hardinfo2/arch/linux/common/dmi.h
+++ b/hardinfo2/arch/linux/common/dmi.h
@@ -30,13 +30,13 @@ struct _DMIInfo {
};
DMIInfo dmi_info_table[] = {
- { "$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, NULL },
- { "Name", "/sys/class/dmi/id/board_name", "baseboard-product-name" },
- { "Vendor", "/sys/class/dmi/id/board_vendor", "baseboard-manufacturer" },
+ { "$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, NULL },
+ { "Name", "/sys/class/dmi/id/board_name", "baseboard-product-name" },
+ { "Vendor", "/sys/class/dmi/id/board_vendor", "baseboard-manufacturer" },
};
static gchar *dmi_info = NULL;
diff --git a/hardinfo2/arch/linux/common/sensors.h b/hardinfo2/arch/linux/common/sensors.h
index 17637764..2a656bc3 100644
--- a/hardinfo2/arch/linux/common/sensors.h
+++ b/hardinfo2/arch/linux/common/sensors.h
@@ -263,7 +263,6 @@ static void read_sensors_acpi(void)
const gchar *entry;
gchar *temp = g_strdup("");
-
while ((entry = g_dir_read_name(tz))) {
gchar *path =
g_strdup_printf("%s/%s/temperature", path_tz, entry);