for splay_each(edge_t, e, mesh->edges) {
// skip edges that do not represent a two-directional connection
- if((!e->reverse) || (e->reverse->to != e->from)) {
+ if(!e->reverse || e->reverse->to != e->from) {
continue;
}
return;
}
- signal_t *sig = splay_search(&loop->signals, &((signal_t) {
+ signal_t *sig = splay_search(&loop->signals, &(signal_t) {
.signum = signum
- }));
+ });
if(sig) {
sig->cb(loop, sig->data);
return false;
}
- sptps_send_record(&(mesh->sptps), 1, ecdsa_get_public_key(mesh->private_key), 32);
+ sptps_send_record(&mesh->sptps, 1, ecdsa_get_public_key(mesh->private_key), 32);
logger(mesh, MESHLINK_DEBUG, "Configuration stored in: %s\n", mesh->confbase);
switch(type) {
case SPTPS_HANDSHAKE:
- return sptps_send_record(&(mesh->sptps), 0, mesh->cookie, sizeof(mesh)->cookie);
+ return sptps_send_record(&mesh->sptps, 0, mesh->cookie, sizeof(mesh)->cookie);
case 0:
return finalize_join(mesh, msg, len);
}
// Notify event loop
- signal_trigger(&(mesh->loop), &(mesh->datafromapp));
+ signal_trigger(&mesh->loop, &mesh->datafromapp);
return true;
}