]> git.ozlabs.org Git - ccan/commit
bitmap: Avoid shadowing type name with parameter name
authorDavid Gibson <david@gibson.dropbear.id.au>
Sat, 1 Jun 2024 09:03:27 +0000 (19:03 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sat, 1 Jun 2024 09:03:27 +0000 (19:03 +1000)
commit995e75dd41d24edc41a03b654e035009a86b26fc
treedaff021860fbee4e4151c6aa9bf7f2d73ecf0ef7
parentcd56b18ae87de6981b88abbe52544d8cc9f8aa0e
bitmap: Avoid shadowing type name with parameter name

'bitmap' is a typedef name in this module, and we also use it as a
parameter name in a bunch of places.  Although that's possible, because
types and variables live in different namespaces, it's probably not that
wise.  It also appears to trip warnings with at least some options and
compiler versions.

Reported-by: Ashok Raj <ashok.raj@intel.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
ccan/bitmap/bitmap.c
ccan/bitmap/bitmap.h