[dovecot-cvs] dovecot/src/plugins/quota quota-dict.c, 1.4,
1.5 quota-dirsize.c, 1.3, 1.4 quota-fs.c, 1.2,
1.3 quota-private.h, 1.2, 1.3 quota-storage.c, 1.1,
1.2 quota.c, 1.2, 1.3 quota.h, 1.1, 1.2
cras at dovecot.org
cras at dovecot.org
Fri Jan 13 22:26:47 EET 2006
Update of /var/lib/cvs/dovecot/src/plugins/quota
In directory talvi:/tmp/cvs-serv27808/src/plugins/quota
Modified Files:
quota-dict.c quota-dirsize.c quota-fs.c quota-private.h
quota-storage.c quota.c quota.h
Log Message:
Added "bool" type and changed all ints that were used as booleans to bool.
Index: quota-dict.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/quota/quota-dict.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- quota-dict.c 9 Jan 2006 08:05:24 -0000 1.4
+++ quota-dict.c 13 Jan 2006 20:26:42 -0000 1.5
@@ -23,7 +23,7 @@
struct dict_quota_root_iter {
struct quota_root_iter iter;
- int sent;
+ bool sent;
};
extern struct quota dict_quota;
@@ -226,7 +226,7 @@
static int
dict_quota_try_alloc(struct quota_transaction_context *ctx,
- struct mail *mail, int *too_large_r)
+ struct mail *mail, bool *too_large_r)
{
uoff_t size;
Index: quota-dirsize.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/quota/quota-dirsize.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- quota-dirsize.c 9 Jan 2006 08:05:24 -0000 1.3
+++ quota-dirsize.c 13 Jan 2006 20:26:42 -0000 1.4
@@ -26,7 +26,7 @@
struct dirsize_quota_root_iter {
struct quota_root_iter iter;
- int sent;
+ bool sent;
};
extern struct quota dirsize_quota;
@@ -261,7 +261,7 @@
static int
dirsize_quota_try_alloc(struct quota_transaction_context *ctx,
- struct mail *mail, int *too_large_r)
+ struct mail *mail, bool *too_large_r)
{
uoff_t size;
Index: quota-fs.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/quota/quota-fs.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- quota-fs.c 23 Dec 2005 22:38:25 -0000 1.2
+++ quota-fs.c 13 Jan 2006 20:26:42 -0000 1.3
@@ -36,7 +36,7 @@
struct fs_quota_root_iter {
struct quota_root_iter iter;
- int sent;
+ bool sent;
};
extern struct quota fs_quota;
@@ -251,7 +251,7 @@
static int
fs_quota_try_alloc(struct quota_transaction_context *ctx __attr_unused__,
struct mail *mail __attr_unused__,
- int *too_large_r __attr_unused__)
+ bool *too_large_r __attr_unused__)
{
/* no-op */
return 1;
Index: quota-private.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/quota/quota-private.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- quota-private.h 28 Dec 2005 20:17:51 -0000 1.2
+++ quota-private.h 13 Jan 2006 20:26:42 -0000 1.3
@@ -38,7 +38,7 @@
void (*transaction_rollback)(struct quota_transaction_context *ctx);
int (*try_alloc)(struct quota_transaction_context *ctx,
- struct mail *mail, int *too_large_r);
+ struct mail *mail, bool *too_large_r);
void (*alloc)(struct quota_transaction_context *ctx, struct mail *mail);
void (*free)(struct quota_transaction_context *ctx, struct mail *mail);
Index: quota-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/quota/quota-storage.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- quota-storage.c 10 Dec 2005 19:44:46 -0000 1.1
+++ quota-storage.c 13 Jan 2006 20:26:42 -0000 1.2
@@ -28,7 +28,7 @@
};
static unsigned int quota_storage_module_id = 0;
-static int quota_storage_module_id_set = FALSE;
+static bool quota_storage_module_id_set = FALSE;
static int quota_mail_expunge(struct mail *_mail)
{
@@ -156,7 +156,7 @@
enum mail_flags flags, struct mail_keywords *keywords,
time_t received_date, int timezone_offset,
const char *from_envelope, struct istream *input,
- int want_mail __attr_unused__)
+ bool want_mail __attr_unused__)
{
struct quota_mailbox *qbox = QUOTA_CONTEXT(t->box);
const struct stat *st;
Index: quota.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/quota/quota.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- quota.c 14 Dec 2005 21:34:01 -0000 1.2
+++ quota.c 13 Jan 2006 20:26:42 -0000 1.3
@@ -124,7 +124,7 @@
}
int quota_try_alloc(struct quota_transaction_context *ctx,
- struct mail *mail, int *too_large_r)
+ struct mail *mail, bool *too_large_r)
{
return ctx->quota->try_alloc(ctx, mail, too_large_r);
}
Index: quota.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/quota/quota.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- quota.h 10 Dec 2005 19:44:46 -0000 1.1
+++ quota.h 13 Jan 2006 20:26:43 -0000 1.2
@@ -53,7 +53,7 @@
-1 if error. If mail size is larger than even maximum allowed quota,
too_large_r is set to TRUE. */
int quota_try_alloc(struct quota_transaction_context *ctx,
- struct mail *mail, int *too_large_r);
+ struct mail *mail, bool *too_large_r);
/* Update quota by allocating/freeing space used by mail. */
void quota_alloc(struct quota_transaction_context *ctx, struct mail *mail);
void quota_free(struct quota_transaction_context *ctx, struct mail *mail);
More information about the dovecot-cvs
mailing list