Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2003-10-15 17:34:10 -0700
committerLinus Torvalds <torvalds@home.osdl.org>2003-10-15 17:34:10 -0700
commitafb93a834936928da14893b72aab0427198c161a (patch)
tree8cacda4feba8809e2c33aadcfb6c44e37bc9f8ac
parentdedfe385342a605ae6b8082ec7aa45642d0f5dd2 (diff)
[PATCH] ext2/ext3 acl signedness fixes
From: "Alexey Dobriyan" <adobriyan@mail.ru>, Andreas Gruenbacher <agruen@suse.de> Make local variable `count' an integer so the subsequent test for negativeness makes sense.
-rw-r--r--fs/ext2/acl.c2
-rw-r--r--fs/ext3/acl.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext2/acl.c b/fs/ext2/acl.c
index 0df165f8ee01..12cad78987fd 100644
--- a/fs/ext2/acl.c
+++ b/fs/ext2/acl.c
@@ -19,7 +19,7 @@ static struct posix_acl *
ext2_acl_from_disk(const void *value, size_t size)
{
const char *end = (char *)value + size;
- size_t n, count;
+ int n, count;
struct posix_acl *acl;
if (!value)
diff --git a/fs/ext3/acl.c b/fs/ext3/acl.c
index 53051432b4bf..2ae72c1a7e86 100644
--- a/fs/ext3/acl.c
+++ b/fs/ext3/acl.c
@@ -20,7 +20,7 @@ static struct posix_acl *
ext3_acl_from_disk(const void *value, size_t size)
{
const char *end = (char *)value + size;
- size_t n, count;
+ int n, count;
struct posix_acl *acl;
if (!value)