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:
parent
846e681be2
commit
4f6ca0797b
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user