]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ext2/ext3 acl signedness fixes
authorAndrew Morton <akpm@osdl.org>
Thu, 16 Oct 2003 00:34:10 +0000 (17:34 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Thu, 16 Oct 2003 00:34:10 +0000 (17:34 -0700)
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.

fs/ext2/acl.c
fs/ext3/acl.c

index 0df165f8ee0106d8372ee7cf88b5ec845ee6f122..12cad78987fd67937f73a462b9f6fecf2723dd8b 100644 (file)
@@ -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)
index 53051432b4bf7452033e4c3805963fc1bd19712d..2ae72c1a7e86116653ad30ca740dd72ba955218f 100644 (file)
@@ -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)