From b1c99672786bb44a3d3b4cfd5ec28e91f68c7230 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Wed, 25 Jun 2008 14:04:04 +0000 Subject: Cleanups. Add processor cache information (x86 only.) --- hardinfo2/util.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'hardinfo2/util.c') 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); } -- cgit v1.2.3