summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Ippolito <bob@redivi.com>2005-10-08 15:53:27 +0000
committerBob Ippolito <bob@redivi.com>2005-10-08 15:53:27 +0000
commit86d23577c73a4ab54fa3aed4ef8892bfb808d998 (patch)
treee611948d9662f290fd8e777cc126640777aac939
parenta7d1996f15c0df55a4a72c4d6937f4f51624d2ac (diff)
downloadxattr-86d23577c73a4ab54fa3aed4ef8892bfb808d998.tar.gz
fix args
-rw-r--r--Modules/xattr/_xattr.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/Modules/xattr/_xattr.c b/Modules/xattr/_xattr.c
index 888775d..2d900e5 100644
--- a/Modules/xattr/_xattr.c
+++ b/Modules/xattr/_xattr.c
@@ -39,7 +39,7 @@ static ssize_t xattr_setxattr(const char *path, const char *name, void *value, s
}
static ssize_t xattr_removexattr(const char *path, const char *name, int options) {
- if (position != 0 || !(options == 0 || options == XATTR_XATTR_NOFOLLOW)) {
+ if (!(options == 0 || options == XATTR_XATTR_NOFOLLOW)) {
return -1;
}
if (options & XATTR_XATTR_NOFOLLOW) {
@@ -50,14 +50,14 @@ static ssize_t xattr_removexattr(const char *path, const char *name, int options
}
-static ssize_t xattr_listxattr(const char *path, const char *name, int options) {
- if (position != 0 || !(options == 0 || options == XATTR_XATTR_NOFOLLOW)) {
+static ssize_t xattr_listxattr(const char *path, const char *namebuf, size_t size, int options) {
+ if (!(options == 0 || options == XATTR_XATTR_NOFOLLOW)) {
return -1;
}
if (options & XATTR_XATTR_NOFOLLOW) {
- return llistxattr(path, name, value);
+ return llistxattr(path, namebuf, size);
} else {
- return listxattr(path, name, value);
+ return listxattr(path, namebuf, size);
}
}
@@ -94,7 +94,7 @@ static ssize_t xattr_fsetxattr(int fd, const char *name, void *value, ssize_t si
}
static ssize_t xattr_fremovexattr(int fd, const char *name, int options) {
- if (position != 0 || !(options == 0 || options == XATTR_XATTR_NOFOLLOW)) {
+ if (!(options == 0 || options == XATTR_XATTR_NOFOLLOW)) {
return -1;
}
if (options & XATTR_XATTR_NOFOLLOW) {
@@ -105,14 +105,14 @@ static ssize_t xattr_fremovexattr(int fd, const char *name, int options) {
}
-static ssize_t xattr_flistxattr(int fd, const char *name, int options) {
- if (position != 0 || !(options == 0 || options == XATTR_XATTR_NOFOLLOW)) {
+static ssize_t xattr_flistxattr(int fd, const char *namebuf, size_t size, int options) {
+ if (!(options == 0 || options == XATTR_XATTR_NOFOLLOW)) {
return -1;
}
if (options & XATTR_XATTR_NOFOLLOW) {
return -1;
} else {
- return flistxattr(fd, name, value);
+ return flistxattr(fd, namebuf, size);
}
}