diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-10-30 12:34:07 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-10-30 12:34:07 +0000 |
commit | 28e7bfc363aefc591955794e9c031f6962274368 (patch) | |
tree | f5cd8877a59d3c8622566b7d5bb755ef94d51706 /src | |
parent | 1c5f682f4dcbca5afa9dd4a9688bde40efaeb12c (diff) | |
download | tipidee-28e7bfc363aefc591955794e9c031f6962274368.tar.xz |
Don't keep track of unneeded count
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/tipideed/regular.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tipideed/regular.c b/src/tipideed/regular.c index a075cc0..2228f92 100644 --- a/src/tipideed/regular.c +++ b/src/tipideed/regular.c @@ -52,13 +52,13 @@ int respond_304 (tipidee_rql const *rql, char const *fn, struct stat const *st) { tain deadline ; char fmt[128] ; - size_t n = tipidee_response_status(buffer_1, rql, 304, "Not Modified") ; - n += tipidee_response_header_writeall_g(buffer_1, g.rhdr, g.rhdrn, !g.cont) ; + tipidee_response_status(buffer_1, rql, 304, "Not Modified") ; + tipidee_response_header_writeall_g(buffer_1, g.rhdr, g.rhdrn, !g.cont) ; { size_t l = tipidee_response_header_lastmodified(fmt, 128, st) ; - if (l) n += buffer_putnoflush(buffer_1, fmt, l) ; + if (l) buffer_putnoflush(buffer_1, fmt, l) ; } - n += buffer_putnoflush(buffer_1, "\r\n", 2) ; + buffer_putnoflush(buffer_1, "\r\n", 2) ; tipidee_log_answer(g.logv, rql, 304, 0) ; tain_add_g(&deadline, &g.writetto) ; if (!buffer_timed_flush_g(buffer_1, &deadline)) |