util/testdb: don't return crazy error values
commit20ff0cd40fd228f56251634a7429439244c24eac
authorDan McGee <dan@archlinux.org>
Wed, 25 Apr 2012 01:59:24 +0000 (24 20:59 -0500)
committerDan McGee <dan@archlinux.org>
Wed, 25 Apr 2012 01:59:24 +0000 (24 20:59 -0500)
tree81fada55c28ec86b3515dd7ae9d65a3afa809f76
parent1583a2079c8e84c9cd960a596dae2e36c9077bbb
util/testdb: don't return crazy error values

With some contrived examples, you could easily make testdb return a very
high error count, which could easily overflow the 8-bit unsigned integer
limit. Instead, simply return 1 or 0 based on whether errors were found.

Signed-off-by: Dan McGee <dan@archlinux.org>
src/util/testdb.c