tdb: cleanup: find_nestlock() helper.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 22 Feb 2010 03:04:40 +0000 (13:34 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 22 Feb 2010 03:04:40 +0000 (13:34 +1030)
commitbc1c29d566924ebb7a303dfeb732a5303a59a9b3
treed04c63a6f27a7abd96b50b4d29e59125ceb30798
parentc730c0d2899ec0d6a84088e2146fb14760793c38
tdb: cleanup: find_nestlock() helper.

Factor out two loops which find locks; we are going to introduce a couple
more so a helper makes sense.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/tdb/lock.c