aboutsummaryrefslogtreecommitdiff
path: root/modules/devices/dmi.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/devices/dmi.c')
-rw-r--r--modules/devices/dmi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/devices/dmi.c b/modules/devices/dmi.c
index 263d6944..64de77d9 100644
--- a/modules/devices/dmi.c
+++ b/modules/devices/dmi.c
@@ -72,7 +72,7 @@ gboolean dmi_get_info(void)
const gchar *group = NULL;
DMIInfo *info;
gboolean dmi_succeeded = FALSE;
- gint i;
+ guint i;
gchar *value;
const gchar *vendor;
@@ -102,7 +102,8 @@ gboolean dmi_get_info(void)
state = (getuid() == 0) ? 0 : 1;
break;
case -1:
- state = 2;
+ state = 2;
+ break;
case 1:
value = dmi_get_str_abs(info->id_str);
break;