From e5c03181ba3cd06f27e10677960575e44e7900a6 Mon Sep 17 00:00:00 2001 From: hiro Date: Mon, 8 Aug 2005 07:07:19 +0000 Subject: added wrappers for C library function that take pathname arguments. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@478 ee746299-78ed-0310-b773-934348b2243d --- src/jpilot.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/jpilot.c') diff --git a/src/jpilot.c b/src/jpilot.c index 7e5caa49..4624e141 100644 --- a/src/jpilot.c +++ b/src/jpilot.c @@ -339,7 +339,7 @@ static gboolean jpilot_mark_files( JPilotFile *pilotFile ) { pilotFile->pc3ModifyTime = 0; pcFile = jpilot_get_pc3_file( pilotFile ); if( pcFile == NULL ) return retVal; - if( 0 == lstat( pcFile, &filestat ) ) { + if( 0 == g_lstat( pcFile, &filestat ) ) { pilotFile->havePC3 = TRUE; pilotFile->pc3ModifyTime = filestat.st_mtime; retVal = TRUE; @@ -367,7 +367,7 @@ static gboolean jpilot_check_files( JPilotFile *pilotFile ) { pcFile = jpilot_get_pc3_file( pilotFile ); if( pcFile == NULL ) return FALSE; - if( 0 == lstat( pcFile, &filestat ) ) { + if( 0 == g_lstat( pcFile, &filestat ) ) { if( filestat.st_mtime == pilotFile->pc3ModifyTime ) retVal = FALSE; } g_free( pcFile ); @@ -644,7 +644,7 @@ static gint jpilot_get_file_info( JPilotFile *pilotFile, unsigned char **buf, in *buf_size=0; if( pilotFile->path ) { - in = fopen( pilotFile->path, "rb" ); + in = g_fopen( pilotFile->path, "rb" ); if( !in ) { return MGU_OPEN_FILE; } @@ -826,7 +826,7 @@ static gint jpilot_read_db_files( JPilotFile *pilotFile, GList **records ) { return MGU_BAD_ARGS; } - in = fopen( pilotFile->path, "rb" ); + in = g_fopen( pilotFile->path, "rb" ); if (!in) { return MGU_OPEN_FILE; } @@ -943,7 +943,7 @@ static gint jpilot_read_db_files( JPilotFile *pilotFile, GList **records ) { /* Read the PC3 file, if present */ pcFile = jpilot_get_pc3_file( pilotFile ); if( pcFile == NULL ) return MGU_SUCCESS; - pc_in = fopen( pcFile, "rb"); + pc_in = g_fopen( pcFile, "rb"); g_free( pcFile ); if( pc_in == NULL ) { @@ -1641,7 +1641,7 @@ gchar *jpilot_find_pilotdb( void ) { strcat( str, JPILOT_DBHOME_FILE ); /* Attempt to open */ - if( ( fp = fopen( str, "rb" ) ) != NULL ) { + if( ( fp = g_fopen( str, "rb" ) ) != NULL ) { fclose( fp ); } else { -- cgit v1.2.3