#include "debug.h"
-int _hdr_debug = 0;
-
/** \ingroup header
*/
const unsigned char rpm_header_magic[8] = {
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;
}
extern int _fsm_debug;
-extern int _hdr_debug;
-
extern int _print_pkts;
extern int _psm_debug;
{ "fsmdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_fsm_debug, -1,
N_("debug payload file state machine"), NULL},
- { "hdrdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_hdr_debug, -1,
- NULL, NULL},
{ "prtpkts", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_print_pkts, -1,
NULL, NULL},
{ "rpmfcdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmfc_debug, -1,