Skip to content

Commit

Permalink
eCryptfs: Fix min function comparison warning
Browse files Browse the repository at this point in the history
This warning shows up on 64 bit builds:

fs/ecryptfs/inode.c:693: warning: comparison of distinct pointer types
lacks a cast

Signed-off-by: Tyler Hicks <[email protected]>
  • Loading branch information
Tyler Hicks committed Apr 27, 2009
1 parent 802b352 commit ac20100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ecryptfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ ecryptfs_readlink(struct dentry *dentry, char __user *buf, int bufsiz)
}
/* Check for bufsiz <= 0 done in sys_readlinkat() */
rc = copy_to_user(buf, plaintext_name,
min((unsigned) bufsiz, plaintext_name_size));
min((size_t) bufsiz, plaintext_name_size));
if (rc)
rc = -EFAULT;
else
Expand Down

0 comments on commit ac20100

Please sign in to comment.