X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/3b83c93292fbf6c4e859ce513bdf54ad90733f96..3e8addad2b3720a66f8a7b20d7ed7e66b8414748:/udp.c diff --git a/udp.c b/udp.c index 9615a17..4c393cd 100644 --- a/udp.c +++ b/udp.c @@ -47,8 +47,7 @@ struct udp { }; static int udp_beforepoll(void *state, struct pollfd *fds, int *nfds_io, - int *timeout_io, const struct timeval *tv, - uint64_t *now) + int *timeout_io) { struct udp *st=state; if (*nfds_io<1) { @@ -61,12 +60,11 @@ static int udp_beforepoll(void *state, struct pollfd *fds, int *nfds_io, return 0; } -static void udp_afterpoll(void *state, struct pollfd *fds, int nfds, - const struct timeval *tv, uint64_t *now) +static void udp_afterpoll(void *state, struct pollfd *fds, int nfds) { struct udp *st=state; struct sockaddr_in from; - int fromlen; + socklen_t fromlen; struct notify_list *n; bool_t done; int rv; @@ -302,7 +300,6 @@ static list_t *udp_apply(closure_t *self, struct cloc loc, dict_t *context, return new_closure(&st->cl); } -init_module udp_module; void udp_module(dict_t *dict) { add_closure(dict,"udp",udp_apply);