tdb2: fix prototype in tdb1 code.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 26 Mar 2012 04:03:17 +0000 (14:33 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 29 Mar 2012 04:44:30 +0000 (15:14 +1030)
commit3acce707a32a28c309133583b8cd1a554f19a8b3
treebdc3c7320700e027fbe9b24cc2f977e079ae3680
parente36622f92616b6982bf875563728dc8cdf97c93c
tdb2: fix prototype in tdb1 code.

We were handing an int-returning function where we should hand an enum TDB_ERROR
returning function.  Worse, it was returning 0/-1 instead of 0/TDB_ERR_*.

Fortunately, it's only compared against success, but the Solaris compiler
warns about it, and it's not correct anyway.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/tdb2/tdb1_tdb.c