projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c6c02f
)
Print a usage message when we get an invalid option
syslinux-3.20-pre20
author
H. Peter Anvin
<hpa@zytor.com>
Fri, 25 Aug 2006 04:17:06 +0000
(21:17 -0700)
committer
H. Peter Anvin
<hpa@zytor.com>
Fri, 25 Aug 2006 04:17:06 +0000
(21:17 -0700)
extlinux/extlinux.c
patch
|
blob
|
history
diff --git
a/extlinux/extlinux.c
b/extlinux/extlinux.c
index
be0e296
..
176ed2f
100644
(file)
--- a/
extlinux/extlinux.c
+++ b/
extlinux/extlinux.c
@@
-796,8
+796,7
@@
main(int argc, char *argv[])
fputs("extlinux " VERSION "\n", stderr);
exit(0);
default:
- fprintf(stderr, "%s: Unknown option: %c\n", program, optopt);
- exit(EX_USAGE);
+ usage(EX_USAGE);
}
}