diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-09-23 20:48:12 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-23 20:48:12 +0200 |
commit | 27fad52c6bb1d8803f400a6e95fa5c24396a1c12 (patch) | |
tree | 9b1fadeef43c3193b29344cda223c7b2c754433b /src/main.c | |
parent | f5df13f853cf4c0e529244dd40ab57c78a7d1bc6 (diff) | |
download | mpd-27fad52c6bb1d8803f400a6e95fa5c24396a1c12.tar.gz mpd-27fad52c6bb1d8803f400a6e95fa5c24396a1c12.tar.xz mpd-27fad52c6bb1d8803f400a6e95fa5c24396a1c12.zip |
start using prefixcmp()
LOC reduction and less noise makes things easier for
tired old folks to follow.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 2ca5a56d9..f37fa3328 100644 --- a/src/main.c +++ b/src/main.c @@ -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); |