From 3b5820c4205e440d9aad5c5d626721ee30b12292 Mon Sep 17 00:00:00 2001 From: jbj Date: Sun, 29 Apr 2001 01:05:43 +0000 Subject: - globalize _free(3) wrapper in rpmlib.h, consistent usage throughout. - internalize locale insensitive ctype(3) in rpmio.h - boring lclint annotations and fiddles. CVS patchset: 4721 CVS date: 2001/04/29 01:05:43 --- lib/rpmchecksig.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'lib/rpmchecksig.c') diff --git a/lib/rpmchecksig.c b/lib/rpmchecksig.c index cfdee01bf..2a311b5e6 100644 --- a/lib/rpmchecksig.c +++ b/lib/rpmchecksig.c @@ -193,7 +193,7 @@ int rpmReSign(rpmResignFlags add, char *passPhrase, const char **argv) /* Clean up intermediate target */ unlink(sigtarget); - free((void *)sigtarget); sigtarget = NULL; + sigtarget = _free(sigtarget); /* Move final target into place. */ unlink(rpm); @@ -212,8 +212,7 @@ exit: } if (sigtarget) { unlink(sigtarget); - free((void *)sigtarget); - sigtarget = NULL; + sigtarget = _free(sigtarget); } if (tmprpm[0] != '\0') { unlink(tmprpm); @@ -413,7 +412,7 @@ int rpmCheckSig(rpmCheckSigFlags flags, const char **argv) headerFreeIterator(hi); res += res2; unlink(sigtarget); - free((void *)sigtarget); sigtarget = NULL; + sigtarget = _free(sigtarget); if (res2) { if (rpmIsVerbose()) { @@ -449,7 +448,7 @@ int rpmCheckSig(rpmCheckSigFlags flags, const char **argv) if (ofd) manageFile(&ofd, NULL, 0, 0); if (sigtarget) { unlink(sigtarget); - free((void *)sigtarget); sigtarget = NULL; + sigtarget = _free(sigtarget); } } -- cgit v1.2.3