summaryrefslogtreecommitdiff
path: root/lib/verify.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-11-12 22:54:39 +0000
committerjbj <devnull@localhost>2001-11-12 22:54:39 +0000
commit49f98b8daed5ea05f585495d2df856a56b0567fa (patch)
tree237e024b6b42cb41fd9e73207e458884ac8d795f /lib/verify.c
parent21a35690b3d6e79206ae62724cb8fbd538be57cb (diff)
downloadlibrpm-tizen-49f98b8daed5ea05f585495d2df856a56b0567fa.tar.gz
librpm-tizen-49f98b8daed5ea05f585495d2df856a56b0567fa.tar.bz2
librpm-tizen-49f98b8daed5ea05f585495d2df856a56b0567fa.zip
transaction.c: lclint cleanups.
CVS patchset: 5178 CVS date: 2001/11/12 22:54:39
Diffstat (limited to 'lib/verify.c')
-rw-r--r--lib/verify.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/lib/verify.c b/lib/verify.c
index b8d737d9e..70df8b62c 100644
--- a/lib/verify.c
+++ b/lib/verify.c
@@ -290,30 +290,20 @@ static int rpmVerifyScript(/*@unused@*/ QVA_t qva, rpmTransactionSet ts,
psm->ts = rpmtsLink(ts, "rpmVerifyScript");
- if (scriptFd != NULL) {
- /*@-type@*/ /* FIX: ??? */
+ if (scriptFd != NULL)
ts->scriptFd = fdLink(scriptFd, "rpmVerifyScript");
- /*@=type@*/
- }
- /*@-type@*/
+
psm->fi = fiNew(ts, NULL, h, RPMTAG_BASENAMES, 1);
- /*@=type@*/
if (psm->fi != NULL) { /* XXX can't happen */
psm->stepName = "verify";
psm->scriptTag = RPMTAG_VERIFYSCRIPT;
psm->progTag = RPMTAG_VERIFYSCRIPTPROG;
rc = psmStage(psm, PSM_SCRIPT);
}
- /*@-type@*/
psm->fi = fiFree(psm->fi, 1);
- /*@=type@*/
- if (scriptFd != NULL) {
- /*@-type@*/ /* FIX: ??? */
+ if (ts->scriptFd != NULL)
ts->scriptFd = fdFree(ts->scriptFd, "rpmVerifyScript");
- /*@=type@*/
- ts->scriptFd = NULL;
- }
rpmtransClean(ts); /* XXX this is sure to cause heartburn */