summaryrefslogtreecommitdiff
path: root/lib/rpmps.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-03-22 12:54:44 +0200
committerPanu Matilainen <pmatilai@redhat.com>2010-03-22 12:54:44 +0200
commit9672e12a22a7942105804c974cbb62332c33814f (patch)
treea334bf9e9f528f201d6663deb6826f3cc941822e /lib/rpmps.c
parentc586c9955cb79a98345d44138904f3ee009d9314 (diff)
downloadrpm-9672e12a22a7942105804c974cbb62332c33814f.tar.gz
Lose the useless rpmps refcounting debug junk
- get the debug messages out of API, this is what should've been in commit dbdbe8010cd944f026a5a4e5d071eb31d29d81c4
Diffstat (limited to 'lib/rpmps.c')
-rw-r--r--lib/rpmps.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/rpmps.c b/lib/rpmps.c
index 9796d71a0..c19c4901f 100644
--- a/lib/rpmps.c
+++ b/lib/rpmps.c
@@ -40,9 +40,7 @@ struct rpmpsi_s {
};
-int _rpmps_debug = 0;
-
-rpmps rpmpsUnlink(rpmps ps, const char * msg)
+rpmps rpmpsUnlink(rpmps ps)
{
if (ps) {
ps->nrefs--;
@@ -50,7 +48,7 @@ rpmps rpmpsUnlink(rpmps ps, const char * msg)
return NULL;
}
-rpmps rpmpsLink(rpmps ps, const char * msg)
+rpmps rpmpsLink(rpmps ps)
{
if (ps) {
ps->nrefs++;
@@ -71,7 +69,7 @@ rpmpsi rpmpsInitIterator(rpmps ps)
rpmpsi psi = NULL;
if (ps != NULL) {
psi = xcalloc(1, sizeof(*psi));
- psi->ps = rpmpsLink(ps, RPMDBG_M("rpmpsInitIterator"));
+ psi->ps = rpmpsLink(ps);
psi->ix = -1;
}
return psi;
@@ -80,7 +78,7 @@ rpmpsi rpmpsInitIterator(rpmps ps)
rpmpsi rpmpsFreeIterator(rpmpsi psi)
{
if (psi != NULL) {
- rpmpsUnlink(psi->ps, RPMDBG_M("rpmpsFreeIterator"));
+ rpmpsUnlink(psi->ps);
free(psi);
psi = NULL;
}
@@ -113,14 +111,14 @@ rpmProblem rpmpsGetProblem(rpmpsi psi)
rpmps rpmpsCreate(void)
{
rpmps ps = xcalloc(1, sizeof(*ps));
- return rpmpsLink(ps, RPMDBG_M("rpmpsCreate"));
+ return rpmpsLink(ps);
}
rpmps rpmpsFree(rpmps ps)
{
if (ps == NULL) return NULL;
if (ps->nrefs > 1) {
- return rpmpsUnlink(ps, RPMDBG_M("rpmpsFree"));
+ return rpmpsUnlink(ps);
}
if (ps->probs) {