diff options
Diffstat (limited to 'hardinfo2')
| -rw-r--r-- | hardinfo2/arch/linux/common/storage.h | 6 | ||||
| -rw-r--r-- | hardinfo2/shell.c | 7 | ||||
| -rw-r--r-- | hardinfo2/util.c | 1 | 
3 files changed, 11 insertions, 3 deletions
| diff --git a/hardinfo2/arch/linux/common/storage.h b/hardinfo2/arch/linux/common/storage.h index cd3c3249..71c206cd 100644 --- a/hardinfo2/arch/linux/common/storage.h +++ b/hardinfo2/arch/linux/common/storage.h @@ -79,9 +79,13 @@ __scan_scsi_devices(void)  	    model = g_strdup_printf("%s %s", vendor, model + 7);  	} else if (!strncmp(buf, "Type:   ", 8)) { -	    char *p = strstr(buf, "ANSI SCSI revi"); +	    char *p;  	    gchar *type = NULL, *icon = NULL; +            if (!(p = strstr(buf, "ANSI SCSI revision"))) { +                p = strstr(buf, "ANSI  SCSI revision"); +            } +  	    if (p != NULL) {  		while (*(--p) == ' ');  		*(++p) = 0; diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c index 0d32f2a9..00d18be7 100644 --- a/hardinfo2/shell.c +++ b/hardinfo2/shell.c @@ -524,6 +524,11 @@ static void add_modules_to_gui(gpointer data, gpointer user_data)      }  } +static void __tree_iter_destroy(gpointer data) +{ +    gtk_tree_iter_free((GtkTreeIter *) data); +} +  void shell_init(GSList * modules)  {      if (shell) { @@ -544,7 +549,7 @@ void shell_init(GSList * modules)      shell->moreinfo = info_tree_new(TRUE);      shell->loadgraph = load_graph_new(75);      update_tbl = g_hash_table_new_full(g_str_hash, g_str_equal, -                                       g_free, g_free); +                                       g_free, __tree_iter_destroy);      gtk_paned_pack1(GTK_PANED(shell->hpaned), shell->tree->scroll,  		    SHELL_PACK_RESIZE, SHELL_PACK_SHRINK); diff --git a/hardinfo2/util.c b/hardinfo2/util.c index c3022a08..79f4aef3 100644 --- a/hardinfo2/util.c +++ b/hardinfo2/util.c @@ -996,7 +996,6 @@ gchar *h_strdup_cprintf(const gchar * format, gchar * source, ...)  	retn = buffer;      } -      return retn;  } | 
