Browse Source

Remove include in file foo.c that is already included in foo.h

ppa-0.6.1
practicalswift 7 years ago
committed by Rusty Russell
parent
commit
98f49c0837
  1. 1
      bitcoin/base58.c
  2. 1
      bitcoin/pullpush.c
  3. 2
      bitcoin/script.c
  4. 1
      cli/test/run-large-input.c
  5. 2
      common/bech32.c
  6. 1
      common/bolt11.c
  7. 1
      common/cryptomsg.c
  8. 1
      common/derive_basepoints.c
  9. 1
      common/json.c
  10. 1
      common/memleak.c
  11. 1
      common/sphinx.c
  12. 2
      common/status.c
  13. 1
      gossipd/routing.c
  14. 1
      lightningd/bitcoind.c
  15. 1
      lightningd/build_utxos.c
  16. 1
      lightningd/chaintopology.c
  17. 1
      lightningd/jsonrpc.c
  18. 1
      lightningd/lightningd.c
  19. 1
      lightningd/log.c
  20. 1
      lightningd/pay.c
  21. 1
      lightningd/peer_control.c
  22. 2
      lightningd/peer_htlcs.c
  23. 1
      lightningd/watch.c
  24. 1
      wallet/db.c
  25. 1
      wallet/wallet.c
  26. 1
      wire/wire_io.c

1
bitcoin/base58.c

@ -13,7 +13,6 @@
#include <ccan/tal/str/str.h>
#include <common/utils.h>
#include <libbase58.h>
#include <secp256k1.h>
#include <string.h>
static bool my_sha256(void *digest, const void *data, size_t datasz)

1
bitcoin/pullpush.c

@ -3,7 +3,6 @@
#include <assert.h>
#include <ccan/endian/endian.h>
#include <ccan/mem/mem.h>
#include <ccan/tal/tal.h>
void push_varint(varint_t v,
void (*push)(const void *, size_t, void *), void *pushp)

2
bitcoin/script.c

@ -3,8 +3,6 @@
#include "preimage.h"
#include "pubkey.h"
#include "script.h"
#include "signature.h"
#include "tx.h"
#include <assert.h>
#include <ccan/crypto/ripemd160/ripemd160.h>
#include <ccan/crypto/sha256/sha256.h>

1
cli/test/run-large-input.c

@ -3,7 +3,6 @@
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/types.h>
#include <unistd.h>
int test_main(int argc, char *argv[]);

2
common/bech32.c

