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

@@ -1069,7 +1069,7 @@ static void json_dev_forget_channel(struct command *cmd, const char *buffer,
if (scidtok) {
if (!channel->scid)
continue;
if (!short_channel_id_eq(channel->scid, &scid))
if (!structeq(channel->scid, &scid))
continue;
}
if (forget->channel) {