aboutsummaryrefslogtreecommitdiff
path: root/networking/tftp.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-11-06 00:49:59 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-11-06 00:49:59 +0000
commit35a064b67fc1954b95be06499a514a45c9f2e814 (patch)
treec3c2690d8c5c112ce744e17a906a860a0c6897d2 /networking/tftp.c
parent202ac504e1addf0aa2debd53e7cd2411cc73ac8c (diff)
downloadbusybox-w32-35a064b67fc1954b95be06499a514a45c9f2e814.tar.gz
busybox-w32-35a064b67fc1954b95be06499a514a45c9f2e814.tar.bz2
busybox-w32-35a064b67fc1954b95be06499a514a45c9f2e814.zip
build system: tidying up CONFIG_xxx names (suggested by Rob)
Diffstat (limited to 'networking/tftp.c')
-rw-r--r--networking/tftp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/networking/tftp.c b/networking/tftp.c
index eb39e9c54..1f706852a 100644
--- a/networking/tftp.c
+++ b/networking/tftp.c
@@ -113,7 +113,7 @@ static int tftp_blksize_check(const char *blksize_str, int maxsize)
113 bb_error_msg("bad blocksize '%s'", blksize_str); 113 bb_error_msg("bad blocksize '%s'", blksize_str);
114 return -1; 114 return -1;
115 } 115 }
116#if ENABLE_DEBUG_TFTP 116#if ENABLE_TFTP_DEBUG
117 bb_error_msg("using blksize %u", blksize); 117 bb_error_msg("using blksize %u", blksize);
118#endif 118#endif
119 return blksize; 119 return blksize;
@@ -369,7 +369,7 @@ static int tftp_protocol(
369 waittime_ms = TFTP_TIMEOUT_MS; 369 waittime_ms = TFTP_TIMEOUT_MS;
370 370
371 send_again: 371 send_again:
372#if ENABLE_DEBUG_TFTP 372#if ENABLE_TFTP_DEBUG
373 fprintf(stderr, "sending %u bytes\n", send_len); 373 fprintf(stderr, "sending %u bytes\n", send_len);
374 for (cp = xbuf; cp < &xbuf[send_len]; cp++) 374 for (cp = xbuf; cp < &xbuf[send_len]; cp++)
375 fprintf(stderr, "%02x ", (unsigned char) *cp); 375 fprintf(stderr, "%02x ", (unsigned char) *cp);
@@ -431,7 +431,7 @@ static int tftp_protocol(
431 /* Process recv'ed packet */ 431 /* Process recv'ed packet */
432 opcode = ntohs( ((uint16_t*)rbuf)[0] ); 432 opcode = ntohs( ((uint16_t*)rbuf)[0] );
433 recv_blk = ntohs( ((uint16_t*)rbuf)[1] ); 433 recv_blk = ntohs( ((uint16_t*)rbuf)[1] );
434#if ENABLE_DEBUG_TFTP 434#if ENABLE_TFTP_DEBUG
435 fprintf(stderr, "received %d bytes: %04x %04x\n", len, opcode, recv_blk); 435 fprintf(stderr, "received %d bytes: %04x %04x\n", len, opcode, recv_blk);
436#endif 436#endif
437 if (opcode == TFTP_ERROR) { 437 if (opcode == TFTP_ERROR) {
@@ -602,7 +602,7 @@ int tftp_main(int argc UNUSED_PARAM, char **argv)
602 port = bb_lookup_port(argv[1], "udp", 69); 602 port = bb_lookup_port(argv[1], "udp", 69);
603 peer_lsa = xhost2sockaddr(argv[0], port); 603 peer_lsa = xhost2sockaddr(argv[0], port);
604 604
605#if ENABLE_DEBUG_TFTP 605#if ENABLE_TFTP_DEBUG
606 fprintf(stderr, "using server '%s', remote_file '%s', local_file '%s'\n", 606 fprintf(stderr, "using server '%s', remote_file '%s', local_file '%s'\n",
607 xmalloc_sockaddr2dotted(&peer_lsa->u.sa), 607 xmalloc_sockaddr2dotted(&peer_lsa->u.sa),
608 remote_file, local_file); 608 remote_file, local_file);