remove a premature optimization - teed - A multiplex relay tee(1) daemon.
HTML git clone git://bitreich.org/teed git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/teed
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 22ed6e7883ecd3f6e3ade985a0963604ba800ade
DIR parent b5674ba2b8612d190d7f61ed4816f56f7e1e9381
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 14 Aug 2023 14:22:40 +0200
remove a premature optimization
The loop below already checks the linked-list head pointer.
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat:
M teed.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
DIR diff --git a/teed.c b/teed.c
@@ -269,8 +269,7 @@ main(int argc, char *argv[])
if (e == NULL)
break;
}
- if (llist_len(wfds) == 0)
- continue;
+
forllist(wfds, qe) {
sendbufi = recvbuf;
sendl = recvl;