Make the code WARNS=6 clean by doing the following:
- Renaming variables (-Wshadow).
- Use memcpy instead of assigning the result of CMSG_DATA to a variable (-Wcast-align).
- Wrap some macros with do-while(0) to avoid variable collisions (-Wshadow).
- Push one of the TRACE statements up by 1 layer to avoid a collision between 2 calls of TRACE via the same overarching macro.
This was needed in order for the code to build properly with D61066,
since the code was not compiling with WARNS set to 3 at the testcase
level.
MFC after: 1 week