aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qgrep.c')
-rw-r--r--qgrep.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/qgrep.c b/qgrep.c
index a3c01c0..5166c75 100644
--- a/qgrep.c
+++ b/qgrep.c
@@ -1,14 +1,14 @@
/*
* Copyright 2005-2006 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
- * $Header: /var/cvsroot/gentoo-projects/portage-utils/qgrep.c,v 1.10 2006/01/07 16:25:28 solar Exp $
+ * $Header: /var/cvsroot/gentoo-projects/portage-utils/qgrep.c,v 1.11 2006/01/24 23:35:08 vapier Exp $
*
* Copyright 2005-2006 Ned Ludd - <solar@gentoo.org>
* Copyright 2005-2006 Mike Frysinger - <vapier@gentoo.org>
* Copyright 2005 Petteri R├Ąty - <betelgeuse@gentoo.org>
*/
-#ifdef APPLET_qgrep
+#ifndef OMIT_QGREP
#define QGREP_FLAGS "IiHce" COMMON_FLAGS
static struct option const qgrep_long_opts[] = {
@@ -27,7 +27,7 @@ static const char *qgrep_opts_help[] = {
"Use PATTERN as a regular expression",
COMMON_OPTS_HELP
};
-static const char qgrep_rcsid[] = "$Id: qgrep.c,v 1.10 2006/01/07 16:25:28 solar Exp $";
+static const char qgrep_rcsid[] = "$Id: qgrep.c,v 1.11 2006/01/24 23:35:08 vapier Exp $";
#define qgrep_usage(ret) usage(ret, QGREP_FLAGS, qgrep_long_opts, qgrep_opts_help, lookup_applet_idx("qgrep"))
int qgrep_main(int argc, char **argv)
@@ -120,10 +120,4 @@ int qgrep_main(int argc, char **argv)
return EXIT_SUCCESS;
}
-#else /* ! APPLET_qrep */
-int qgrep_main(int argc, char **argv) {
- errf("%s", err_noapplet);
-}
-#endif /* APPLET_qgrep */
-
-
+#endif