Skip to content

Commit 42cd1e1

Browse files
committed
Make lwip_stack.c include its header
Fix some type mismatches that this revealed.
1 parent fa82a78 commit 42cd1e1

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

features/FEATURE_LWIP/lwip-interface/lwip_stack.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <stdio.h>
2121
#include <stdbool.h>
2222
#include <string.h>
23+
#include "lwip_stack.h"
2324

2425
#include "eth_arch.h"
2526
#include "lwip/opt.h"
@@ -391,7 +392,7 @@ char *mbed_lwip_get_ip_address(char *buf, nsapi_size_t buflen)
391392
#endif
392393
}
393394

394-
const char *mbed_lwip_get_netmask(char *buf, nsapi_size_t buflen)
395+
char *mbed_lwip_get_netmask(char *buf, nsapi_size_t buflen)
395396
{
396397
#if LWIP_IPV4
397398
const ip4_addr_t *addr = netif_ip4_netmask(&lwip_netif);

features/FEATURE_LWIP/lwip-interface/lwip_stack.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ nsapi_error_t mbed_lwip_bringup(bool dhcp, bool ppp, const char *ip, const char
3131
nsapi_error_t mbed_lwip_bringdown(bool ppp);
3232

3333
const char *mbed_lwip_get_mac_address(void);
34-
char *mbed_lwip_get_ip_address(char *buf, int buflen);
35-
char *mbed_lwip_get_netmask(char *buf, int buflen);
36-
char *mbed_lwip_get_gateway(char *buf, int buflen);
34+
char *mbed_lwip_get_ip_address(char *buf, nsapi_size_t buflen);
35+
char *mbed_lwip_get_netmask(char *buf, nsapi_size_t buflen);
36+
char *mbed_lwip_get_gateway(char *buf, nsapi_size_t buflen);
3737

3838
extern nsapi_stack_t lwip_stack;
3939

0 commit comments

Comments
 (0)