summaryrefslogtreecommitdiff
path: root/lib/header.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-04-21 13:00:43 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-04-21 13:00:43 +0300
commitfb772e2cad8ed79fb4d1b971bd10842381102ea7 (patch)
tree480888d462eeda8ec8d0bbc71f4b3faf8debc60c /lib/header.c
parent8cc740c43f28b43cd34894d7c0d47b48ce5f4f91 (diff)
downloadlibrpm-tizen-fb772e2cad8ed79fb4d1b971bd10842381102ea7.tar.gz
librpm-tizen-fb772e2cad8ed79fb4d1b971bd10842381102ea7.tar.bz2
librpm-tizen-fb772e2cad8ed79fb4d1b971bd10842381102ea7.zip
Lose the useless header refcounting debug junk
- one more of these still left behind.. pff
Diffstat (limited to 'lib/header.c')
-rw-r--r--lib/header.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/lib/header.c b/lib/header.c
index 1aa451b80..f4578de74 100644
--- a/lib/header.c
+++ b/lib/header.c
@@ -16,8 +16,6 @@
#include "debug.h"
-int _hdr_debug = 0;
-
/** \ingroup header
*/
const unsigned char rpm_header_magic[8] = {
@@ -123,21 +121,15 @@ static uint64_t htonll( uint64_t n ) {
Header headerLink(Header h)
{
- if (h == NULL) return NULL;
-
- h->nrefs++;
-if (_hdr_debug)
-fprintf(stderr, "--> h %p ++ %d at %s:%u\n", h, h->nrefs, __FILE__, __LINE__);
-
+ if (h != NULL)
+ h->nrefs++;
return h;
}
Header headerUnlink(Header h)
{
- if (h == NULL) return NULL;
-if (_hdr_debug)
-fprintf(stderr, "--> h %p -- %d at %s:%u\n", h, h->nrefs, __FILE__, __LINE__);
- h->nrefs--;
+ if (h != NULL)
+ h->nrefs--;
return NULL;
}