svn commit: trunk/busybox/networking
vda at busybox.net
vda at busybox.net
Wed Mar 19 16:37:33 PDT 2008
Author: vda
Date: 2008-03-19 16:37:32 -0700 (Wed, 19 Mar 2008)
New Revision: 21407
Log:
tftpd: small trivial shrink
tftpd_main 502 488 -14
Modified:
trunk/busybox/networking/tftp.c
Changeset:
Modified: trunk/busybox/networking/tftp.c
===================================================================
--- trunk/busybox/networking/tftp.c 2008-03-19 23:25:00 UTC (rev 21406)
+++ trunk/busybox/networking/tftp.c 2008-03-19 23:37:32 UTC (rev 21407)
@@ -623,9 +623,7 @@
char *local_file, *mode;
const char *error_msg;
int opt, result, opcode;
- int local_fd = local_fd; /* for compiler */
- int blksize = blksize;
- USE_GETPUT(int cmd = cmd;)
+ int blksize = TFTP_BLKSIZE_DEFAULT;
INIT_G();
@@ -658,14 +656,13 @@
}
local_file = block_buf + 2;
if (local_file[0] == '.' || strstr(local_file, "/.")) {
- error_msg = "dot in local_file";
+ error_msg = "dot in file name";
goto err;
}
mode = local_file + strlen(local_file) + 1;
if (mode >= block_buf + result || strcmp(mode, "octet") != 0) {
goto err;
}
- blksize = TFTP_BLKSIZE_DEFAULT;
#if ENABLE_FEATURE_TFTP_BLOCKSIZE
{
char *res;
More information about the busybox-cvs
mailing list