summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/devices/x86/processor.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/devices/x86/processor.c b/modules/devices/x86/processor.c
index 4e36b817..957e88e9 100644
--- a/modules/devices/x86/processor.c
+++ b/modules/devices/x86/processor.c
@@ -680,7 +680,8 @@ gchar *processor_describe(GSList * processors) {
gchar *dmi_socket_info() {
gchar *ret = strdup("");
- unsigned long dt = 4, i;
+ dmi_type dt = 4;
+ int i;
dmi_handle_list *hl = dmidecode_handles(&dt);
if (!hl) {
ret = g_strdup_printf("[%s]\n%s=%s\n",
@@ -690,7 +691,7 @@ gchar *dmi_socket_info() {
: _("(Not available; Perhaps try running HardInfo as root.)") );
} else {
for(i = 0; i < hl->count; i++) {
- unsigned long h = hl->handles[i];
+ dmi_handle h = hl->handles[i];
gchar *upgrade = dmidecode_match("Upgrade", &dt, &h);
gchar *socket = dmidecode_match("Socket Designation", &dt, &h);
gchar *bus_clock_str = dmidecode_match("External Clock", &dt, &h);