SF.net SVN: geany: [2016] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Sun Nov 4 16:31:47 UTC 2007


Revision: 2016
          http://geany.svn.sourceforge.net/geany/?rev=2016&view=rev
Author:   eht16
Date:     2007-11-04 08:31:47 -0800 (Sun, 04 Nov 2007)

Log Message:
-----------
Use g_unlink() instead of unlink().

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/tagmanager/tm_workspace.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-11-04 15:48:14 UTC (rev 2015)
+++ trunk/ChangeLog	2007-11-04 16:31:47 UTC (rev 2016)
@@ -14,6 +14,7 @@
    created.
    Fix problems when configuration directory path contains special
    characters.
+ * tagmanager/tm_workspace.c: Use g_unlink() instead of unlink().
 
 
 2007-11-02  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>

Modified: trunk/tagmanager/tm_workspace.c
===================================================================
--- trunk/tagmanager/tm_workspace.c	2007-11-04 15:48:14 UTC (rev 2015)
+++ trunk/tagmanager/tm_workspace.c	2007-11-04 16:31:47 UTC (rev 2016)
@@ -79,7 +79,7 @@
 				tm_tag_free(theWorkspace->global_tags->pdata[i]);
 			g_ptr_array_free(theWorkspace->global_tags, TRUE);
 		}
-		unlink(theWorkspace->work_object.file_name);
+		g_unlink(theWorkspace->work_object.file_name);
 		tm_work_object_destroy(TM_WORK_OBJECT(theWorkspace));
 		g_free(theWorkspace);
 		theWorkspace = NULL;
@@ -358,7 +358,7 @@
 #endif
 		system(command);
 		g_free(command);
-		unlink(temp_file);
+		g_unlink(temp_file);
 		g_free(temp_file);
 	}
 	else
@@ -371,10 +371,10 @@
 	source_file = tm_source_file_new(temp_file2, TRUE, tm_source_file_get_lang_name(lang));
 	if (NULL == source_file)
 	{
-		unlink(temp_file2);
+		g_unlink(temp_file2);
 		return FALSE;
 	}
-	unlink(temp_file2);
+	g_unlink(temp_file2);
 	g_free(temp_file2);
 	if ((NULL == source_file->tags_array) || (0 == source_file->tags_array->len))
 	{


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list