aboutsummaryrefslogtreecommitdiff
path: root/networking/tftp.c
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2001-05-16 15:40:51 +0000
committerMatt Kraai <kraai@debian.org>2001-05-16 15:40:51 +0000
commitc55b8d41c15640fa1637f919b3f6eca6e781047a (patch)
tree03c1fca61c1b577b7c527d2b8482c5b7f6972bcd /networking/tftp.c
parent59df6f73988b103f0dcfffeaec10642527336c5e (diff)
downloadbusybox-w32-c55b8d41c15640fa1637f919b3f6eca6e781047a.tar.gz
busybox-w32-c55b8d41c15640fa1637f919b3f6eca6e781047a.tar.bz2
busybox-w32-c55b8d41c15640fa1637f919b3f6eca6e781047a.zip
Add xgethostbyname and herror_msg* functions.
Diffstat (limited to 'networking/tftp.c')
-rw-r--r--networking/tftp.c7
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)
390 s = xstrdup(serverstr); 390 s = xstrdup(serverstr);
391 s[cp - serverstr] = '\0'; 391 s[cp - serverstr] = '\0';
392 392
393 if ((host = gethostbyname(s))) { 393 host = xgethostbyname(s);
394 bad = 0;
395 }
396 394
397 free(s); 395 free(s);
398 } 396 }
399 if (bad) {
400 error_msg_and_die("bad \"server:file\" combination");
401 }
402 397
403 if (BB_TFTP_DEBUG) { 398 if (BB_TFTP_DEBUG) {
404 printf("using server \"%s\", serverfile \"%s\"," 399 printf("using server \"%s\", serverfile \"%s\","