bfin warnings fixed

This commit is contained in:
2019-11-27 18:22:33 +01:00
parent c94f6a2bf2
commit 3486137de3
9 changed files with 21 additions and 22 deletions

View File

@ -994,7 +994,7 @@ void setupHeader(int iRxEntry, enum interfaceType type, uint32_t destip, uint64_
// calculate rxr endpoint offset
addr += (iRxEntry * RXR_ENDPOINT_OFST);
// get struct memory
udp_header *udp = (udp_header*) (Blackfin_getBaseAddress() + addr * 2);
udp_header *udp = (udp_header*) (Blackfin_getBaseAddress() + addr / 2);
memset(udp, 0, sizeof(udp_header));
// mac addresses