X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=udp.c;h=7ff4d5fd18f84e5ade3487701484124c55767c9e;hb=b953af83905b66fb887722936c3687706c425db5;hp=4883d537111e83547e35f2ef16e04e4da3bf7aea;hpb=90a39563035b70196da9c5bdc7c17a63b64449b0;p=secnet.git diff --git a/udp.c b/udp.c index 4883d53..7ff4d5f 100644 --- a/udp.c +++ b/udp.c @@ -64,7 +64,7 @@ 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; @@ -272,7 +272,7 @@ static list_t *udp_apply(closure_t *self, struct cloc loc, dict_t *context, d=i->data.dict; j=dict_find_item(d,"address",False,"udp",st->loc); - st->addr=j?st->addr=string_item_to_ipaddr(j, "udp"):INADDR_ANY; + st->addr=j?string_item_to_ipaddr(j, "udp"):INADDR_ANY; st->port=dict_read_number(d,"port",True,"udp",st->loc,0); st->rbuf=find_cl_if(d,"buffer",CL_BUFFER,True,"udp",st->loc); st->authbind=dict_read_string(d,"authbind",False,"udp",st->loc);