~mdw
/
secnet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
comm: Break out common code in comm
[secnet]
/
site.c
diff --git
a/site.c
b/site.c
index
d0755da
..
3ac2372
100644
(file)
--- a/
site.c
+++ b/
site.c
@@
-1600,7
+1600,7
@@
static int site_beforepoll(void *sst, struct pollfd *fds, int *nfds_io,
{
struct site *st=sst;
{
struct site *st=sst;
-
*nfds_io=0
; /* We don't use any file descriptors */
+
BEFOREPOLL_WANT_FDS(0)
; /* We don't use any file descriptors */
st->now=*now;
/* Work out when our next timeout is. The earlier of 'timeout' or
st->now=*now;
/* Work out when our next timeout is. The earlier of 'timeout' or
@@
-2049,7
+2049,7
@@
static list_t *site_apply(closure_t *self, struct cloc loc, dict_t *context,
/* We are interested in poll(), but only for timeouts. We don't have
any fds of our own. */
/* We are interested in poll(), but only for timeouts. We don't have
any fds of our own. */
- register_for_poll(st, site_beforepoll, site_afterpoll,
0,
"site");
+ register_for_poll(st, site_beforepoll, site_afterpoll, "site");
st->timeout=0;
st->remote_capabilities=0;
st->timeout=0;
st->remote_capabilities=0;