Mercurial > dovecot > core-2.2
changeset 12501:014a6a0a93cf
Compiler warning fixes.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 03 Dec 2010 07:39:13 +0000 |
parents | 8fa2c23e9256 |
children | e5dcc12f8dba |
files | src/auth/userdb-passwd.c src/lib-fs/fs-posix.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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; }
--- 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;