summaryrefslogtreecommitdiff
path: root/lib/rpmps.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-06-12 14:52:59 +0000
committerjbj <devnull@localhost>2002-06-12 14:52:59 +0000
commit93ae345321b41b7e964fc5f31c95a62039e2afbe (patch)
tree576e9c9089cbb32c1a0f08e283a6a0cf4d8bcc0d /lib/rpmps.c
parentd523f4266d6860ed099bae737076d6fc971b3a45 (diff)
downloadrpm-93ae345321b41b7e964fc5f31c95a62039e2afbe.tar.gz
rpm-93ae345321b41b7e964fc5f31c95a62039e2afbe.tar.bz2
rpm-93ae345321b41b7e964fc5f31c95a62039e2afbe.zip
- fix: separate existence and number checks for problems found.
CVS patchset: 5481 CVS date: 2002/06/12 14:52:59
Diffstat (limited to 'lib/rpmps.c')
-rw-r--r--lib/rpmps.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/rpmps.c b/lib/rpmps.c
index f73690c5c..c72ea0941 100644
--- a/lib/rpmps.c
+++ b/lib/rpmps.c
@@ -44,6 +44,14 @@ fprintf(stderr, "--> ps %p ++ %d %s at %s:%u\n", ps, ps->nrefs, msg, fn, ln);
/*@=refcounttrans@*/
}
+int rpmpsNumProblems(rpmps ps)
+{
+ int numProblems = 0;
+ if (ps && ps->probs)
+ numProblems = ps->numProblems;
+ return numProblems;
+}
+
rpmps rpmpsCreate(void)
{
rpmps ps = xcalloc(1, sizeof(*ps));