]> git.ipfire.org Git - thirdparty/lldpd.git/commit
lib: use an unique variable as iterator in foreach macro
authorVincent Bernat <vincent@bernat.ch>
Fri, 15 Mar 2019 07:25:09 +0000 (08:25 +0100)
committerVincent Bernat <vincent@bernat.ch>
Fri, 15 Mar 2019 07:25:09 +0000 (08:25 +0100)
commit0ca212866b3c1bf294f495e56da03488bb12fb85
treebd2a3f9fb0d21275a11aaad3f3df1d7dd1cfad61
parentd0058aa62e1c691f8f3b9bf5af883829073551eb
lib: use an unique variable as iterator in foreach macro

This lessen the chance of the `iter` variable to shadow a user-defined
variable. This is also a tentative to help #312, even if the scope of
the `iter` variable should ensure we can nest two loops without any
issue.
src/lib/lldpctl.h