dovecot-2.0: Compiler warning fixes.
dovecot at dovecot.org
dovecot at dovecot.org
Fri Dec 3 09:39:30 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/014a6a0a93cf
changeset: 12501:014a6a0a93cf
user: Timo Sirainen <tss at iki.fi>
date: Fri Dec 03 07:39:13 2010 +0000
description:
Compiler warning fixes.
diffstat:
src/auth/userdb-passwd.c | 4 ++--
src/lib-fs/fs-posix.c | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 8fa2c23e9256 -r 014a6a0a93cf src/auth/userdb-passwd.c
--- a/src/auth/userdb-passwd.c Fri Dec 03 07:12:20 2010 +0000
+++ b/src/auth/userdb-passwd.c Fri Dec 03 07:39:13 2010 +0000
@@ -105,9 +105,9 @@
while ((pw = getpwent()) != NULL) {
/* skip entries not in valid UID range.
they're users for daemons and such. */
- if (pw->pw_uid >= ctx->set->first_valid_uid &&
+ if (pw->pw_uid >= (uid_t)ctx->set->first_valid_uid &&
(ctx->set->last_valid_uid == 0 ||
- pw->pw_uid <= ctx->set->last_valid_uid)) {
+ pw->pw_uid <= (uid_t)ctx->set->last_valid_uid)) {
_ctx->callback(pw->pw_name, _ctx->context);
return;
}
diff -r 8fa2c23e9256 -r 014a6a0a93cf src/lib-fs/fs-posix.c
--- a/src/lib-fs/fs-posix.c Fri Dec 03 07:12:20 2010 +0000
+++ b/src/lib-fs/fs-posix.c Fri Dec 03 07:39:13 2010 +0000
@@ -358,7 +358,9 @@
static int
fs_posix_lock(struct fs_file *_file, unsigned int secs, struct fs_lock **lock_r)
{
+#ifdef HAVE_FLOCK
struct posix_fs_file *file = (struct posix_fs_file *)_file;
+#endif
struct posix_fs *fs = (struct posix_fs *)_file->fs;
struct dotlock_settings dotlock_set;
struct posix_fs_lock fs_lock, *ret_lock;
More information about the dovecot-cvs
mailing list