summaryrefslogtreecommitdiff
path: root/grep-dctrl/grep-dctrl.c
diff options
context:
space:
mode:
authorAntti-Juhani Kaijanaho <ajk@debian.org>2011-10-19 21:48:06 +0300
committerAntti-Juhani Kaijanaho <ajk@debian.org>2011-10-19 21:48:06 +0300
commit56a84f637482bcf31f489372b98fa17da4a3c565 (patch)
tree0f2ade0612b4448d7a56f58cfa37fc32685ba887 /grep-dctrl/grep-dctrl.c
parentcb69847d307ccf15ef7505129d602046ffe487a8 (diff)
downloaddctrl-tools-56a84f637482bcf31f489372b98fa17da4a3c565.tar.gz
Move atom into its own lib module.
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
Diffstat (limited to 'grep-dctrl/grep-dctrl.c')
-rw-r--r--grep-dctrl/grep-dctrl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/grep-dctrl/grep-dctrl.c b/grep-dctrl/grep-dctrl.c
index f549e24..ca994fc 100644
--- a/grep-dctrl/grep-dctrl.c
+++ b/grep-dctrl/grep-dctrl.c
@@ -29,6 +29,7 @@
#include <sys/stat.h>
#include <sys/wait.h>
#include <unistd.h>
+#include "atom.h"
#include "fnutil.h"
#include "fsaf.h"
#include "i18n.h"
@@ -261,11 +262,11 @@ static void finish_atom(struct arguments * args)
for (size_t i = 0; i < args->num_search_fields; i++) {
if (i > 0) atom = clone_atom(args);
atom->field_name = args->search_fields[i];
- predicate_finish_atom(&args->p);
+ atom_finish(atom);
}
// If there are no fields, we have not yet run this...
// ... but it must be done (especially with -r/-e atoms)
- if (args->num_search_fields == 0) predicate_finish_atom(&args->p);
+ if (args->num_search_fields == 0) atom_finish(atom);
args->num_search_fields = 0;
}