diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-03-26 13:36:36 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-03-26 13:36:36 +0200 |
commit | e9aae5200d14ff33b635526c6353deea8231f527 (patch) | |
tree | 508737f94ef3bc7618776f8f8d694cb9f2662fa1 /lib/rpmte.c | |
parent | 39ded460e62b38efa26ec665d48e661f7d425a80 (diff) | |
download | rpm-e9aae5200d14ff33b635526c6353deea8231f527.tar.gz rpm-e9aae5200d14ff33b635526c6353deea8231f527.tar.bz2 rpm-e9aae5200d14ff33b635526c6353deea8231f527.zip |
Avoid unnecessary argument now that problem pkgNEVRA is always te NEVRA
Diffstat (limited to 'lib/rpmte.c')
-rw-r--r-- | lib/rpmte.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/rpmte.c b/lib/rpmte.c index 43d42acfb..2b230092f 100644 --- a/lib/rpmte.c +++ b/lib/rpmte.c @@ -718,11 +718,11 @@ void rpmteCleanProblems(rpmte te) } static void appendProblem(rpmte te, rpmProblemType type, - const char * pkgNEVR, fnpyKey key, const char * altNEVR, + fnpyKey key, const char * altNEVR, const char * str, uint64_t number) { rpmProblem o; - rpmProblem p = rpmProblemCreate(type, pkgNEVR, key, altNEVR, str, number); + rpmProblem p = rpmProblemCreate(type, te->NEVRA, key, altNEVR, str, number); rpmpsi psi = rpmpsInitIterator(te->probs); /* Only add new, unique problems to the set */ @@ -744,8 +744,7 @@ void rpmteAddProblem(rpmte te, rpmProblemType type, const char *altNEVR, const char *str, uint64_t number) { if (te != NULL) { - appendProblem(te, type, rpmteNEVRA(te), rpmteKey(te), - altNEVR, str, number); + appendProblem(te, type, rpmteKey(te), altNEVR, str, number); } } @@ -764,7 +763,7 @@ void rpmteAddDepProblem(rpmte te, const char * altNEVR, rpmds ds, case 'R': type = RPMPROB_REQUIRES; break; } - appendProblem(te, type, rpmteNEVRA(te), key, altNEVR, DNEVR+2, adding); + appendProblem(te, type, key, altNEVR, DNEVR+2, adding); } } |