Use signed int for ackblock
This commit is contained in:
parent
7fb13a8e12
commit
b934c55975
1 changed files with 2 additions and 2 deletions
4
tftp.c
4
tftp.c
|
@ -222,9 +222,9 @@ inline void sock_perror(const char *msg)
|
|||
int tftp_put(struct nmrpd_args *args)
|
||||
{
|
||||
struct sockaddr_in addr;
|
||||
uint16_t block, ackblock, port;
|
||||
uint16_t block, port;
|
||||
ssize_t len, last_len;
|
||||
int fd, sock, ret, timeout, errors;
|
||||
int fd, sock, ret, timeout, errors, ackblock;
|
||||
char rx[TFTP_PKT_SIZE], tx[TFTP_PKT_SIZE];
|
||||
|
||||
sock = -1;
|
||||
|
|
Loading…
Add table
Reference in a new issue