Skip to content

Commit 24536c5

Browse files
rustyrussellcdecker
authored andcommitted
common/autodata: use instead of ccan/autodata
This means it needs to be linked ~everywhere. Signed-off-by: Rusty Russell <[email protected]>
1 parent b594c53 commit 24536c5

File tree

26 files changed

+25
-6
lines changed

26 files changed

+25
-6
lines changed

bitcoin/test/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ BITCOIN_TEST_SRC := $(wildcard bitcoin/test/run-*.c)
22
BITCOIN_TEST_OBJS := $(BITCOIN_TEST_SRC:.c=.o)
33
BITCOIN_TEST_PROGRAMS := $(BITCOIN_TEST_OBJS:.o=)
44

5-
BITCOIN_TEST_COMMON_OBJS := common/utils.o common/setup.o
5+
BITCOIN_TEST_COMMON_OBJS := common/utils.o common/setup.o common/autodata.o
66

77
$(BITCOIN_TEST_PROGRAMS): $(CCAN_OBJS) $(BITCOIN_TEST_COMMON_OBJS) bitcoin/chainparams.o
88
$(BITCOIN_TEST_OBJS): $(CCAN_HEADERS) $(BITCOIN_HEADERS) $(BITCOIN_SRC)

channeld/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ LIGHTNINGD_CONTROL_OBJS += channeld/channeld_wiregen.o
3030
# Common source we use.
3131
CHANNELD_COMMON_OBJS := \
3232
common/amount.o \
33+
common/autodata.o \
3334
common/base32.o \
3435
common/bigsize.o \
3536
common/billboard.o \

channeld/test/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ ALL_TEST_PROGRAMS += $(CHANNELD_TEST_PROGRAMS)
99

1010
CHANNELD_TEST_COMMON_OBJS := \
1111
common/amount.o \
12+
common/autodata.o \
1213
common/channel_type.o \
1314
common/daemon_conn.o \
1415
common/features.o \

cli/test/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ ALL_C_SOURCES += $(CLI_TEST_SRC)
88
ALL_TEST_PROGRAMS += $(CLI_TEST_PROGRAMS)
99

1010
CLI_TEST_COMMON_OBJS := \
11+
common/autodata.o \
1112
common/configdir.o \
1213
common/daemon_conn.o \
1314
common/htlc_state.o \

closingd/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ LIGHTNINGD_CONTROL_OBJS += closingd/closingd_wiregen.o
2020
# Common source we use.
2121
CLOSINGD_COMMON_OBJS := \
2222
common/amount.o \
23+
common/autodata.o \
2324
common/base32.o \
2425
common/bigsize.o \
2526
common/bip32.o \

common/test/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ COMMON_TEST_OBJS := $(COMMON_TEST_SRC:.c=.o)
88
COMMON_TEST_PROGRAMS := $(COMMON_TEST_OBJS:.o=)
99

1010
COMMON_TEST_COMMON_OBJS := \
11+
common/autodata.o \
1112
common/setup.o \
1213
common/utils.o
1314

common/type_to_string.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define LIGHTNING_COMMON_TYPE_TO_STRING_H
33
#include "config.h"
44
#include "utils.h"
5-
#include <ccan/autodata/autodata.h>
5+
#include <common/autodata.h>
66

77
/* This must match the type_to_string_ cases. */
88
union printable_types {

connectd/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ LIGHTNINGD_CONTROL_OBJS += connectd/connectd_wiregen.o
2626
# Common source we use.
2727
CONNECTD_COMMON_OBJS := \
2828
common/amount.o \
29+
common/autodata.o \
2930
common/base32.o \
3031
common/base64.o \
3132
common/bech32.o \

connectd/test/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ CONNECTD_TEST_OBJS := $(CONNECTD_TEST_SRC:.c=.o)
55
CONNECTD_TEST_PROGRAMS := $(CONNECTD_TEST_OBJS:.o=)
66

77
CONNECTD_TEST_COMMON_OBJS := \
8+
common/autodata.o \
89
common/features.o \
910
common/pseudorand.o \
1011
common/setup.o \
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
# Clang would detect false positive here, due to padding. See https://github.com/ElementsProject/lightning/pull/2285
2-
leak:ccan/ccan/autodata/autodata.c
32
leak:ccan/ccan/htable/htable.c

0 commit comments

Comments
 (0)