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