diff options
author | jbj <devnull@localhost> | 2001-11-12 22:54:39 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2001-11-12 22:54:39 +0000 |
commit | 49f98b8daed5ea05f585495d2df856a56b0567fa (patch) | |
tree | 237e024b6b42cb41fd9e73207e458884ac8d795f /lib/verify.c | |
parent | 21a35690b3d6e79206ae62724cb8fbd538be57cb (diff) | |
download | librpm-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.c | 16 |
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 */ |