From 5ae988171cfbda826df329ff3665b07c2c1ba24f Mon Sep 17 00:00:00 2001 From: Leonardo Taccari Date: Sun, 7 Jun 2020 22:41:19 +0200 Subject: [PATCH] Remove no longer used variable --- ind.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ind.c b/ind.c index 89bd9b6..f177c3c 100644 --- 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) { -- 2.27.0