1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests: use sock_udp_name2ep() in interactive tests

This commit is contained in:
Benjamin Valentin 2022-03-24 17:11:55 +01:00
parent 846e681be2
commit 4f6ca0797b
2 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ static int _con(int argc, char **argv)
return 1;
}
if (sock_udp_str2ep(&_gw, argv[1]) != 0) {
if (sock_udp_name2ep(&_gw, argv[1]) != 0) {
puts("error: unable to parse gateway address");
_gw.port = 0;
return 1;

View File

@ -99,7 +99,7 @@ static int udp_send(char *addr_str, char *data, unsigned int num,
size_t data_len;
/* parse destination address */
if (sock_udp_str2ep(&dst, addr_str) < 0) {
if (sock_udp_name2ep(&dst, addr_str) < 0) {
puts("Error: unable to parse destination address");
return 1;
}