diff options
author | Matt Kraai <kraai@debian.org> | 2001-05-16 15:40:51 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2001-05-16 15:40:51 +0000 |
commit | c55b8d41c15640fa1637f919b3f6eca6e781047a (patch) | |
tree | 03c1fca61c1b577b7c527d2b8482c5b7f6972bcd /networking/tftp.c | |
parent | 59df6f73988b103f0dcfffeaec10642527336c5e (diff) |
Add xgethostbyname and herror_msg* functions.
Diffstat (limited to 'networking/tftp.c')
-rw-r--r-- | networking/tftp.c | 7 |
1 files changed, 1 insertions, 6 deletions
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\"," |