diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-08-08 07:07:19 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-08-08 07:07:19 +0000 |
commit | e5c03181ba3cd06f27e10677960575e44e7900a6 (patch) | |
tree | cfa341f7b9c46b2c7b692e11def79e72622152ab /src/addrcache.c | |
parent | 38ad5762fb87ec8278108d4a8d06e32612e64a13 (diff) |
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
Diffstat (limited to 'src/addrcache.c')
-rw-r--r-- | src/addrcache.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/addrcache.c b/src/addrcache.c index 28a65d58..9f538e0c 100644 --- a/src/addrcache.c +++ b/src/addrcache.c @@ -29,6 +29,7 @@ /* #include "mgutils.h" */ #include "addritem.h" #include "addrcache.h" +#include "utils.h" #define ID_TIME_OFFSET 998000000 #define ADDRCACHE_MAX_SEARCH_COUNT 1000 @@ -194,7 +195,7 @@ gboolean addrcache_check_file( AddressCache *cache, gchar *path ) { struct stat filestat; retVal = TRUE; if( path ) { - if( 0 == stat( path, &filestat ) ) { + if( 0 == g_stat( path, &filestat ) ) { if( filestat.st_mtime == cache->modifyTime ) retVal = FALSE; } } @@ -209,7 +210,7 @@ gboolean addrcache_mark_file( AddressCache *cache, gchar *path ) { gboolean retVal = FALSE; struct stat filestat; if( path ) { - if( 0 == stat( path, &filestat ) ) { + if( 0 == g_stat( path, &filestat ) ) { cache->modifyTime = filestat.st_mtime; retVal = TRUE; } |