summaryrefslogtreecommitdiff
path: root/librazor
diff options
context:
space:
mode:
authorJames Bowes <jbowes@redhat.com>2008-06-25 20:53:48 -0400
committerJames Bowes <jbowes@redhat.com>2008-06-25 20:53:48 -0400
commitb7d61478693541470933bcd2cc27534bc540b8a7 (patch)
tree13a28ad4a5cf8e5d1bd1ef2ab1ee50efbd25f12c /librazor
parent174586f2d38a39dbf0a4d8a0acf3190c51c41070 (diff)
Get the test driver compiling and running again (but not passing).
Diffstat (limited to 'librazor')
-rw-r--r--librazor/razor.h2
-rw-r--r--librazor/transaction.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/librazor/razor.h b/librazor/razor.h
index 73da7ed..e5567f2 100644
--- a/librazor/razor.h
+++ b/librazor/razor.h
@@ -20,6 +20,8 @@
#ifndef _RAZOR_H_
#define _RAZOR_H_
+#include <stdint.h>
+
enum razor_repo_file_type {
RAZOR_REPO_FILE_MAIN,
RAZOR_REPO_FILE_DETAILS,
diff --git a/librazor/transaction.c b/librazor/transaction.c
index 3d8bf2f..521d992 100644
--- a/librazor/transaction.c
+++ b/librazor/transaction.c
@@ -789,7 +789,7 @@ razor_transaction_unsatisfied_property(struct razor_transaction *trans,
struct razor_property *p;
prop_iter_init(&pi, &trans->system);
- while (prop_iter_next(&pi, flags, &p)) {
+ while (prop_iter_next(&pi, flags & RAZOR_PROPERTY_TYPE_MASK, &p)) {
if (!(trans->system.properties[p - pi.start] & TRANS_PROPERTY_SATISFIED) &&
p->flags == flags &&
strcmp(&pi.pool[p->name], name) == 0 &&
@@ -799,7 +799,7 @@ razor_transaction_unsatisfied_property(struct razor_transaction *trans,
}
prop_iter_init(&pi, &trans->upstream);
- while (prop_iter_next(&pi, flags, &p)) {
+ while (prop_iter_next(&pi, flags & RAZOR_PROPERTY_TYPE_MASK, &p)) {
if (!(trans->upstream.properties[p - pi.start] & TRANS_PROPERTY_SATISFIED) &&
p->flags == flags &&
strcmp(&pi.pool[p->name], name) == 0 &&