short_channel_id: just use structeq.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-03-01 19:53:16 +10:30
committed by Christian Decker
parent affc1be4d6
commit c5d41a23d7
7 changed files with 10 additions and 18 deletions

View File

@@ -1194,7 +1194,7 @@ get_out_node_connection_of(const struct node *node,
int i;
for (i = 0; i < tal_count(node->out); ++i) {
if (short_channel_id_eq(&node->out[i]->short_channel_id, short_channel_id))
if (structeq(&node->out[i]->short_channel_id, short_channel_id))
return node->out[i];
}