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.
This commit is contained in:
Omar Polo 2021-01-19 18:49:36 +00:00
parent 710a71b2bb
commit 2debfe2b1f
2 changed files with 0 additions and 2 deletions

1
gmid.h
View File

@ -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 */
};

View File

@ -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++;