1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-27 18:02:17 +03:00

Remove queue.h contents originating from BSD (#2982)

fixes #2981
This commit is contained in:
Ivan Grokhotkov
2017-02-19 05:36:30 +03:00
committed by GitHub
parent af58a74cc0
commit 93413efcf4
4 changed files with 9 additions and 212 deletions

View File

@ -294,7 +294,7 @@ void ESP8266WiFiScanClass::_scanDone(void* result, int status) {
int i = 0;
bss_info* head = reinterpret_cast<bss_info*>(result);
for(bss_info* it = head; it; it = STAILQ_NEXT(it, next), ++i)
for(bss_info* it = head; it; it = it->next, ++i)
;
ESP8266WiFiScanClass::_scanCount = i;
if(i == 0) {
@ -302,7 +302,7 @@ void ESP8266WiFiScanClass::_scanDone(void* result, int status) {
} else {
bss_info* copied_info = new bss_info[i];
i = 0;
for(bss_info* it = head; it; it = STAILQ_NEXT(it, next), ++i) {
for(bss_info* it = head; it; it = it->next, ++i) {
memcpy(copied_info + i, it, sizeof(bss_info));
}

View File

@ -148,9 +148,4 @@ struct WiFiEventSoftAPModeProbeRequestReceived
};
extern "C" {
typedef STAILQ_HEAD(, bss_info)
bss_info_head_t;
}
#endif /* ESP8266WIFITYPE_H_ */