summaryrefslogtreecommitdiff
path: root/lib/rpmchecksig.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-04-29 01:05:43 +0000
committerjbj <devnull@localhost>2001-04-29 01:05:43 +0000
commit3b5820c4205e440d9aad5c5d626721ee30b12292 (patch)
treeb1f0a694903aef1dd937539e1b06c8b0947fb67c /lib/rpmchecksig.c
parent6a0524ed57548de92daa4b6cf8ee9d2ab39d7a42 (diff)
downloadlibrpm-tizen-3b5820c4205e440d9aad5c5d626721ee30b12292.tar.gz
librpm-tizen-3b5820c4205e440d9aad5c5d626721ee30b12292.tar.bz2
librpm-tizen-3b5820c4205e440d9aad5c5d626721ee30b12292.zip
- 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
Diffstat (limited to 'lib/rpmchecksig.c')
-rw-r--r--lib/rpmchecksig.c9
1 files changed, 4 insertions, 5 deletions
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);
}
}