randomconfig fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2009-12-12 02:42:35 +01:00
parent 1315c30fef
commit 31e2e7b863
6 changed files with 14 additions and 21 deletions

View File

@@ -743,7 +743,7 @@ int tftpd_main(int argc UNUSED_PARAM, char **argv)
const char *error_msg;
int opt, result, opcode;
IF_FEATURE_TFTP_BLOCKSIZE(int blksize = TFTP_BLKSIZE_DEFAULT;)
IF_FEATURE_TFTP_BLOCKSIZE(int want_transfer_size;)
IF_FEATURE_TFTP_BLOCKSIZE(int want_transfer_size = 0;)
INIT_G();
@@ -791,7 +791,6 @@ int tftpd_main(int argc UNUSED_PARAM, char **argv)
goto err;
}
# if ENABLE_FEATURE_TFTP_BLOCKSIZE
want_transfer_size = 0;
{
char *res;
char *opt_str = mode + sizeof("octet");

View File

@@ -703,9 +703,10 @@ packet_ok(int read_len, len_and_sockaddr *from_lsa,
}
#else /* !ENABLE_TRACEROUTE6 */
static ALWAYS_INLINE int
packet_ok(int read_len, len_and_sockaddr *from_lsa,
struct sockaddr *to UNUSED_PARAM,
int seq)
packet_ok(int read_len,
len_and_sockaddr *from_lsa IF_NOT_FEATURE_TRACEROUTE_VERBOSE(UNUSED_PARAM),
struct sockaddr *to UNUSED_PARAM,
int seq)
{
return packet4_ok(read_len, &from_lsa->u.sin, seq);
}