Unverified Commit 06572e36 authored by Earle F. Philhower, III's avatar Earle F. Philhower, III Committed by GitHub

Fix minor LWIP wrapper errors (#2310)

Somehow returning the results of a `void` function from another `void`
wrapper didn't trigger any warnings.  Also missed tcp_bind actual
GCC wrapping.
parent e86f8f50
...@@ -247,19 +247,19 @@ extern "C" { ...@@ -247,19 +247,19 @@ extern "C" {
extern void __real_tcp_setprio(struct tcp_pcb *pcb, u8_t prio); extern void __real_tcp_setprio(struct tcp_pcb *pcb, u8_t prio);
void __wrap_tcp_setprio(struct tcp_pcb *pcb, u8_t prio) { void __wrap_tcp_setprio(struct tcp_pcb *pcb, u8_t prio) {
LWIPMutex m; LWIPMutex m;
return __real_tcp_setprio(pcb, prio); __real_tcp_setprio(pcb, prio);
} }
extern void __real_tcp_backlog_delayed(struct tcp_pcb* pcb); extern void __real_tcp_backlog_delayed(struct tcp_pcb* pcb);
void __wrap_tcp_backlog_delayed(struct tcp_pcb* pcb) { void __wrap_tcp_backlog_delayed(struct tcp_pcb* pcb) {
LWIPMutex m; LWIPMutex m;
return __real_tcp_backlog_delayed(pcb); __real_tcp_backlog_delayed(pcb);
} }
extern void __real_tcp_backlog_accepted(struct tcp_pcb* pcb); extern void __real_tcp_backlog_accepted(struct tcp_pcb* pcb);
void __wrap_tcp_backlog_accepted(struct tcp_pcb* pcb) { void __wrap_tcp_backlog_accepted(struct tcp_pcb* pcb) {
LWIPMutex m; LWIPMutex m;
return __real_tcp_backlog_accepted(pcb); __real_tcp_backlog_accepted(pcb);
} }
extern struct udp_pcb *__real_udp_new(void); extern struct udp_pcb *__real_udp_new(void);
struct udp_pcb *__wrap_udp_new(void) { struct udp_pcb *__wrap_udp_new(void) {
......
...@@ -166,6 +166,7 @@ ...@@ -166,6 +166,7 @@
-Wl,--wrap=tcp_arg -Wl,--wrap=tcp_arg
-Wl,--wrap=tcp_new -Wl,--wrap=tcp_new
-Wl,--wrap=tcp_bind
-Wl,--wrap=tcp_listen -Wl,--wrap=tcp_listen
-Wl,--wrap=tcp_listen_with_backlog -Wl,--wrap=tcp_listen_with_backlog
-Wl,--wrap=tcp_accept -Wl,--wrap=tcp_accept
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment