changeset 298:4f42c8bcf186 trunk

[svn] Squash all 4 warnings in xmms-timidity.c
author chainsaw
date Fri, 16 Dec 2005 17:48:19 -0800
parents 6862a829540c
children 0235eaed75fe
files Plugins/Input/timidity/src/xmms-timidity.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Input/timidity/src/xmms-timidity.c	Fri Dec 16 17:34:26 2005 -0800
+++ b/Plugins/Input/timidity/src/xmms-timidity.c	Fri Dec 16 17:48:19 2005 -0800
@@ -205,7 +205,7 @@
 }
 
 void xmmstimid_conf_ok(GtkButton *button, gpointer user_data) {
-	gchar *config_file, *filename;
+	gchar *filename;
 	ConfigFile *cf;
 
 	g_free(xmmstimid_cfg.config_file);
@@ -301,8 +301,8 @@
 	}
 
 	g_free(buffer);
-
 	g_thread_exit(NULL);
+	return(NULL);
 }
 
 static gchar *xmmstimid_get_title(gchar *filename) {
@@ -320,7 +320,7 @@
 	if (temp2)
 		*temp2 = '\0';
 
-	input->file_name = g_basename(filename);
+	input->file_name = g_path_get_basename(filename);
 	input->file_ext = ext ? ext+1 : NULL;
 	input->file_path = g_strdup_printf("%s/", path);