From afb93a834936928da14893b72aab0427198c161a Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 15 Oct 2003 17:34:10 -0700 Subject: [PATCH] [PATCH] ext2/ext3 acl signedness fixes From: "Alexey Dobriyan" , Andreas Gruenbacher Make local variable `count' an integer so the subsequent test for negativeness makes sense. --- fs/ext2/acl.c | 2 +- fs/ext3/acl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ext2/acl.c b/fs/ext2/acl.c index 0df165f8ee010..12cad78987fd6 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 53051432b4bf7..2ae72c1a7e861 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) -- 2.53.0