From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh-workers@zsh.org (Zsh hackers list)
Subject: PATCH: silence compiler
Date: Fri, 06 Nov 2009 21:18:58 +0000 [thread overview]
Message-ID: <3378.1257542338@pws-pc> (raw)
Index: Src/Modules/attr.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/attr.c,v
retrieving revision 1.5
diff -u -r1.5 attr.c
--- Src/Modules/attr.c 5 Nov 2009 09:44:32 -0000 1.5
+++ Src/Modules/attr.c 6 Nov 2009 21:18:29 -0000
@@ -42,7 +42,7 @@
switch (symlink) {
case 0:
return getxattr(path, name, value, size);
- case 1:
+ default:
return lgetxattr(path, name, value, size);
}
#endif
@@ -57,7 +57,7 @@
switch (symlink) {
case 0:
return listxattr(path, list, size);
- case 1:
+ default:
return llistxattr(path, list, size);
}
#endif
@@ -73,7 +73,7 @@
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 @@
switch (symlink) {
case 0:
return removexattr(path, name);
- case 1:
+ default:
return lremovexattr(path, name);
}
#endif
--
Peter Stephenson <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
next reply other threads:[~2009-11-06 21:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-06 21:18 Peter Stephenson [this message]
2009-11-07 19:42 ` Stephane Chazelas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3378.1257542338@pws-pc \
--to=p.w.stephenson@ntlworld.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).