1
0
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:
benpicco 2020-02-28 13:13:50 +01:00 committed by GitHub
commit 4a960ac6e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);