From c55b8d41c15640fa1637f919b3f6eca6e781047a Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Wed, 16 May 2001 15:40:51 +0000 Subject: Add xgethostbyname and herror_msg* functions. --- networking/tftp.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'networking/tftp.c') diff --git a/networking/tftp.c b/networking/tftp.c index 466851c1b..bb75c88ec 100644 --- a/networking/tftp.c +++ b/networking/tftp.c @@ -390,15 +390,10 @@ int tftp_main(int argc, char **argv) s = xstrdup(serverstr); s[cp - serverstr] = '\0'; - if ((host = gethostbyname(s))) { - bad = 0; - } + host = xgethostbyname(s); free(s); } - if (bad) { - error_msg_and_die("bad \"server:file\" combination"); - } if (BB_TFTP_DEBUG) { printf("using server \"%s\", serverfile \"%s\"," -- cgit v1.2.3