diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-03-26 10:41:10 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-03-26 10:43:40 +0200 |
commit | 1102e35b20ebebb897785266bd6ba6b8a7aab323 (patch) | |
tree | 6a90b004c41440f6fc2d61a54f470f1d0f5fafa6 /lib/rpmps.c | |
parent | 12392d93e2006ac63f918a154f29283a14fb98cf (diff) | |
download | rpm-1102e35b20ebebb897785266bd6ba6b8a7aab323.tar.gz rpm-1102e35b20ebebb897785266bd6ba6b8a7aab323.tar.bz2 rpm-1102e35b20ebebb897785266bd6ba6b8a7aab323.zip |
Push problem creation argument sanitation to the level below
- rpmpsAppend() and rpmProblemCreate() have no use for fn/dn either,
its just stored in one string internally
- this is kinda unnecessary API break but these aren't used outside
rpm so it doesn't make much difference
Diffstat (limited to 'lib/rpmps.c')
-rw-r--r-- | lib/rpmps.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/rpmps.c b/lib/rpmps.c index 6089e3898..c353dcdc4 100644 --- a/lib/rpmps.c +++ b/lib/rpmps.c @@ -140,14 +140,13 @@ void rpmpsAppendProblem(rpmps ps, rpmProblem prob) } void rpmpsAppend(rpmps ps, rpmProblemType type, - const char * pkgNEVR, fnpyKey key, - const char * dn, const char * bn, - const char * altNEVR, uint64_t number) + const char * pkgNEVR, fnpyKey key, const char * altNEVR, + const char * str, uint64_t number) { rpmProblem p = NULL; if (ps == NULL) return; - p = rpmProblemCreate(type, pkgNEVR, key, dn, bn, altNEVR, number); + p = rpmProblemCreate(type, pkgNEVR, key, altNEVR, str, number); rpmpsAppendProblem(ps, p); rpmProblemFree(p); } |