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/query.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/query.c')
-rw-r--r-- | lib/query.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/lib/query.c b/lib/query.c index 3356571fd..20536ce5c 100644 --- a/lib/query.c +++ b/lib/query.c @@ -543,10 +543,8 @@ int showMatches(QVA_t qva, rpmTransactionSet ts) while ((h = rpmdbNextIterator(qva->qva_mi)) != NULL) { int rc; - /*@-nullpass@*/ if ((rc = qva->qva_showPackage(qva, ts, h)) != 0) ec = rc; - /*@=nullpass@*/ } qva->qva_mi = rpmdbFreeIterator(qva->qva_mi); return ec; @@ -571,6 +569,7 @@ int rpmQueryVerify(QVA_t qva, rpmTransactionSet ts, const char * arg) int res = 0; Header h; int rc; + int xx; if (qva->qva_showPackage == NULL) return 1; @@ -605,7 +604,7 @@ restart: } ts->verify_legacy = 1; - /*@-mustmod@*/ /* LCL: something fishy here, was segfault */ + /*@=mustmod@*/ /* LCL: something fishy here, was segfault */ rpmrc = rpmReadPackageFile(ts, fd, fileURL, &h); /*@=mustmod@*/ ts->verify_legacy = 0; @@ -683,7 +682,7 @@ restart: int anyarch = 1; int force = 1; - /*@-mods@*/ + /*@-mods@*/ /* FIX: make spec abstract */ rc = parseSpecVec(&spec, arg, "/", buildRoot, recursing, passPhrase, cookie, anyarch, force); /*@=mods@*/ @@ -702,11 +701,8 @@ restart: break; } - for (pkg = spec->packages; pkg != NULL; pkg = pkg->next) { - /*@-noeffectuncon@*/ /* FIX: check rc */ - (void) qva->qva_showPackage(qva, ts, pkg->header); - /*@=noeffectuncon@*/ - } + for (pkg = spec->packages; pkg != NULL; pkg = pkg->next) + xx = qva->qva_showPackage(qva, ts, pkg->header); spec = freeSpecVec(spec); } break; @@ -782,9 +778,7 @@ restart: if (*s == '\0') { char fnbuf[PATH_MAX]; - /*@-unrecog -moduncon @*/ fn = realpath(arg, fnbuf); - /*@=unrecog =moduncon @*/; if (fn) fn = xstrdup(fn); else |