From 82e1f5ade18a2fdb48641b946ac61268e4f5dfb0 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Sun, 25 Mar 2018 20:53:54 +0200 Subject: [PATCH] gossip: Make gossip_store_append private Signed-off-by: Christian Decker --- gossipd/gossip_store.c | 10 ++++++++-- gossipd/gossip_store.h | 9 --------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/gossipd/gossip_store.c b/gossipd/gossip_store.c index 928437cd3..2bd3f533c 100644 --- a/gossipd/gossip_store.c +++ b/gossipd/gossip_store.c @@ -46,8 +46,14 @@ struct gossip_store *gossip_store_new(const tal_t *ctx) return gs; } - -void gossip_store_append(struct gossip_store *gs, const u8 *msg) +/** + * Write an incoming message to the `gossip_store` + * + * @param gs The gossip_store to write to + * @param msg The message to write + * @return The newly created and initialized `gossip_store` + */ +static void gossip_store_append(struct gossip_store *gs, const u8 *msg) { u32 msglen = tal_len(msg); beint32_t belen = cpu_to_be32(msglen); diff --git a/gossipd/gossip_store.h b/gossipd/gossip_store.h index 7191e3e2c..bb0a9a69d 100644 --- a/gossipd/gossip_store.h +++ b/gossipd/gossip_store.h @@ -15,15 +15,6 @@ struct routing_state; struct gossip_store *gossip_store_new(const tal_t *ctx); -/** - * Write an incoming message to the `gossip_store` - * - * @param gs The gossip_store to write to - * @param msg The message to write - * @return The newly created and initialized `gossip_store` - */ -void gossip_store_append(struct gossip_store *gs, const u8 *msg); - /** * Retrieve the next gossip message if any *