Introduction
Introduction Statistics Contact Development Disclaimer Help
remove a premature optimization - teed - A multiplex relay tee(1) daemon.
git clone git://bitreich.org/teed git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d…
Log
Files
Refs
Tags
README
LICENSE
---
commit 22ed6e7883ecd3f6e3ade985a0963604ba800ade
parent b5674ba2b8612d190d7f61ed4816f56f7e1e9381
Author: Hiltjo Posthuma <[email protected]>
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 <[email protected]>
Diffstat:
M teed.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
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;
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.