Skip to content

Commit ef74b7c

Browse files
Fix AxTLS alias function defs to match real code
1 parent 3afe9e3 commit ef74b7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/ESP8266WiFi/src/WiFiClientSecureAxTLS.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ extern "C" int __ax_port_read(int fd, uint8_t* buffer, size_t count)
473473
}
474474
return cb;
475475
}
476-
extern "C" void ax_port_read() __attribute__ ((weak, alias("__ax_port_read")));
476+
extern "C" int ax_port_read(int fd, uint8_t* buffer, size_t count) __attribute__ ((weak, alias("__ax_port_read")));
477477

478478
extern "C" int __ax_port_write(int fd, uint8_t* buffer, size_t count)
479479
{
@@ -489,15 +489,15 @@ extern "C" int __ax_port_write(int fd, uint8_t* buffer, size_t count)
489489
}
490490
return cb;
491491
}
492-
extern "C" void ax_port_write() __attribute__ ((weak, alias("__ax_port_write")));
492+
extern "C" int ax_port_write(int fd, uint8_t* buffer, size_t count) __attribute__ ((weak, alias("__ax_port_write")));
493493

494494
extern "C" int __ax_get_file(const char *filename, uint8_t **buf)
495495
{
496496
(void) filename;
497497
*buf = 0;
498498
return 0;
499499
}
500-
extern "C" void ax_get_file() __attribute__ ((weak, alias("__ax_get_file")));
500+
extern "C" int ax_get_file(const char *filename, uint8_t **buf) __attribute__ ((weak, alias("__ax_get_file")));
501501

502502
extern "C" void __ax_wdt_feed()
503503
{

0 commit comments

Comments
 (0)