mirror of https://github.com/omar-polo/gmid.git
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:
parent
710a71b2bb
commit
2debfe2b1f
1
gmid.h
1
gmid.h
|
@ -106,7 +106,6 @@ struct client {
|
||||||
char sbuf[1024]; /* static buffer */
|
char sbuf[1024]; /* static buffer */
|
||||||
void *buf, *i; /* mmap buffer */
|
void *buf, *i; /* mmap buffer */
|
||||||
ssize_t len, off; /* mmap/static buffer */
|
ssize_t len, off; /* mmap/static buffer */
|
||||||
int af;
|
|
||||||
struct sockaddr_storage addr;
|
struct sockaddr_storage addr;
|
||||||
struct vhost *host; /* host she's talking to */
|
struct vhost *host; /* host she's talking to */
|
||||||
};
|
};
|
||||||
|
|
1
server.c
1
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].child = 0;
|
||||||
clients[i].waiting_on_child = 0;
|
clients[i].waiting_on_child = 0;
|
||||||
clients[i].buf = MAP_FAILED;
|
clients[i].buf = MAP_FAILED;
|
||||||
clients[i].af = AF_INET;
|
|
||||||
clients[i].addr = addr;
|
clients[i].addr = addr;
|
||||||
|
|
||||||
connected_clients++;
|
connected_clients++;
|
||||||
|
|
Loading…
Reference in New Issue