[grisbi-cvs] [SCM] grisbi branch, master, updated. d6c7ac09280492e65d73e15a9dbb0809d4278755

Gunee nobody at users.sourceforge.net
Fri Jun 18 23:28:30 CEST 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grisbi".

The branch, master has been updated
       via  d6c7ac09280492e65d73e15a9dbb0809d4278755 (commit)
      from  be2e5e2ce62a0602761c9b6d7d22afe8a9e7cf41 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d6c7ac09280492e65d73e15a9dbb0809d4278755
Author: William OLLIVIER <guneemwelloeux at users.sourceforge.net>
Date:   Fri Jun 18 23:21:10 2010 +0200

    Better way to deal with deprecation of POSIX names with MSVC

-----------------------------------------------------------------------

Changes:
diff --git a/src/plugins/gnucash/gnucash.c b/src/plugins/gnucash/gnucash.c
index db79723..6469a05 100644
--- a/src/plugins/gnucash/gnucash.c
+++ b/src/plugins/gnucash/gnucash.c
@@ -665,11 +665,7 @@ xmlDocPtr parse_gnucash_file ( gchar * filename )
   doc = xmlParseFile( g_filename_from_utf8 ( tempname, -1, NULL, NULL, NULL ) );
 
   /** Once parsed, the temporary file is removed as it is useless.  */
-#ifndef _MSC_VER
-  unlink ( tempname );
-#else
-  _unlink ( tempname );
-#endif
+  g_unlink ( tempname );
   
   return doc;
 }
diff --git a/src/plugins/openssl/openssl.c b/src/plugins/openssl/openssl.c
index c2cd7f3..0dded1a 100644
--- a/src/plugins/openssl/openssl.c
+++ b/src/plugins/openssl/openssl.c
@@ -281,11 +281,7 @@ gchar *gsb_file_util_ask_for_crypt_key ( gchar * file_name, gchar * additional_m
     {
 	case GTK_RESPONSE_OK:
 
-#ifndef _MSC_VER
-	    key = strdup (gtk_entry_get_text ( GTK_ENTRY ( entry )));
-#else
-	    key = _strdup (gtk_entry_get_text ( GTK_ENTRY ( entry )));
-#endif /* _MSC_VER */
+	    key = g_strdup (gtk_entry_get_text ( GTK_ENTRY ( entry )));
 
 	    if (!strlen (key))
 		key = NULL;


hooks/post-receive
-- 
grisbi


More information about the cvs mailing list