mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 10:03:50 +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 <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
#include "net/dns.h"
|
||||||
#include "net/sock/util.h"
|
#include "net/sock/util.h"
|
||||||
#include "net/iana/portrange.h"
|
#include "net/iana/portrange.h"
|
||||||
|
|
||||||
@ -33,10 +34,6 @@
|
|||||||
# include "net/sock/udp.h"
|
# include "net/sock/udp.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if MODULE_DNS
|
|
||||||
# include "net/dns.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if MODULE_RANDOM
|
#if MODULE_RANDOM
|
||||||
# include "random.h"
|
# include "random.h"
|
||||||
#endif
|
#endif
|
||||||
@ -287,7 +284,6 @@ int sock_tl_name2ep(struct _sock_tl_ep *ep_out, const char *str)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
# if MODULE_SOCK_DNS || MODULE_SOCK_DNS_MOCK
|
|
||||||
int family;
|
int family;
|
||||||
char hostbuf[CONFIG_SOCK_HOSTPORT_MAXLEN];
|
char hostbuf[CONFIG_SOCK_HOSTPORT_MAXLEN];
|
||||||
const char *host;
|
const char *host;
|
||||||
@ -331,7 +327,6 @@ int sock_tl_name2ep(struct _sock_tl_ep *ep_out, const char *str)
|
|||||||
default:
|
default:
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
# endif
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user