mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #13505 from kaspar030/sock_util_ifdef_module_fmt
sys/net/sock/sock_util: use MODULE_FMT instead of RIOT_VERSION
This commit is contained in:
commit
4a960ac6e5
@ -29,7 +29,7 @@
|
||||
#include "net/sock/udp.h"
|
||||
#include "net/sock/util.h"
|
||||
|
||||
#ifdef RIOT_VERSION
|
||||
#ifdef MODULE_FMT
|
||||
#include "fmt.h"
|
||||
#endif
|
||||
|
||||
@ -63,7 +63,7 @@ int sock_udp_ep_fmt(const sock_udp_ep_t *endpoint, char *addr_str, uint16_t *por
|
||||
|
||||
#if defined(SOCK_HAS_IPV6)
|
||||
if ((endpoint->family == AF_INET6) && endpoint->netif) {
|
||||
#ifdef RIOT_VERSION
|
||||
#ifdef MODULE_FMT
|
||||
char *tmp = addr_str + strlen(addr_str);
|
||||
*tmp++ = '%';
|
||||
tmp += fmt_u16_dec(tmp, endpoint->netif);
|
||||
|
Loading…
Reference in New Issue
Block a user