From 4180200db11e443cb291df4e7a09d0d016f1f502 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 11 Mar 2008 15:45:53 -0400 Subject: [PATCH] fix the types of fields in razor_property for easier debugging also fix a case in razor_transaction_describe --- razor.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/razor.c b/razor.c index 2117b53..2682d85 100644 --- a/razor.c +++ b/razor.c @@ -52,8 +52,8 @@ struct razor_package { struct razor_property { uint name : 24; uint flags : 6; - uint type : 2; - uint32_t relation; + enum razor_property_type type : 2; + enum razor_version_relation relation : 32; uint32_t version; struct list_head packages; }; @@ -2683,7 +2683,7 @@ razor_transaction_describe(struct razor_transaction *trans) if (p->dep_package) { printf(" which required %s", p->dep_package); - if (strcmp(p->dep_property, p->name) != 0) + if (strcmp(p->dep_property, p->dep_package) != 0) printf(" for %s", p->dep_property); } printf("\n"); -- 1.7.1