X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=mac%2Fotnet.c;h=35d3b16cb0c15e37395c488ed126ab9314507946;hb=550f7b37cb7dbe0dcd68d2ac2c3b529e643599b3;hp=970a78e5bf5c7be6f04ce998ddd1fcddc94c4f6f;hpb=6bb121ecb910115abe2ccba60938d18cbf826934;p=PuTTY.git diff --git a/mac/otnet.c b/mac/otnet.c index 970a78e5..35d3b16c 100644 --- a/mac/otnet.c +++ b/mac/otnet.c @@ -234,7 +234,7 @@ Socket ot_register(void *sock, Plug plug) } Socket ot_new(SockAddr addr, int port, int privport, int oobinline, - int nodelay, Plug plug) + int nodelay, int keepalive, Plug plug) { static struct socket_function_table fn_table = { ot_tcp_plug, @@ -281,7 +281,7 @@ Socket ot_new(SockAddr addr, int port, int privport, int oobinline, return (Socket) ret; } - /* TODO: oobinline, nodelay */ + /* TODO: oobinline, nodelay, keepalive */ /* * Bind to local address. @@ -324,6 +324,8 @@ Socket ot_new(SockAddr addr, int port, int privport, int oobinline, ret->next->prev = &ret->next; ot.socklist = ret; + /* XXX: don't know whether we can sk_addr_free(addr); */ + return (Socket) ret; }