diff options
author | jbj <devnull@localhost> | 2002-06-12 14:52:59 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2002-06-12 14:52:59 +0000 |
commit | 93ae345321b41b7e964fc5f31c95a62039e2afbe (patch) | |
tree | 576e9c9089cbb32c1a0f08e283a6a0cf4d8bcc0d /lib/rpmps.c | |
parent | d523f4266d6860ed099bae737076d6fc971b3a45 (diff) | |
download | rpm-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.c | 8 |
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)); |