From b934c55975f1e2b9c1d2320cc0ca704c18e13291 Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Mon, 8 Feb 2016 11:56:51 +0100 Subject: [PATCH] Use signed int for ackblock --- tftp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.25.1