X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=sync_filter.c;h=3877c13d1d932bc566303299565d87d3e6c948e6;hb=181beb316afad036ac01a778544c5dec0a8d51c7;hp=f23545adb68342322fbeaef4c45c73c663a969be;hpb=3946a9e571327a8a56ab40196ad867df38b70d27;p=paraslash.git diff --git a/sync_filter.c b/sync_filter.c index f23545ad..3877c13d 100644 --- a/sync_filter.c +++ b/sync_filter.c @@ -103,7 +103,7 @@ static void sync_open(struct filter_node *fn) const struct lls_opt_result *r_b; ctx = fn->private_data = para_calloc(sizeof(*ctx)); - INIT_LIST_HEAD(&ctx->buddies); + init_list_head(&ctx->buddies); /* create socket to listen for incoming packets */ ret = makesock( @@ -324,7 +324,7 @@ static int sync_post_select(__a_unused struct sched *s, void *context) } ctx->ping_sent = true; } - if (FD_ISSET(ctx->listen_fd, &s->rfds)) { + if (sched_read_ok(ctx->listen_fd, s)) { char c; for (;;) { struct sockaddr src_addr;