summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorwiz <wiz>2004-10-20 23:56:55 +0000
committerwiz <wiz>2004-10-20 23:56:55 +0000
commit2fd107b609f9065c1e7aaee6d5a39a198d5364ca (patch)
tree74a6bdeec22377170cf0db899064f6690f8db6b0 /pkgtools
parent2634a8b90b940450f046cf69391bb51e6875e29b (diff)
downloadpkgsrc-2fd107b609f9065c1e7aaee6d5a39a198d5364ca.tar.gz
Consistency in comments; sort options; fix typo.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkgfind/files/pkgfind.c24
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);
}