diff options
Diffstat (limited to 'accept.c')
-rw-r--r-- | accept.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -4,16 +4,16 @@ */ #include "cmogstored.h" -struct mog_accept * -mog_accept_init(int fd, struct mog_svc *svc, mog_post_accept_fn fn) +struct mog_fd * +mog_accept_init(int fd, struct mog_svc *svc, + struct mog_addrinfo *a, mog_post_accept_fn fn) { - struct mog_fd *mfd = mog_fd_get(fd); + struct mog_fd *mfd = mog_fd_init(fd, MOG_FD_TYPE_ACCEPT); struct mog_accept *ac = &mfd->as.accept; - mfd->fd = fd; ac->post_accept_fn = fn; ac->svc = svc; memset(&ac->thrpool, 0, sizeof(struct mog_thrpool)); - return ac; + return mfd; } |