projects
/
oweals
/
nmrpflash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fb13a8
)
Use signed int for ackblock
author
Joseph C. Lehner
<joseph.c.lehner@gmail.com>
Mon, 8 Feb 2016 10:56:51 +0000
(11:56 +0100)
committer
Joseph C. Lehner
<joseph.c.lehner@gmail.com>
Mon, 8 Feb 2016 10:56:51 +0000
(11:56 +0100)
tftp.c
patch
|
blob
|
history
diff --git
a/tftp.c
b/tftp.c
index bb9bdb116465a6910123857e4db9d62bfea5ecd7..ec15c4b1d6f422c59b50541f55df14c249ed38f6 100644
(file)
--- 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;