mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
Remove general shadowed variables.
We shadow local variables in several places: generally, these changes make the code clearer. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
neil saitug
parent
6a7d40f51a
commit
6fe570820e
@@ -103,10 +103,9 @@ int main(int argc, char *argv[])
|
||||
for (n = gossmap_first_node(map);
|
||||
n;
|
||||
n = gossmap_next_node(map, n)) {
|
||||
struct node_id srcid, dstid;
|
||||
struct node_id srcid;
|
||||
|
||||
gossmap_node_get_id(map, n, &srcid);
|
||||
gossmap_node_get_id(map, dst, &dstid);
|
||||
printf("# %s->%s\n",
|
||||
type_to_string(tmpctx, struct node_id, &srcid),
|
||||
type_to_string(tmpctx, struct node_id, &dstid));
|
||||
|
||||
Reference in New Issue
Block a user