Browse Source

change spaces to tabs, align function parameters

ppa-0.6.1
conanoc 7 years ago
committed by Christian Decker
parent
commit
7170521895
  1. 10
      gossipd/routing.c
  2. 4
      lightningd/gossip_msg.c

10
gossipd/routing.c

@ -1095,9 +1095,9 @@ bool routing_add_node_announcement(struct routing_state *rstate, const u8 *msg T
u8 *features, *addresses;
struct wireaddr *wireaddrs;
fromwire_node_announcement(tmpctx, msg,
&signature, &features, &timestamp,
&node_id, rgb_color, alias,
&addresses);
&signature, &features, &timestamp,
&node_id, rgb_color, alias,
&addresses);
node = get_node(rstate, &node_id);
@ -1116,8 +1116,8 @@ bool routing_add_node_announcement(struct routing_state *rstate, const u8 *msg T
node->alias = tal_dup_arr(node, u8, alias, 32, 0);
replace_broadcast(node, rstate->broadcasts,
&node->node_announce_msgidx,
msg);
&node->node_announce_msgidx,
msg);
return true;
}

4
lightningd/gossip_msg.c

@ -68,7 +68,7 @@ void towire_route_hop(u8 **pptr, const struct route_hop *entry)
}
void fromwire_gossip_getchannels_entry(const u8 **pptr, size_t *max,
struct gossip_getchannels_entry *entry)
struct gossip_getchannels_entry *entry)
{
fromwire_short_channel_id(pptr, max, &entry->short_channel_id);
fromwire_pubkey(pptr, max, &entry->source);
@ -86,7 +86,7 @@ void fromwire_gossip_getchannels_entry(const u8 **pptr, size_t *max,
}
void towire_gossip_getchannels_entry(u8 **pptr,
const struct gossip_getchannels_entry *entry)
const struct gossip_getchannels_entry *entry)
{
towire_short_channel_id(pptr, &entry->short_channel_id);
towire_pubkey(pptr, &entry->source);

Loading…
Cancel
Save