aboutsummaryrefslogtreecommitdiffstats
path: root/com32/modules/host.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2016-04-06 12:34:01 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2016-04-06 12:34:01 -0700
commitedb6d3e81a891331d0adea527dc4adbe45db64d4 (patch)
tree401797c1f138d777658f0c0dffc7c78bbe1391de /com32/modules/host.c
parentcfafd66933bfd9fd55c58d7f8fa9f468386ba385 (diff)
downloadsyslinux-edb6d3e81a891331d0adea527dc4adbe45db64d4.tar.gz
syslinux-edb6d3e81a891331d0adea527dc4adbe45db64d4.tar.xz
syslinux-edb6d3e81a891331d0adea527dc4adbe45db64d4.zip
pxe_dns: remove obsolete pxe_dns.c wrapper
We used to need a wrapper around the core function dns_resolv() to implement pxe_dns(), because the former function required its argument to live in low memory. This is no longer the case and hasn't been for a while, so remove this unnecessary level of indirection. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'com32/modules/host.c')
-rw-r--r--com32/modules/host.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/com32/modules/host.c b/com32/modules/host.c
index d70efffd..be7f6cef 100644
--- a/com32/modules/host.c
+++ b/com32/modules/host.c
@@ -6,11 +6,6 @@
#include <com32.h>
#include <syslinux/pxe.h>
-static inline uint32_t dns_resolve(const char *hostname)
-{
- return pxe_dns(hostname);
-}
-
static inline void usage(const char *s)
{
fprintf(stderr, "Usage: %s hostname [, hostname_1, hostname_2, ...]\n", s);
@@ -29,7 +24,7 @@ int main(int argc, char *argv[])
}
for (i = 1; i < argc; i++) {
- ip = dns_resolve(argv[i]);
+ ip = pxe_dns(argv[i]);
if (!ip) {
printf("%s not found.\n", argv[i]);
} else {