aboutsummaryrefslogtreecommitdiff
path: root/tftp.c
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-05-16 15:40:51 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-05-16 15:40:51 +0000
commit7ee6d7639da2e6f8ec5c282f2dab4e66fa359743 (patch)
tree03c1fca61c1b577b7c527d2b8482c5b7f6972bcd /tftp.c
parentbbb602f480533eb3bdc18187065b3b5616482f4a (diff)
downloadbusybox-w32-7ee6d7639da2e6f8ec5c282f2dab4e66fa359743.tar.gz
busybox-w32-7ee6d7639da2e6f8ec5c282f2dab4e66fa359743.tar.bz2
busybox-w32-7ee6d7639da2e6f8ec5c282f2dab4e66fa359743.zip
Add xgethostbyname and herror_msg* functions.
git-svn-id: svn://busybox.net/trunk/busybox@2654 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'tftp.c')
-rw-r--r--tftp.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tftp.c b/tftp.c
index 466851c1b..bb75c88ec 100644
--- a/tftp.c
+++ b/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\","