From 846e681be28c67560d9a8dc7b4143fd67ef912f0 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Thu, 24 Mar 2022 17:11:15 +0100 Subject: [PATCH] examples: replace sock_udp_str2ep() with sock_udp_name2ep() --- examples/asymcute_mqttsn/main.c | 2 +- examples/cord_epsim/main.c | 2 +- examples/cord_lc/cord_lc_cli.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/asymcute_mqttsn/main.c b/examples/asymcute_mqttsn/main.c index a8793ccdaa..17c647fabe 100644 --- a/examples/asymcute_mqttsn/main.c +++ b/examples/asymcute_mqttsn/main.c @@ -246,7 +246,7 @@ static int _cmd_connect(int argc, char **argv) /* get sock ep */ sock_udp_ep_t ep; - if (sock_udp_str2ep(&ep, argv[2]) != 0) { + if (sock_udp_name2ep(&ep, argv[2]) != 0) { puts("error: unable to parse gateway address"); return 1; } diff --git a/examples/cord_epsim/main.c b/examples/cord_epsim/main.c index 582547f16d..4dd9b85dca 100644 --- a/examples/cord_epsim/main.c +++ b/examples/cord_epsim/main.c @@ -83,7 +83,7 @@ int main(void) /* parse RD address information */ sock_udp_ep_t rd_ep; - if (sock_udp_str2ep(&rd_ep, RD_ADDR) < 0) { + if (sock_udp_name2ep(&rd_ep, RD_ADDR) < 0) { puts("error: unable to parse RD address from RD_ADDR variable"); return 1; } diff --git a/examples/cord_lc/cord_lc_cli.c b/examples/cord_lc/cord_lc_cli.c index fa8d5ba7f9..53c60cd9d4 100644 --- a/examples/cord_lc/cord_lc_cli.c +++ b/examples/cord_lc/cord_lc_cli.c @@ -35,7 +35,7 @@ static unsigned rd_initialized = 0; static int make_sock_ep(sock_udp_ep_t *ep, const char *addr) { ep->port = 0; - if (sock_udp_str2ep(ep, addr) < 0) { + if (sock_udp_name2ep(ep, addr) < 0) { return -1; } /* if netif not specified in addr */