aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/arch/linux
diff options
context:
space:
mode:
Diffstat (limited to 'hardinfo2/arch/linux')
-rw-r--r--hardinfo2/arch/linux/common/modules.h2
-rw-r--r--hardinfo2/arch/linux/common/storage.h2
-rw-r--r--hardinfo2/arch/linux/x86/processor.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/hardinfo2/arch/linux/common/modules.h b/hardinfo2/arch/linux/common/modules.h
index 69f7ebd6..9c335f18 100644
--- a/hardinfo2/arch/linux/common/modules.h
+++ b/hardinfo2/arch/linux/common/modules.h
@@ -72,7 +72,7 @@ scan_modules(void)
/* old modutils displays <none> when there's no value for a
given field; this is not desirable in the module name
display, so change it to an empty string */
- if (description && !strcmp(description, "&lt;none&gt;")) {
+ if (description && g_str_equal(description, "&lt;none&gt;")) {
g_free(description);
description = g_strdup("");
}
diff --git a/hardinfo2/arch/linux/common/storage.h b/hardinfo2/arch/linux/common/storage.h
index 7321f70e..3f65b04e 100644
--- a/hardinfo2/arch/linux/common/storage.h
+++ b/hardinfo2/arch/linux/common/storage.h
@@ -107,7 +107,7 @@ scan_scsi(void)
int i;
for (i = 0; type2icon[i].type != NULL; i++)
- if (!strcmp(buf + 8, type2icon[i].type))
+ if (g_str_equal(buf + 8, type2icon[i].type))
break;
type = type2icon[i].label;
diff --git a/hardinfo2/arch/linux/x86/processor.h b/hardinfo2/arch/linux/x86/processor.h
index f13c9dcc..1897a3e7 100644
--- a/hardinfo2/arch/linux/x86/processor.h
+++ b/hardinfo2/arch/linux/x86/processor.h
@@ -246,7 +246,7 @@ processor_get_capabilities_from_flags(gchar * strflags)
while (flags[j]) {
gchar *meaning = "";
for (i = 0; flag_meaning[i].name != NULL; i++) {
- if (!strcmp(flags[j], flag_meaning[i].name)) {
+ if (g_str_equal(flags[j], flag_meaning[i].name)) {
meaning = flag_meaning[i].meaning;
break;
}