From 081e601c25ff1981bb6c38937ef5d37f8168a711 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sun, 12 Sep 2010 21:19:02 +0300 Subject: [PATCH] * mu-index: use unsigned instead of time_t --- src/mu-index.c | 22 +++++++++++----------- src/mu-index.h | 8 ++++---- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/mu-index.c b/src/mu-index.c index d2abb0c5..973c2d2b 100644 --- a/src/mu-index.c +++ b/src/mu-index.c @@ -33,8 +33,8 @@ #include "mu-util-db.h" struct _MuIndex { - MuStore *_xapian; - gboolean _needs_reindex; + MuStore *_xapian; + gboolean _needs_reindex; }; MuIndex* @@ -80,15 +80,15 @@ mu_index_destroy (MuIndex *index) struct _MuIndexCallbackData { - MuIndexMsgCallback _idx_msg_cb; - MuIndexDirCallback _idx_dir_cb; - MuStore* _xapian; - void* _user_data; - MuIndexStats* _stats; - gboolean _reindex; - time_t _dirstamp; + MuIndexMsgCallback _idx_msg_cb; + MuIndexDirCallback _idx_dir_cb; + MuStore* _xapian; + void* _user_data; + MuIndexStats* _stats; + gboolean _reindex; + time_t _dirstamp; }; -typedef struct _MuIndexCallbackData MuIndexCallbackData; +typedef struct _MuIndexCallbackData MuIndexCallbackData; static MuResult @@ -116,7 +116,7 @@ insert_or_update_maybe (const char* fullpath, const char* mdir, } /* it's there, but it's not up to date */ - if ((size_t)filestamp >= (size_t)data->_dirstamp) + if ((unsigned)filestamp >= (unsigned)data->_dirstamp) break; return MU_OK; /* nope: no need to insert/update! */ diff --git a/src/mu-index.h b/src/mu-index.h index 509353a9..da818b3c 100644 --- a/src/mu-index.h +++ b/src/mu-index.h @@ -30,10 +30,10 @@ struct _MuIndex; typedef struct _MuIndex MuIndex; struct _MuIndexStats { - size_t _processed; /* number of msgs processed or counted */ - size_t _updated; /* number of msgs new or updated */ - size_t _cleaned_up; /* number of msgs cleaned up */ - size_t _uptodate; /* number of msgs already uptodate */ + unsigned _processed; /* number of msgs processed or counted */ + unsigned _updated; /* number of msgs new or updated */ + unsigned _cleaned_up; /* number of msgs cleaned up */ + unsigned _uptodate; /* number of msgs already uptodate */ }; typedef struct _MuIndexStats MuIndexStats;