changeset 16859:ce2422ae793c

From my reading of the documentation, g_mkstemp() is a strict superset of mkstemp()'s functionality. datallah commented in the commit message for 27e1df003532e1209f1f56770923ca4c7674d7ca that he thought this could be done the same on *nix and Win32, but didn't want to break anything before the release. I'm confident this should be okay, and it should be safe to break things now. ;)
author Richard Laager <rlaager@wiktel.com>
date Sat, 05 May 2007 23:55:29 +0000
parents ec79e3ad09a9
children 8bf1d19a93ea
files libpurple/util.c
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/util.c	Fri May 04 04:01:23 2007 +0000
+++ b/libpurple/util.c	Sat May 05 23:55:29 2007 +0000
@@ -2529,11 +2529,7 @@
 
 	if((tmpdir = (gchar*)g_get_tmp_dir()) != NULL) {
 		if((*fpath = g_strdup_printf("%s" G_DIR_SEPARATOR_S "%s", tmpdir, purple_mkstemp_templ)) != NULL) {
-#ifdef _WIN32
 			fd = g_mkstemp(*fpath);
-#else
-			fd = mkstemp(*fpath));
-#endif
 			if(fd == -1) {
 				purple_debug(PURPLE_DEBUG_ERROR, "purple_mkstemp",
 						   "Couldn't make \"%s\", error: %d\n",