diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-12-21 08:17:05 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-12-21 09:22:26 +0200 |
commit | 42127383e2353920ee439cc65c716c84a36274dd (patch) | |
tree | 181ec261bda20c4b542f480d4cb750e92e11f505 /lib/order.c | |
parent | 88d56552d12c487bff85262bd0d430270619c9e2 (diff) | |
download | librpm-tizen-42127383e2353920ee439cc65c716c84a36274dd.tar.gz librpm-tizen-42127383e2353920ee439cc65c716c84a36274dd.tar.bz2 librpm-tizen-42127383e2353920ee439cc65c716c84a36274dd.zip |
Avoid a few unnecessary rpmteTSI() calls in addRelation()
Diffstat (limited to 'lib/order.c')
-rw-r--r-- | lib/order.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/order.c b/lib/order.c index 969a8ee28..3dda5df0d 100644 --- a/lib/order.c +++ b/lib/order.c @@ -211,7 +211,7 @@ static inline int addRelation(rpmts ts, /* Record next "q <- p" relation (i.e. "p" requires "q"). */ if (p != q) { /* bump p predecessor count */ - rpmteTSI(p)->tsi_count++; + tsi_p->tsi_count++; } /* Save max. depth in dependency tree */ @@ -222,19 +222,19 @@ static inline int addRelation(rpmts ts, rel->rel_suc = p; rel->rel_flags = flags; - rel->rel_next = rpmteTSI(q)->tsi_relations; - rpmteTSI(q)->tsi_relations = rel; + rel->rel_next = tsi_q->tsi_relations; + tsi_q->tsi_relations = rel; if (p != q) { /* bump q successor count */ - rpmteTSI(q)->tsi_qcnt++; + tsi_q->tsi_qcnt++; } rel = xcalloc(1, sizeof(*rel)); rel->rel_suc = q; rel->rel_flags = flags; - rel->rel_next = rpmteTSI(p)->tsi_forward_relations; - rpmteTSI(p)->tsi_forward_relations = rel; + rel->rel_next = tsi_p->tsi_forward_relations; + tsi_p->tsi_forward_relations = rel; return 0; } |