diff options
author | Justus Winter <justus@gnupg.org> | 2016-10-03 13:26:02 +0200 |
---|---|---|
committer | Justus Winter <justus@gnupg.org> | 2016-11-10 15:31:02 +0100 |
commit | c37320e7570232b6fd4a6d3486cd898deebb0920 (patch) | |
tree | cecab886d87952f8935ae8f465ca0dbbd2c0b2a6 /ext2fs/ext2fs.h | |
parent | 01498c3f9c2db0c33a54b2c2ef2170eb33e6917c (diff) |
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.
Diffstat (limited to 'ext2fs/ext2fs.h')
-rw-r--r-- | ext2fs/ext2fs.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 |