X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=secnet.git;a=blobdiff_plain;f=tun.c;h=d899f0c6d006219573fc60ef6e3f43943e4ba032;hp=04ac08b8767ff668c46e8243ccf4153cfe5117e0;hb=e1b81bd68228f908e7e69794386947d7f7f98451;hpb=7c006408372213194fce572e390d8f474db9cebc diff --git a/tun.c b/tun.c index 04ac08b..d899f0c 100644 --- a/tun.c +++ b/tun.c @@ -95,8 +95,7 @@ static cstring_t tun_flavour_str(uint32_t flavour) } static int tun_beforepoll(void *sst, struct pollfd *fds, int *nfds_io, - int *timeout_io, const struct timeval *tv_now, - uint64_t *now) + int *timeout_io) { struct tun *st=sst; *nfds_io=1; @@ -105,8 +104,7 @@ static int tun_beforepoll(void *sst, struct pollfd *fds, int *nfds_io, return 0; } -static void tun_afterpoll(void *sst, struct pollfd *fds, int nfds, - const struct timeval *tv_now, uint64_t *now) +static void tun_afterpoll(void *sst, struct pollfd *fds, int nfds) { struct tun *st=sst; int l; @@ -149,7 +147,7 @@ static bool_t tun_set_route(void *sst, struct netlink_client *routes) struct tun *st=sst; string_t network, mask, secnetaddr; struct subnet_list *nets; - uint32_t i; + int32_t i; int fd=-1; if (routes->up == routes->kup) return False;