X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/f665113d3997514ee123a7fd28920c278628a865..d613fd78298a9911b7917c06f3ea11de45462e76:/slip.c diff --git a/slip.c b/slip.c index 891b268..1a60f40 100644 --- a/slip.c +++ b/slip.c @@ -170,13 +170,13 @@ static int userv_beforepoll(void *sst, struct pollfd *fds, int *nfds_io, struct userv *st=sst; if (st->rxfd!=-1) { - *nfds_io=2; + BEFOREPOLL_WANT_FDS(2); fds[0].fd=st->txfd; fds[0].events=0; /* Might want to pick up POLLOUT sometime */ fds[1].fd=st->rxfd; fds[1].events=POLLIN; } else { - *nfds_io=0; + BEFOREPOLL_WANT_FDS(0); } return 0; } @@ -313,7 +313,6 @@ static void userv_invoke_userv(struct userv *st) s=subnet_to_string(snets->list[i]); strcat(nets,s); strcat(nets,","); - free(s); } nets[strlen(nets)-1]=0; subnet_list_free(snets);