about summary refs log tree commit homepage
path: root/accept.c
diff options
context:
space:
mode:
Diffstat (limited to 'accept.c')
-rw-r--r--accept.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/accept.c b/accept.c
index 6148279..3415e47 100644
--- a/accept.c
+++ b/accept.c
@@ -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;
 }