changeset 5783:92bc0a7580f6 HEAD

Use CMP_ST_MTIME() instead of #ifdefing nanoseconds ourself.
author Timo Sirainen <tss@iki.fi>
date Wed, 20 Jun 2007 01:08:13 +0300
parents 2e6a977b1d6a
children 9493c7f1ebca
files src/lib-storage/index/mbox/mbox-sync.c
diffstat 1 files changed, 1 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-sync.c	Wed Jun 20 01:07:30 2007 +0300
+++ b/src/lib-storage/index/mbox/mbox-sync.c	Wed Jun 20 01:08:13 2007 +0300
@@ -104,13 +104,7 @@
 
 	if (st.st_size != sync_ctx->last_stat.st_size ||
 	    (sync_ctx->last_stat.st_mtime != 0 &&
-	     (st.st_mtime != sync_ctx->last_stat.st_mtime
-#ifdef HAVE_STAT_TV_NSEC
-	      /* nanoseconds give better precision to this check if they're
-		 supported by the OS */
-	      || st.st_mtim.tv_nsec != sync_ctx->last_stat.st_mtim.tv_nsec
-#endif
-	     )))
+	     !CMP_ST_MTIME(&st, &sync_ctx->last_stat)))
 		sync_ctx->ext_modified = TRUE;
 
 	sync_ctx->last_stat = st;