]> git.ozlabs.org Git - ccan/commit
htable: fix type of cmpfn in htable_type
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 13 Jan 2011 08:55:01 +0000 (19:25 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 13 Jan 2011 08:55:01 +0000 (19:25 +1030)
commit23e4603462692031a29ea4b2a882f957de4f2922
treee004ddcf4a4f8533e898633ed90cbeeefcce28e7
parent6156d1ab34b93c1e66473120df339fb23b08196a
htable: fix type of cmpfn in htable_type

It in fact takes an object and a key to compare, not two keys.

The test case had the key as first element of the object, so it worked,
but ccanlint lost track of module dependencies due to this bug, and thus
would build submodules multiple times.
ccan/htable/htable_type.h
ccan/htable/test/run-type.c
tools/ccanlint/file_analysis.c