irc: fix check-source.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2016-10-07 13:56:57 +10:30
parent 93b72332bd
commit 4fcdf6de5c
4 changed files with 8 additions and 6 deletions

View File

@ -150,6 +150,7 @@ BITCOIN_HEADERS := bitcoin/address.h \
CORE_HEADERS := close_tx.h \
find_p2sh_out.h \
irc.h \
names.h \
opt_bits.h \
overflows.h \

View File

@ -73,6 +73,7 @@ DAEMON_HEADERS := \
daemon/htlc.h \
daemon/htlc_state.h \
daemon/invoice.h \
daemon/irc_announce.h \
daemon/json.h \
daemon/jsonrpc.h \
daemon/lightningd.h \

2
irc.c
View File

@ -1,6 +1,6 @@
#include "irc.h"
#include "daemon/dns.h"
#include "daemon/log.h"
#include "irc.h"
void (*irc_privmsg_cb)(struct ircstate *, const struct privmsg *) = NULL;
void (*irc_disconnect_cb)(struct ircstate *) = NULL;

10
irc.h
View File

@ -1,17 +1,17 @@
#ifndef LIGHTNING_IRC_H
#define LIGHTNING_IRC_H
#include <stdio.h>
#include <sys/socket.h>
#include <netdb.h>
#include "config.h"
#include "daemon/lightningd.h"
#include <ccan/io/io.h>
#include <ccan/short_types/short_types.h>
#include <ccan/str/str.h>
#include <ccan/tal/str/str.h>
#include <ccan/time/time.h>
#include <ccan/timer/timer.h>
#include "daemon/lightningd.h"
#include <netdb.h>
#include <stdio.h>
#include <sys/socket.h>
struct irccommand {
struct list_node list;