Use struct sockaddr_storage instead of sockaddr_storage.

This commit is contained in:
Jonathan Naylor 2021-02-13 15:35:44 +00:00
parent 05c627c7d5
commit 51fc88f6e4

View file

@ -215,7 +215,7 @@ void CYSFReflector::run()
if (rpt == NULL) {
rpt = new CYSFRepeater;
rpt->m_callsign = std::string((char*)(buffer + 4U), 10U);
::memcpy(&rpt->m_addr, &addr, sizeof(sockaddr_storage));
::memcpy(&rpt->m_addr, &addr, sizeof(struct sockaddr_storage));
rpt->m_addrLen = addrLen;
m_repeaters.push_back(rpt);
network.setCount(m_repeaters.size());