summaryrefslogtreecommitdiff
path: root/lib/rpmps.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-12-15 11:47:47 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-12-15 11:47:47 +0200
commitb4588a1202783dd9bbee594aa5aea022ccdd3fc9 (patch)
tree01c212b49497df5241700db4f6cda987b7448df7 /lib/rpmps.c
parent1a0a12cf159a05471be62016a318d0653ae30ff5 (diff)
downloadlibrpm-tizen-b4588a1202783dd9bbee594aa5aea022ccdd3fc9.tar.gz
librpm-tizen-b4588a1202783dd9bbee594aa5aea022ccdd3fc9.tar.bz2
librpm-tizen-b4588a1202783dd9bbee594aa5aea022ccdd3fc9.zip
Remove bogus const from rpmProblemString() return type
- its malloced so it needs to be freed - fix all users to actually free
Diffstat (limited to 'lib/rpmps.c')
-rw-r--r--lib/rpmps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rpmps.c b/lib/rpmps.c
index bb78e51db..68f740542 100644
--- a/lib/rpmps.c
+++ b/lib/rpmps.c
@@ -296,7 +296,7 @@ unsigned long rpmProblemGetLong(const rpmProblem p)
return (p->ulong1);
}
-const char * rpmProblemString(const rpmProblem prob)
+char * rpmProblemString(const rpmProblem prob)
{
const char * pkgNEVR = (prob->pkgNEVR ? prob->pkgNEVR : "?pkgNEVR?");
const char * altNEVR = (prob->altNEVR ? prob->altNEVR : "? ?altNEVR?");