diff options
author | marius <marius@FreeBSD.org> | 2010-09-24 10:40:17 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2010-09-24 10:40:17 +0000 |
commit | b33b39bf8fca1665dc3b1f2d01092704fa9387d2 (patch) | |
tree | 2f8808cab176e2913d55c56aa2ac6b5eda69d0de /libexec/tftpd/tftp-file.c | |
parent | b9eeaa21c2c08a8a5837ece770038dd9704067f3 (diff) | |
download | FreeBSD-src-b33b39bf8fca1665dc3b1f2d01092704fa9387d2.zip FreeBSD-src-b33b39bf8fca1665dc3b1f2d01092704fa9387d2.tar.gz |
Make WARNS=6 clean.
MFC after: 1 week
Diffstat (limited to 'libexec/tftpd/tftp-file.c')
-rw-r--r-- | libexec/tftpd/tftp-file.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libexec/tftpd/tftp-file.c b/libexec/tftpd/tftp-file.c index e0f8e78..1ef8820 100644 --- a/libexec/tftpd/tftp-file.c +++ b/libexec/tftpd/tftp-file.c @@ -103,13 +103,13 @@ static size_t convert_to_net(char *buffer, size_t count, int init) { size_t i; - static size_t n = 0, read = 0; + static size_t n = 0, in = 0; static int newline = 0; if (init) { newline = 0; n = 0; - read = 0; + in = 0; return 0 ; } @@ -124,13 +124,13 @@ convert_to_net(char *buffer, size_t count, int init) } while (i < count) { - if (n == read) { + if (n == in) { /* When done we're done */ if (feof(file)) break; /* Otherwise read another bunch */ - read = fread(convbuffer, 1, count, file); - if (read == 0) break; + in = fread(convbuffer, 1, count, file); + if (in == 0) break; n = 0; } @@ -250,7 +250,7 @@ read_close(void) int -synchnet(int peer) +synchnet(int peer __unused) { return 0; |