* mu-index: use unsigned instead of time_t

This commit is contained in:
Dirk-Jan C. Binnema 2010-09-12 21:19:02 +03:00
parent 9a32d86851
commit 081e601c25
2 changed files with 15 additions and 15 deletions

View File

@ -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! */

View File

@ -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;