From 76266d8cd0db429093e144a67ef66a0a6532c799 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Mon, 3 Oct 2016 13:26:02 +0200 Subject: ext2fs: Use correct type for sizes. * ext2fs/ext2fs.h (ext2_{list,get,set}_xattr): Use 'size_t'. * ext2fs/xattr.c (xattr_entry_{list,get,create): Use 'size_t' where appropriate. (ext2_{list,get,set}_xattr): Likewise. --- ext2fs/ext2fs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext2fs/ext2fs.h') diff --git a/ext2fs/ext2fs.h b/ext2fs/ext2fs.h index 76adf632..2ee97fd0 100644 --- a/ext2fs/ext2fs.h +++ b/ext2fs/ext2fs.h @@ -582,9 +582,9 @@ extern void ext2_warning (const char *, ...) /* ---------------------------------------------------------------- */ /* xattr.c */ -error_t ext2_list_xattr (struct node *np, char *buffer, int *len); -error_t ext2_get_xattr (struct node *np, const char *name, char *value, int *len); -error_t ext2_set_xattr (struct node *np, const char *name, const char *value, int len, int flags); +error_t ext2_list_xattr (struct node *np, char *buffer, size_t *len); +error_t ext2_get_xattr (struct node *np, const char *name, char *value, size_t *len); +error_t ext2_set_xattr (struct node *np, const char *name, const char *value, size_t len, int flags); error_t ext2_free_xattr_block (struct node *np); #endif -- cgit v1.2.3