rename do_accept() -> server_accept()

This commit is contained in:
Omar Polo 2023-07-01 22:00:08 +00:00
parent 2b0b2661ea
commit 71b02f6390
4 changed files with 4 additions and 4 deletions

View File

@ -548,7 +548,7 @@ config_recv(struct conf *conf, struct imsg *imsg)
addr->conf = conf;
addr->sock = imsg->fd;
event_set(&addr->evsock, addr->sock, EV_READ|EV_PERSIST,
do_accept, addr);
server_accept, addr);
if ((addr->ctx = tls_server()) == NULL)
fatal("tls_server failure");
TAILQ_INSERT_HEAD(&conf->addrs, addr, addrs);

2
ge.c
View File

@ -200,7 +200,7 @@ serve(struct conf *conf, const char *host, int port, const char *dir)
addr->conf = conf;
addr->sock = sock;
event_set(&addr->evsock, addr->sock, EV_READ|EV_PERSIST,
do_accept, addr);
server_accept, addr);
if ((addr->ctx = tls_server()) == NULL)
fatal("tls_server failure");

2
gmid.h
View File

@ -408,7 +408,7 @@ void client_write(struct bufferevent *, void *);
void start_reply(struct client*, int, const char*);
void client_close(struct client *);
struct client *client_by_id(int);
void do_accept(int, short, void *);
void server_accept(int, short, void *);
void server_init(struct privsep *, struct privsep_proc *, void *);
int server_configure_done(struct conf *);
void server(struct privsep *ps, struct privsep_proc *);

View File

@ -1288,7 +1288,7 @@ client_close(struct client *c)
}
void
do_accept(int sock, short et, void *d)
server_accept(int sock, short et, void *d)
{
struct address *addr = d;
struct client *c;