From cf6d25cad6101b483f5f1d58288e54a87f7cacba Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 20 Mar 2017 07:02:44 +1030 Subject: [PATCH] lightningd/connection: rename to lightningd/daemon_conn To match the structure name. Signed-off-by: Rusty Russell --- lightningd/Makefile | 2 +- lightningd/channel/channel.c | 2 +- lightningd/{connection.c => daemon_conn.c} | 2 +- lightningd/{connection.h => daemon_conn.h} | 6 +++--- lightningd/gossip/gossip.c | 2 +- lightningd/hsm/hsm.c | 2 +- lightningd/status.c | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) rename lightningd/{connection.c => daemon_conn.c} (98%) rename lightningd/{connection.h => daemon_conn.h} (93%) diff --git a/lightningd/Makefile b/lightningd/Makefile index 71414dac8..15769f759 100644 --- a/lightningd/Makefile +++ b/lightningd/Makefile @@ -39,10 +39,10 @@ LIGHTNINGD_LIB_SRC := \ lightningd/channel.c \ lightningd/channel_config.c \ lightningd/commit_tx.c \ - lightningd/connection.c \ lightningd/cryptomsg.c \ lightningd/crypto_sync.c \ lightningd/debug.c \ + lightningd/daemon_conn.c \ lightningd/derive_basepoints.c \ lightningd/funding_tx.c \ lightningd/gossip_msg.c \ diff --git a/lightningd/channel/channel.c b/lightningd/channel/channel.c index 143b65b64..66250f151 100644 --- a/lightningd/channel/channel.c +++ b/lightningd/channel/channel.c @@ -13,9 +13,9 @@ #include #include #include -#include #include #include +#include #include #include #include diff --git a/lightningd/connection.c b/lightningd/daemon_conn.c similarity index 98% rename from lightningd/connection.c rename to lightningd/daemon_conn.c index 2f23854a2..54993a03a 100644 --- a/lightningd/connection.c +++ b/lightningd/daemon_conn.c @@ -1,7 +1,7 @@ -#include "connection.h" #include #include #include +#include #include #include diff --git a/lightningd/connection.h b/lightningd/daemon_conn.h similarity index 93% rename from lightningd/connection.h rename to lightningd/daemon_conn.h index 3ebc57529..bcc277bc3 100644 --- a/lightningd/connection.h +++ b/lightningd/daemon_conn.h @@ -1,5 +1,5 @@ -#ifndef LIGHTNING_LIGHTNINGD_CONNECTION_H -#define LIGHTNING_LIGHTNINGD_CONNECTION_H +#ifndef LIGHTNING_LIGHTNINGD_DAEMON_CONN_H +#define LIGHTNING_LIGHTNINGD_DAEMON_CONN_H #include "config.h" #include @@ -70,4 +70,4 @@ struct io_plan *daemon_conn_read_next(struct io_conn *conn, * daemon_conn_sync_flush - Flush connection by sending all messages now.. */ bool daemon_conn_sync_flush(struct daemon_conn *dc); -#endif /* LIGHTNING_LIGHTNINGD_CONNECTION_H */ +#endif /* LIGHTNING_LIGHTNINGD_DAEMON_CONN_H */ diff --git a/lightningd/gossip/gossip.c b/lightningd/gossip/gossip.c index ccd26069a..51281d9ce 100644 --- a/lightningd/gossip/gossip.c +++ b/lightningd/gossip/gossip.c @@ -16,8 +16,8 @@ #include #include #include -#include #include +#include #include #include #include diff --git a/lightningd/hsm/hsm.c b/lightningd/hsm/hsm.c index ad18d14ab..7d18acc1a 100644 --- a/lightningd/hsm/hsm.c +++ b/lightningd/hsm/hsm.c @@ -16,7 +16,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/lightningd/status.c b/lightningd/status.c index e7c0967c8..1e034ada5 100644 --- a/lightningd/status.c +++ b/lightningd/status.c @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include #include