mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-15 17:43:51 +01:00
sys/net/sock_util: make unconditional use of dns_query()
This commit is contained in:
parent
839b75df77
commit
c826d0cddb
@ -26,6 +26,7 @@
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "net/dns.h"
|
||||
#include "net/sock/util.h"
|
||||
#include "net/iana/portrange.h"
|
||||
|
||||
@ -33,10 +34,6 @@
|
||||
# include "net/sock/udp.h"
|
||||
#endif
|
||||
|
||||
#if MODULE_DNS
|
||||
# include "net/dns.h"
|
||||
#endif
|
||||
|
||||
#if MODULE_RANDOM
|
||||
# include "random.h"
|
||||
#endif
|
||||
@ -287,7 +284,6 @@ int sock_tl_name2ep(struct _sock_tl_ep *ep_out, const char *str)
|
||||
return 0;
|
||||
}
|
||||
|
||||
# if MODULE_SOCK_DNS || MODULE_SOCK_DNS_MOCK
|
||||
int family;
|
||||
char hostbuf[CONFIG_SOCK_HOSTPORT_MAXLEN];
|
||||
const char *host;
|
||||
@ -331,7 +327,6 @@ int sock_tl_name2ep(struct _sock_tl_ep *ep_out, const char *str)
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
# endif
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user