diff options
| author | David Gibson <david@gibson.dropbear.id.au> | 2025-02-19 13:28:34 +1100 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2025-02-19 06:35:20 +0100 |
| commit | 7ffca35fddf1568698199c931ba1877c1908b443 (patch) | |
| tree | 2db0ed892903b9c145225d92cf0c092378f451d6 /contrib | |
| parent | adb46c11d0ea67824cf8c4ef2113ec0b2c563c0e (diff) | |
| download | passt-7ffca35fddf1568698199c931ba1877c1908b443.tar passt-7ffca35fddf1568698199c931ba1877c1908b443.tar.gz passt-7ffca35fddf1568698199c931ba1877c1908b443.tar.bz2 passt-7ffca35fddf1568698199c931ba1877c1908b443.tar.lz passt-7ffca35fddf1568698199c931ba1877c1908b443.tar.xz passt-7ffca35fddf1568698199c931ba1877c1908b443.tar.zst passt-7ffca35fddf1568698199c931ba1877c1908b443.zip | |
flow: Remove unneeded index from foreach_* macros
The foreach macros are odd in that they take two loop counters: an integer
index, and a pointer to the flow. We nearly always want the latter, not
the former, and we can get the index from the pointer trivially when we
need it. So, rearrange the macros not to need the integer index.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions
