From: Dan Winship Date: Tue, 11 Mar 2008 19:45:53 +0000 (-0400) Subject: fix the types of fields in razor_property for easier debugging X-Git-Tag: 0.1~199 X-Git-Url: http://project.juiblex.co.uk/git/?a=commitdiff_plain;h=4180200db11e443cb291df4e7a09d0d016f1f502;p=razor2.git%2F.git fix the types of fields in razor_property for easier debugging also fix a case in razor_transaction_describe --- 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");