Browse Source

lightningd/htlc_end: fix key for stricter compiler.

We *should* split the struct into key and data, rather than only comparing
the key parts in the htlc_end_eq function.  But meanwhile, this fixes
the code.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 8 years ago
parent
commit
798c4b73c4
  1. 2
      lightningd/htlc_end.c

2
lightningd/htlc_end.c

@ -22,7 +22,7 @@ struct htlc_end *find_htlc_end(const struct htlc_end_map *map,
enum htlc_end_type which_end) enum htlc_end_type which_end)
{ {
const struct htlc_end key = { which_end, (struct peer *)peer, htlc_id, const struct htlc_end key = { which_end, (struct peer *)peer, htlc_id,
NULL }; 0, NULL, NULL };
return htlc_end_map_get(map, &key); return htlc_end_map_get(map, &key);
} }

Loading…
Cancel
Save