diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2009-11-06 22:38:47 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2009-11-06 22:38:47 +0000 |
commit | f30af94885279cae22ea0c60f74c5444490a3be9 (patch) | |
tree | 32a2479657bc37030fb3833d1c1546dc0fcd8d45 /Src/Modules/attr.c | |
parent | d6c4e4c6922ecf2dd57b66729c7cbf593d0db6bd (diff) | |
download | zsh-f30af94885279cae22ea0c60f74c5444490a3be9.tar.gz zsh-f30af94885279cae22ea0c60f74c5444490a3be9.tar.xz zsh-f30af94885279cae22ea0c60f74c5444490a3be9.zip |
27357: fix compiler warnings in attr module
27358: fix error if $0 altered in sourced file
Diffstat (limited to 'Src/Modules/attr.c')
-rw-r--r-- | Src/Modules/attr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Src/Modules/attr.c b/Src/Modules/attr.c index 72348623a..2cdb522c1 100644 --- a/Src/Modules/attr.c +++ b/Src/Modules/attr.c @@ -42,7 +42,7 @@ xgetxattr(const char *path, const char *name, void *value, size_t size, int syml switch (symlink) { case 0: return getxattr(path, name, value, size); - case 1: + default: return lgetxattr(path, name, value, size); } #endif @@ -57,7 +57,7 @@ xlistxattr(const char *path, char *list, size_t size, int symlink) switch (symlink) { case 0: return listxattr(path, list, size); - case 1: + default: return llistxattr(path, list, size); } #endif @@ -73,7 +73,7 @@ xsetxattr(const char *path, const char *name, const void *value, switch (symlink) { case 0: return setxattr(path, name, value, size, flags); - case 1: + default: return lsetxattr(path, name, value, size, flags); } #endif @@ -88,7 +88,7 @@ xremovexattr(const char *path, const char *name, int symlink) switch (symlink) { case 0: return removexattr(path, name); - case 1: + default: return lremovexattr(path, name); } #endif |