X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fext2%2Fxattr_trusted.c;h=e8219f8eae9f293bff015a07c1dd11cccc00febf;hb=d6817cdbd143f87f9d7c59a4c3194091190eeb84;hp=f28a6a499c9650bb6d612947d9b78ff7650151db;hpb=9f5974c8734d83d4ab7096ed98136a82f41210d6;p=linux-2.6 diff --git a/fs/ext2/xattr_trusted.c b/fs/ext2/xattr_trusted.c index f28a6a499c..e8219f8eae 100644 --- a/fs/ext2/xattr_trusted.c +++ b/fs/ext2/xattr_trusted.c @@ -9,17 +9,14 @@ #include #include #include -#include #include #include "xattr.h" -#define XATTR_TRUSTED_PREFIX "trusted." - static size_t ext2_xattr_trusted_list(struct inode *inode, char *list, size_t list_size, const char *name, size_t name_len) { - const int prefix_len = sizeof(XATTR_TRUSTED_PREFIX)-1; + const int prefix_len = XATTR_TRUSTED_PREFIX_LEN; const size_t total_len = prefix_len + name_len + 1; if (!capable(CAP_SYS_ADMIN))