diff options
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; } |