remove unused variables and unneeded include - 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 acaa427d4d4fa8e8ce6e626e94ec922d50316ee7
DIR parent b79b790fed08bd18a0979c5d94f039dd64d55f5a
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 12 Aug 2023 20:27:55 +0200
remove unused variables and unneeded include
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat:
M teed.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
DIR diff --git a/teed.c b/teed.c
@@ -9,7 +9,6 @@
#include <string.h>
#include <sys/socket.h>
#include <sys/un.h>
-#include <sys/types.h>
#include <signal.h>
#include <errno.h>
#include <sys/stat.h>
@@ -153,11 +152,11 @@ initsignals(void)
int
main(int argc, char *argv[])
{
- int on, i, maxsfd, afd, rval, j, recvl,
+ int on, i, maxsfd, afd, rval, recvl,
sendl, sent, lfd;
struct sockaddr_un saddrs[2], clt;
char *bindpaths[2] = {"in", "out"},
- recvbuf[4*1024], *sendbuf,
+ recvbuf[4*1024],
*sendbufi;
llist *wfds, *rfds, *lfds, *e, *qe;
socklen_t saddrlen, cltlen;