@ -23,8 +23,6 @@
*/
#include "bech32.h"
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
static uint32_t bech32_polymod_step(uint32_t pre) {

1
common/bolt11.c

@ -17,7 +17,6 @@
#include <lightningd/jsonrpc.h>
#include <lightningd/lightningd.h>
#include <lightningd/log.h>
#include <secp256k1_recovery.h>
#include <stdarg.h>
#include <stdio.h>
#include <wire/wire.h>

1
common/cryptomsg.c

@ -4,7 +4,6 @@
#include <ccan/crypto/sha256/sha256.h>
#include <ccan/endian/endian.h>
#include <ccan/mem/mem.h>
#include <ccan/short_types/short_types.h>
#include <ccan/take/take.h>
#include <common/cryptomsg.h>
#include <common/dev_disconnect.h>

1
common/derive_basepoints.c

@ -1,6 +1,5 @@
#include <ccan/crypto/hkdf_sha256/hkdf_sha256.h>
#include <ccan/crypto/sha256/sha256.h>
#include <ccan/crypto/shachain/shachain.h>
#include <common/derive_basepoints.h>
#include <common/utils.h>

1
common/json.c

@ -4,7 +4,6 @@
#include <ccan/build_assert/build_assert.h>
#include <ccan/str/hex/hex.h>
#include <ccan/tal/str/str.h>
#include <ccan/tal/tal.h>
#include <errno.h>
#include <inttypes.h>
#include <stdarg.h>

1
common/memleak.c

@ -2,7 +2,6 @@
#include <backtrace.h>
#include <ccan/crypto/siphash24/siphash24.h>
#include <ccan/htable/htable.h>
#include <ccan/tal/tal.h>
#include <common/memleak.h>
#if DEVELOPER

1
common/sphinx.c

@ -12,7 +12,6 @@
#include <sodium/crypto_auth_hmacsha256.h>
#include <sodium/crypto_stream_chacha20.h>
#include <wire/wire.h>
#define BLINDING_FACTOR_SIZE 32
#define SHARED_SECRET_SIZE 32

2
common/status.c

@ -4,7 +4,6 @@
#include <ccan/err/err.h>
#include <ccan/fdpass/fdpass.h>
#include <ccan/read_write_all/read_write_all.h>
#include <ccan/take/take.h>
#include <ccan/tal/str/str.h>
#include <common/daemon_conn.h>
#include <common/gen_status_wire.h>
@ -12,7 +11,6 @@
#include <common/utils.h>
#include <errno.h>
#include <signal.h>
#include <stdarg.h>
#include <wire/peer_wire.h>
#include <wire/wire_sync.h>

1
gossipd/routing.c

@ -13,7 +13,6 @@
#include <common/wire_error.h>
#include <common/wireaddr.h>
#include <inttypes.h>
#include <wire/gen_onion_wire.h>
#include <wire/gen_peer_wire.h>
#ifndef SUPERVERBOSE

1
lightningd/bitcoind.c

@ -13,7 +13,6 @@
#include <ccan/tal/grab_file/grab_file.h>
#include <ccan/tal/path/path.h>
#include <ccan/tal/str/str.h>
#include <ccan/tal/tal.h>
#include <common/json.h>
#include <common/memleak.h>
#include <common/timeout.h>

1
lightningd/build_utxos.c

@ -4,7 +4,6 @@
#include <common/utils.h>
#include <lightningd/build_utxos.h>
#include <lightningd/jsonrpc.h>
#include <lightningd/lightningd.h>
#include <wally_bip32.h>

1
lightningd/chaintopology.c

@ -11,7 +11,6 @@
#include <ccan/asort/asort.h>
#include <ccan/build_assert/build_assert.h>
#include <ccan/io/io.h>
#include <ccan/structeq/structeq.h>
#include <ccan/tal/str/str.h>
#include <common/memleak.h>
#include <common/timeout.h>

1
lightningd/jsonrpc.c

@ -10,7 +10,6 @@
#include <ccan/str/hex/hex.h>
#include <ccan/tal/str/str.h>
#include <common/bech32.h>
#include <common/json.h>
#include <common/memleak.h>
#include <common/version.h>
#include <common/wireaddr.h>

1
lightningd/lightningd.c

@ -23,7 +23,6 @@
#include <common/timeout.h>
#include <common/utils.h>
#include <common/version.h>
#include <common/wireaddr.h>
#include <errno.h>
#include <fcntl.h>
#include <lightningd/bitcoind.h>

1
lightningd/log.c

@ -7,7 +7,6 @@
#include <ccan/str/hex/hex.h>
#include <ccan/tal/link/link.h>
#include <ccan/tal/str/str.h>
#include <ccan/time/time.h>
#include <common/memleak.h>
#include <common/pseudorand.h>
#include <common/utils.h>

1
lightningd/pay.c

@ -1,5 +1,4 @@
#include "pay.h"
#include <bitcoin/preimage.h>
#include <ccan/str/hex/hex.h>
#include <ccan/structeq/structeq.h>
#include <ccan/tal/str/str.h>

1
lightningd/peer_control.c

@ -42,7 +42,6 @@
#include <unistd.h>
#include <wally_bip32.h>
#include <wire/gen_onion_wire.h>
#include <wire/peer_wire.h>
static void destroy_peer(struct peer *peer)
{

2
lightningd/peer_htlcs.c

@ -4,8 +4,6 @@
#include <ccan/mem/mem.h>
#include <ccan/tal/str/str.h>
#include <channeld/gen_channel_wire.h>
#include <common/derive_basepoints.h>
#include <common/htlc_wire.h>
#include <common/overflows.h>
#include <common/sphinx.h>
#include <gossipd/gen_gossip_wire.h>

1
lightningd/watch.c

@ -27,7 +27,6 @@
* WE ASSUME NO MALLEABILITY! This requires segregated witness.
*/
#include <bitcoin/script.h>
#include <bitcoin/tx.h>
#include <ccan/crypto/siphash24/siphash24.h>
#include <ccan/ptrint/ptrint.h>
#include <ccan/structeq/structeq.h>

1
wallet/db.c

@ -1,7 +1,6 @@
#include "db.h"
#include <ccan/tal/str/str.h>
#include <ccan/tal/tal.h>
#include <common/version.h>
#include <inttypes.h>
#include <lightningd/lightningd.h>

1
wallet/wallet.c

@ -7,7 +7,6 @@
#include <common/key_derive.h>
#include <common/wireaddr.h>
#include <inttypes.h>
#include <lightningd/invoice.h>
#include <lightningd/lightningd.h>
#include <lightningd/log.h>
#include <lightningd/peer_control.h>

1
wire/wire_io.c

@ -2,7 +2,6 @@
#include <unistd.h>
#include <ccan/io/io_plan.h>
#include <ccan/mem/mem.h>
#include <ccan/short_types/short_types.h>
#include <ccan/take/take.h>
#include <ccan/tal/tal.h>
#include <errno.h>

Loading…
Cancel
Save