mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-09-24 02:53:57 +08:00
Avoid for loop initial declaration.
This commit is contained in:
+2
-1
@@ -43,7 +43,8 @@
|
||||
*/
|
||||
void memcpy_swap32(void *dst, const void *src)
|
||||
{
|
||||
for (int i = 0; i < 4; i++) {
|
||||
int i;
|
||||
for (i = 0; i < 4; i++) {
|
||||
((u8 *) dst)[i] = ((const u8 *) src)[3 - i];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user