OSDN Git Service
(root)
/
android-x86
/
external-alsa-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b729f4f
)
Fix exit status
author
Takashi Iwai
<tiwai@suse.de>
Mon, 31 Jan 2005 13:52:09 +0000
(13:52 +0000)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 31 Jan 2005 13:52:09 +0000
(13:52 +0000)
Return the exit status 0 after -h option.
When invalid options are given, it should return exit code 1.
amixer/amixer.c
patch
|
blob
|
history
diff --git
a/amixer/amixer.c
b/amixer/amixer.c
index
57912a3
..
97fe5d5
100644
(file)
--- a/
amixer/amixer.c
+++ b/
amixer/amixer.c
@@
-1469,8
+1469,8
@@
int main(int argc, char *argv[])
switch (c) {
case 'h':
case HELPID_HELP:
-
morehelp++
;
-
break
;
+
help()
;
+
return 0
;
case 'c':
case HELPID_CARD:
{
@@
-1512,7
+1512,7
@@
int main(int argc, char *argv[])
}
if (morehelp) {
help();
- return
0
;
+ return
1
;
}
if (argc - optind <= 0) {
return selems(LEVEL_BASIC | level) ? 1 : 0;