summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Shimmin <tes@sgi.com>2007-10-26 16:07:24 +0000
committerTim Shimmin <tes@sgi.com>2007-10-26 16:07:24 +0000
commitbc7a864c4e8db97d0f6a8c1e491e105208052440 (patch)
tree7a59a460cc9b6840d054050c118c7364fb22132a
parent338d2e92e858f76f54b05ef83ce5e4df8e71d5b8 (diff)
downloadattr-bc7a864c4e8db97d0f6a8c1e491e105208052440.tar.gz
Fix compilation warning. unsigned int -> int
Merge of master-melb:xfs-cmds:29967a by kenmcd. Fix compilation warning. unsigned int -> int
-rw-r--r--doc/CHANGES3
-rw-r--r--libattr/libattr.c4
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;