aboutsummaryrefslogtreecommitdiff
path: root/quse.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-12-03 00:16:04 +0000
committerMike Frysinger <vapier@gentoo.org>2005-12-03 00:16:04 +0000
commitdeca067278729dcbb830293906a069367007727d (patch)
tree86a0c70d41902d71bd2a4769934791c9c7e13e31 /quse.c
parentNow qgrep -Hc works and the output is the same as from grep. (diff)
downloadportage-utils-deca067278729dcbb830293906a069367007727d.tar.gz
portage-utils-deca067278729dcbb830293906a069367007727d.tar.bz2
portage-utils-deca067278729dcbb830293906a069367007727d.zip
define a new ARR_SIZE macro and then use it in quse
Diffstat (limited to 'quse.c')
-rw-r--r--quse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/quse.c b/quse.c
index ddd3ebf5..775d51de 100644
--- a/quse.c
+++ b/quse.c
@@ -1,7 +1,7 @@
/*
* Copyright 2005 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
- * $Header: /var/cvsroot/gentoo-projects/portage-utils/quse.c,v 1.40 2005/11/24 20:49:58 vapier Exp $
+ * $Header: /var/cvsroot/gentoo-projects/portage-utils/quse.c,v 1.41 2005/12/03 00:16:04 vapier Exp $
*
* Copyright 2005 Ned Ludd - <solar@gentoo.org>
* Copyright 2005 Mike Frysinger - <vapier@gentoo.org>
@@ -31,7 +31,7 @@ static const char *quse_opts_help[] = {
/* "Use your own variable formats. -F NAME=", */
COMMON_OPTS_HELP
};
-static const char quse_rcsid[] = "$Id: quse.c,v 1.40 2005/11/24 20:49:58 vapier Exp $";
+static const char quse_rcsid[] = "$Id: quse.c,v 1.41 2005/12/03 00:16:04 vapier Exp $";
#define quse_usage(ret) usage(ret, QUSE_FLAGS, quse_long_opts, quse_opts_help, APPLET_QUSE)
int quse_describe_flag(int ind, int argc, char **argv);
@@ -73,7 +73,7 @@ static void print_highlighted_use_flags(char *string, int ind, int argc, char **
int quse_describe_flag(int ind, int argc, char **argv)
{
-#define NUM_SEARCH_FILES (sizeof(search_files) / sizeof(*search_files))
+#define NUM_SEARCH_FILES ARR_SIZE(search_files)
char buf[BUFSIZE], *p;
int i, f;
size_t s;