mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
examples: replace sock_udp_str2ep() with sock_udp_name2ep()
This commit is contained in:
parent
bb8def8b3e
commit
846e681be2
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user