geomyidae

A small C-based gopherd. (gopher://bitreich.org/1/scm/geomyidae)
git clone git://r-36.net/geomyidae
Log | Files | Refs | README | LICENSE

commit 3600ffac963bc5816c86b8e447feea77a2b34751
parent d7ed711f28717554c22cdd8efc620524268760a0
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:
ind.c | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

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) {