start using prefixcmp()

LOC reduction and less noise makes things easier for
tired old folks to follow.
This commit is contained in:
Eric Wong
2008-09-23 20:48:12 +02:00
committed by Max Kellermann
parent f5df13f853
commit 27fad52c6b
7 changed files with 24 additions and 52 deletions

View File

@@ -152,7 +152,7 @@ static void parseOptions(int argc, char **argv, Options * options)
if (argc > 1) {
int i = 1;
while (i < argc) {
if (strncmp(argv[i], "--", 2) == 0) {
if (!prefixcmp(argv[i], "--")) {
if (strcmp(argv[i], "--help") == 0) {
usage(argv);
exit(EXIT_SUCCESS);