LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File aliasing.patch of Package xmms (Project home:donharter:home:FreeCAD)

--- Input/cdaudio/cddb.c
+++ Input/cdaudio/cddb.c
@@ -840,6 +840,11 @@
 {
 	GtkWidget *vbox, *bbox, *close, *scroll_win;
 	GList *temp;
+	
+	union {
+		gpointer** data;
+		gchar** auchdata;
+	} u_temp = { &temp->data };
 
 	if (debug_window)
 		return;
@@ -865,7 +870,7 @@
 	temp = debug_messages;
 	while (temp)
 	{
-		gtk_clist_prepend(GTK_CLIST(debug_clist), (gchar **)&temp->data);
+		gtk_clist_prepend(GTK_CLIST(debug_clist), u_temp.auchdata);
 		temp = g_list_next(temp);
 	}
 	
--- xmms/util.c
+++ xmms/util.c
@@ -623,6 +623,11 @@
 {
 	GList *list, *node;
 	char *filename = gtk_file_selection_get_filename(filesel);
+	
+	union {
+		gpointer **data;
+		gchar **auchdata;
+	} u_nodedata = { &node->data };
 
 	if ((list = input_scan_dir(filename)) != NULL)
 	{
@@ -642,7 +647,7 @@
 		while (node)
 		{
 			gtk_clist_append(GTK_CLIST(filesel->file_list),
-					 (gchar **) & node->data);
+					 u_nodedata.auchdata);
 			g_free(node->data);
 			node = g_list_next(node);
 		}