Use struct sockaddr_storage instead of sockaddr_storage.
This commit is contained in:
parent
05c627c7d5
commit
51fc88f6e4
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue