chiark
/
gitweb
/
~mdw
/
secnet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
event loop: remove now and tv_now from before/afterpoll API
[secnet]
/
tun.c
diff --git
a/tun.c
b/tun.c
index 80606232d76de4eddff92b15e1c4c7b05f3cdfbf..d899f0c6d006219573fc60ef6e3f43943e4ba032 100644
(file)
--- 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,
}
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;
{
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;
}
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;
{
struct tun *st=sst;
int l;