From: Joseph C. Lehner Date: Mon, 8 Feb 2016 10:56:51 +0000 (+0100) Subject: Use signed int for ackblock X-Git-Tag: v0.9~19 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b934c55975f1e2b9c1d2320cc0ca704c18e13291;p=oweals%2Fnmrpflash.git Use signed int for ackblock --- diff --git a/tftp.c b/tftp.c index bb9bdb1..ec15c4b 100644 --- a/tftp.c +++ b/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;