From bc7a864c4e8db97d0f6a8c1e491e105208052440 Mon Sep 17 00:00:00 2001 From: Tim Shimmin Date: Fri, 26 Oct 2007 16:07:24 +0000 Subject: Fix compilation warning. unsigned int -> int Merge of master-melb:xfs-cmds:29967a by kenmcd. Fix compilation warning. unsigned int -> int --- doc/CHANGES | 3 +++ libattr/libattr.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/CHANGES b/doc/CHANGES index 8dcdc59..a2a612a 100644 --- a/doc/CHANGES +++ b/doc/CHANGES @@ -1,3 +1,6 @@ +attr-2.4.40 + - Address compilation warning about signedness in libattr.c + attr-2.4.39 (11 September 2007) - Fix symlink handling with getfattr, thanks to Utako Usaka. diff --git a/libattr/libattr.c b/libattr/libattr.c index 969c9f0..a77dd84 100644 --- a/libattr/libattr.c +++ b/libattr/libattr.c @@ -271,7 +271,7 @@ attr_list(const char *path, char *buffer, const int buffersize, int flags, int length, vlength, count = 0; char lbuf[MAXLISTLEN]; char name[MAXNAMELEN+16]; - unsigned int start_offset, end_offset; + int start_offset, end_offset; if (buffersize < sizeof(attrlist_t)) { errno = EINVAL; @@ -317,7 +317,7 @@ attr_listf(int fd, char *buffer, const int buffersize, int flags, int length, vlength, count = 0; char lbuf[MAXLISTLEN]; char name[MAXNAMELEN+16]; - unsigned int start_offset, end_offset; + int start_offset, end_offset; if (buffersize < sizeof(attrlist_t)) { errno = EINVAL; -- cgit v1.2.3