aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-24 23:35:08 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-24 23:35:08 +0000
commit9a9be186c79235b176fbc5a2afc0f6ecfaa202d0 (patch)
treeada75dc8f9ef67d0b257a3613c3295172afdd276 /qatom.c
parent- lets use a save and restore method for handling stderr so we can reopen the... (diff)
downloadportage-utils-9a9be186c79235b176fbc5a2afc0f6ecfaa202d0.tar.gz
portage-utils-9a9be186c79235b176fbc5a2afc0f6ecfaa202d0.tar.bz2
portage-utils-9a9be186c79235b176fbc5a2afc0f6ecfaa202d0.zip
touchup how we declare/include applets so that many steps can be automated
Diffstat (limited to 'qatom.c')
-rw-r--r--qatom.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/qatom.c b/qatom.c
index 8f56126..940562c 100644
--- a/qatom.c
+++ b/qatom.c
@@ -1,12 +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/qatom.c,v 1.2 2006/01/11 01:37:07 vapier Exp $
+ * $Header: /var/cvsroot/gentoo-projects/portage-utils/qatom.c,v 1.3 2006/01/24 23:35:08 vapier Exp $
*
* Copyright 2005-2006 Ned Ludd - <solar@gentoo.org>
* Copyright 2005-2006 Mike Frysinger - <vapier@gentoo.org>
*/
+#ifndef OMIT_QATOM
+
#define QATOM_FLAGS "c" COMMON_FLAGS
static struct option const qatom_long_opts[] = {
{"compare", no_argument, NULL, 'c'},
@@ -17,7 +19,7 @@ static const char *qatom_opts_help[] = {
COMMON_OPTS_HELP
};
-static const char qatom_rcsid[] = "$Id: qatom.c,v 1.2 2006/01/11 01:37:07 vapier Exp $";
+static const char qatom_rcsid[] = "$Id: qatom.c,v 1.3 2006/01/24 23:35:08 vapier Exp $";
#define qatom_usage(ret) usage(ret, QATOM_FLAGS, qatom_long_opts, qatom_opts_help, lookup_applet_idx("qatom"))
int qatom_main(int argc, char **argv)
@@ -65,3 +67,5 @@ int qatom_main(int argc, char **argv)
return EXIT_SUCCESS;
}
+
+#endif