From e46568349c49cadc870f5c0fc84dcce2f7c461b1 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Mon, 16 Oct 2006 17:53:16 +0000 Subject: Use g_str_equal instead of strcmp. About box cleanups Use g_build_filename instead of building paths on my own Better BinReloc support (should work even if binreloc initialization fails) --- hardinfo2/arch/linux/common/modules.h | 2 +- hardinfo2/arch/linux/common/storage.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'hardinfo2/arch/linux/common') 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 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, "<none>")) { + if (description && g_str_equal(description, "<none>")) { 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; -- cgit v1.2.3