From 745c7b223a2dc5da0f115acd21a86b0b15b0d8e5 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 18 Dec 2017 14:43:31 +1030 Subject: [PATCH] gossipd/routing: make local functions static. Signed-off-by: Rusty Russell --- gossipd/routing.c | 5 +++-- gossipd/routing.h | 14 -------------- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/gossipd/routing.c b/gossipd/routing.c index a02361f48..5540dfad9 100644 --- a/gossipd/routing.c +++ b/gossipd/routing.c @@ -206,7 +206,8 @@ get_or_make_connection(struct routing_state *rstate, return nc; } -struct node_connection *half_add_connection(struct routing_state *rstate, +static struct node_connection *half_add_connection( + struct routing_state *rstate, const struct pubkey *from, const struct pubkey *to, const struct short_channel_id *schanid, @@ -241,7 +242,7 @@ static void clear_bfg(struct node_map *nodes) } } -s64 connection_fee(const struct node_connection *c, u64 msatoshi) +static s64 connection_fee(const struct node_connection *c, u64 msatoshi) { s64 fee; diff --git a/gossipd/routing.h b/gossipd/routing.h index c35741a94..2edb7da83 100644 --- a/gossipd/routing.h +++ b/gossipd/routing.h @@ -99,20 +99,6 @@ struct routing_state *new_routing_state(const tal_t *ctx, const struct sha256_double *chain_hash, const struct pubkey *local_id); -/* msatoshi must be possible (< 21 million BTC), ie < 2^60. - * If it returns more than msatoshi, it overflowed. */ -s64 connection_fee(const struct node_connection *c, u64 msatoshi); - -/* Add a connection to the routing table, but do not mark it as usable - * yet. Used by channel_announcements before the channel_update comes - * in. */ - -struct node_connection *half_add_connection(struct routing_state *rstate, - const struct pubkey *from, - const struct pubkey *to, - const struct short_channel_id *schanid, - const u16 flags); - /* Given a short_channel_id, retrieve the matching connection, or NULL if it is * unknown. */ struct node_connection *get_connection_by_scid(const struct routing_state *rstate,