summaryrefslogtreecommitdiff
path: root/rpm.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2000-12-12 20:03:45 +0000
committerjbj <devnull@localhost>2000-12-12 20:03:45 +0000
commitdb32ab6bea1b635129820d6b628e6156c61b5385 (patch)
tree055f7ee7d5e06ba0b3e858b82f639310b892503d /rpm.c
parent2e9d2616969433851a1c883c900d6ea5acde67b7 (diff)
downloadrpm-db32ab6bea1b635129820d6b628e6156c61b5385.tar.gz
Sync with rpm-4_0 branch.
CVS patchset: 4338 CVS date: 2000/12/12 20:03:45
Diffstat (limited to 'rpm.c')
-rwxr-xr-xrpm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/rpm.c b/rpm.c
index ec1ef0ce0..c63b9e168 100755
--- a/rpm.c
+++ b/rpm.c
@@ -6,6 +6,7 @@
#include "build.h"
#include "install.h"
#include "signature.h"
+#include "debug.h"
#define GETOPT_ADDSIGN 1005
#define GETOPT_RESIGN 1006
@@ -655,7 +656,7 @@ int main(int argc, const char ** argv)
poptResetContext(optCon);
- if (qva->qva_queryFormat) xfree(qva->qva_queryFormat);
+ if (qva->qva_queryFormat) free((void *)qva->qva_queryFormat);
memset(qva, 0, sizeof(*qva));
qva->qva_source = RPMQV_PACKAGE;
qva->qva_mode = ' ';
@@ -748,7 +749,7 @@ int main(int argc, const char ** argv)
case GETOPT_EVALMACRO:
{ const char *val = rpmExpand(optArg, NULL);
fprintf(stdout, "%s\n", val);
- xfree(val);
+ free((void *)val);
noUsageMsg = 1;
} break;
@@ -1197,7 +1198,7 @@ int main(int argc, const char ** argv)
freeNames();
freeFilesystems();
urlFreeCache();
- if (qva->qva_queryFormat) xfree(qva->qva_queryFormat);
+ if (qva->qva_queryFormat) free((void *)qva->qva_queryFormat);
#if HAVE_MCHECK_H && HAVE_MTRACE
muntrace(); /* Trace malloc only if MALLOC_TRACE=mtrace-output-file. */