Remove no longer used variable - geomyidae - A small C-based gopherd. HTML git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 3600ffac963bc5816c86b8e447feea77a2b34751 DIR parent d7ed711f28717554c22cdd8efc620524268760a0 HTML Author: Leonardo Taccari <iamleot@gmail.com> Date: Sun, 7 Jun 2020 22:41:19 +0200 Remove no longer used variable Signed-off-by: Christoph Lohmann <20h@r-36.net> Diffstat: M ind.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) --- DIR diff --git a/ind.c b/ind.c @@ -108,16 +108,14 @@ xsendfile(int fd, int sock) { struct stat st; char *sendb, *sendi; - size_t bufsiz = BUFSIZ, count = 0; + size_t bufsiz = BUFSIZ; int len, sent, optval; USED(optval); - if (fstat(fd, &st) >= 0) { + if (fstat(fd, &st) >= 0) if ((bufsiz = st.st_blksize) < BUFSIZ) bufsiz = BUFSIZ; - count = st.st_size; - } sendb = xmalloc(bufsiz); while ((len = read(fd, sendb, bufsiz)) > 0) {