[dovecot-cvs] dovecot/src/lib-index mail-index-sync.c,1.67,1.68
cras at dovecot.org
cras at dovecot.org
Sat Jan 14 20:49:23 EET 2006
- Previous message: [dovecot-cvs] dovecot/src/pop3-login client-authenticate.c, 1.45,
1.46 client.c, 1.45, 1.46 pop3-proxy.c, 1.9, 1.10
- Next message: [dovecot-cvs]
dovecot-lda/src deliver.c, 1.35, 1.36 duplicate.c, 1.4,
1.5 mail-send.c, 1.7, 1.8 sieve-cmu.c, 1.11, 1.12
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv19312/lib-index
Modified Files:
mail-index-sync.c
Log Message:
Error handling fix
Index: mail-index-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-sync.c,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -d -r1.67 -r1.68
--- mail-index-sync.c 14 Jan 2006 18:47:34 -0000 1.67
+++ mail-index-sync.c 14 Jan 2006 18:49:21 -0000 1.68
@@ -500,8 +500,8 @@
rec->uid2 = range->uid2;
}
-static bool mail_index_sync_rec_check(struct mail_index_view *view,
- struct mail_index_sync_rec *rec)
+static int mail_index_sync_rec_check(struct mail_index_view *view,
+ struct mail_index_sync_rec *rec)
{
switch (rec->type) {
case MAIL_INDEX_SYNC_TYPE_EXPUNGE:
@@ -513,13 +513,13 @@
mail_transaction_log_view_set_corrupted(view->log_view,
"Broken UID range: %u..%u (type 0x%x)",
rec->uid1, rec->uid2, rec->type);
- return FALSE;
+ return -1;
}
break;
case MAIL_INDEX_SYNC_TYPE_APPEND:
break;
}
- return TRUE;
+ return 0;
}
int mail_index_sync_next(struct mail_index_sync_ctx *ctx,
- Previous message: [dovecot-cvs] dovecot/src/pop3-login client-authenticate.c, 1.45,
1.46 client.c, 1.45, 1.46 pop3-proxy.c, 1.9, 1.10
- Next message: [dovecot-cvs]
dovecot-lda/src deliver.c, 1.35, 1.36 duplicate.c, 1.4,
1.5 mail-send.c, 1.7, 1.8 sieve-cmu.c, 1.11, 1.12
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list