aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/util.c
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2008-06-25 14:04:04 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2008-06-25 14:04:04 +0000
commitb1c99672786bb44a3d3b4cfd5ec28e91f68c7230 (patch)
tree2d96193994c55cc7550b7e2ac6ca7be4545cb7cc /hardinfo2/util.c
parent327cc93e5615ee19073dcc8f049fed2349307da7 (diff)
Cleanups.
Add processor cache information (x86 only.)
Diffstat (limited to 'hardinfo2/util.c')
-rw-r--r--hardinfo2/util.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/hardinfo2/util.c b/hardinfo2/util.c
index f83fc1c2..153b32b8 100644
--- a/hardinfo2/util.c
+++ b/hardinfo2/util.c
@@ -459,9 +459,9 @@ static void module_register_methods(ShellModule * module)
if (g_module_symbol
(module->dll, "hi_exported_methods", (gpointer) & get_methods)) {
- ShellModuleMethod *methods = get_methods();
-
- while (TRUE) {
+ ShellModuleMethod *methods;
+
+ for (methods = get_methods(); methods->name; methods++) {
ShellModuleMethod method = *methods;
gchar *name = g_path_get_basename(g_module_name(module->dll));
@@ -471,9 +471,6 @@ static void module_register_methods(ShellModule * module)
g_hash_table_insert(__module_methods, method_name,
method.function);
g_free(name);
-
- if (!(*(++methods)).name)
- break;
}
}
@@ -896,8 +893,6 @@ void tree_view_save_image(gchar * filename)
static gboolean __idle_free_do(gpointer ptr)
{
- DEBUG("bla %p", ptr);
-
if (ptr) {
g_free(ptr);
}