From 2debfe2b1fdef94dbbc9264d9528f7f021c0a324 Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Tue, 19 Jan 2021 18:49:36 +0000 Subject: [PATCH] drop useless field was probably added to distinguish between AF_INET and AF_INET6, to use different functions for logging. But it wasn't really used, and now we use getnameinfo anyway. --- gmid.h | 1 - server.c | 1 - 2 files changed, 2 deletions(-) diff --git a/gmid.h b/gmid.h index de13260..5c659a2 100644 --- a/gmid.h +++ b/gmid.h @@ -106,7 +106,6 @@ struct client { char sbuf[1024]; /* static buffer */ void *buf, *i; /* mmap buffer */ ssize_t len, off; /* mmap/static buffer */ - int af; struct sockaddr_storage addr; struct vhost *host; /* host she's talking to */ }; diff --git a/server.c b/server.c index 3d542f9..20a058a 100644 --- a/server.c +++ b/server.c @@ -531,7 +531,6 @@ do_accept(int sock, struct tls *ctx, struct pollfd *fds, struct client *clients) clients[i].child = 0; clients[i].waiting_on_child = 0; clients[i].buf = MAP_FAILED; - clients[i].af = AF_INET; clients[i].addr = addr; connected_clients++;