diff options
author | wiz <wiz@pkgsrc.org> | 2004-10-20 23:56:55 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2004-10-20 23:56:55 +0000 |
commit | 18308968ad55725163c31a71e2db086168f77414 (patch) | |
tree | 74a6bdeec22377170cf0db899064f6690f8db6b0 /pkgtools/pkgfind | |
parent | 8867518265a9147c1db36bcc3f34f8f660bbd9d0 (diff) | |
download | pkgsrc-18308968ad55725163c31a71e2db086168f77414.tar.gz |
Consistency in comments; sort options; fix typo.
Diffstat (limited to 'pkgtools/pkgfind')
-rw-r--r-- | pkgtools/pkgfind/files/pkgfind.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/pkgtools/pkgfind/files/pkgfind.c b/pkgtools/pkgfind/files/pkgfind.c index fb81531d765..e63ee57e8f4 100644 --- a/pkgtools/pkgfind/files/pkgfind.c +++ b/pkgtools/pkgfind/files/pkgfind.c @@ -28,9 +28,9 @@ /* * pancake@phreaker.net ** changes 2004/09/14 * - * '-i' ignore case senseitive + * -i ignore case * -x exact match - * -q quite (drop COMMENT on search) + * -q quiet (drop COMMENT on search) * -C comments * * [TODO] @@ -64,7 +64,7 @@ static int checkskip(const struct dirent *); static int subcasestr(const char *, const char *); static void usage(void); -static int quite = 0; +static int quiet = 0; static int cases = 0; static int exact = 0; static int comme = 0; @@ -75,19 +75,19 @@ main(int argc, char *argv[]) const char *path; int ch; - while ((ch = getopt(argc, argv, "xcqC")) != -1) { + while ((ch = getopt(argc, argv, "Ccqx")) != -1) { switch (ch) { - case 'x': /* exact match */ - exact = 1; + case 'C': /* comment search */ + comme = 1; break; case 'c': /* case sensitive */ cases = 1; break; - case 'q': /* quite */ - quite = 1; + case 'q': /* quiet */ + quiet = 1; break; - case 'C': /* comment search */ - comme = 1; + case 'x': /* exact match */ + exact = 1; break; default: usage(); @@ -166,7 +166,7 @@ showpkg(const char *path, const char *cat, const char *pkg) { char *mk, *comment = NULL; - if (!quite) { + if (!quiet) { (void)asprintf(&mk, "%s/%s/%s/Makefile", path, cat, pkg); if (mk == NULL) err(EXIT_FAILURE, "asprintf"); @@ -262,6 +262,6 @@ usage(void) { extern char *__progname; - (void)fprintf(stderr, "Usage: %s [-cqxC] keyword [...]\n", __progname); + (void)fprintf(stderr, "Usage: %s [-Ccqx] keyword [...]\n", __progname); exit(EXIT_FAILURE); } |