]> git.ipfire.org Git - thirdparty/hostap.git/commit
common: Introduce for_each_link() macro
authorBenjamin Berg <benjamin.berg@intel.com>
Tue, 20 Feb 2024 13:18:11 +0000 (14:18 +0100)
committerJouni Malinen <j@w1.fi>
Sat, 2 Mar 2024 09:02:54 +0000 (11:02 +0200)
commitc9f8fe0664a83b3ebd363e0b9d3c9d4f95bd9c80
tree1fd7776a9b0a22e2c0d9394e733abde4fa1bcc46
parent6cb421c1faf32d1d8ea386b9ac1021c8d9ae046e
common: Introduce for_each_link() macro

This is a simple macro iterating the given bitmask using the given
variable. Having the macro avoids the for loop-continuation making it
more readable overall.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
src/utils/common.h