]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Re-add #include's for header files of the C file itself
authorAlexander Barton <alex@barton.de>
Mon, 17 Mar 2014 17:02:57 +0000 (18:02 +0100)
committerAlexander Barton <alex@barton.de>
Mon, 17 Mar 2014 17:02:57 +0000 (18:02 +0100)
This partially reverts commit b130b35f4, "Update #include's: remove
unused and add missing ones", but fixes the following compiler and
analyzer warnings of Apple Xcode 5:

 "Semantic issue: No previous prototype for function 'yyy'"

16 files changed:
src/ngircd/client-cap.c
src/ngircd/hash.c
src/ngircd/irc-cap.c
src/ngircd/irc-channel.c
src/ngircd/irc-encoding.c
src/ngircd/irc-login.c
src/ngircd/irc-metadata.c
src/ngircd/irc-mode.c
src/ngircd/irc-op.c
src/ngircd/irc-oper.c
src/ngircd/irc-server.c
src/ngircd/match.c
src/ngircd/numeric.c
src/ngircd/op.c
src/ngircd/resolve.c
src/ngircd/sighandlers.c

index e6a4eb226476cc429eaef44bb038be3d0812563c..e403da1c2e240a5661584c551ce97e060ced30ac 100644 (file)
@@ -23,6 +23,8 @@
 #include "conn.h"
 #include "log.h"
 
+#include "client-cap.h"
+
 GLOBAL int
 Client_Cap(CLIENT *Client)
 {
index 7e5ad9d61cb38376f7ea322ed19a2b1e52fb54e2..cdac5e8d01831d477d2671b0d729f980f93ef967 100644 (file)
@@ -22,6 +22,8 @@
 #include "defines.h"
 #include "tool.h"
 
+#include "hash.h"
+
 static UINT32 jenkins_hash PARAMS((UINT8 *k, UINT32 length, UINT32 initval));
 
 /**
index 61e47f83d3350c863136057d6f2cf9c7b7d78757..bf4c9cd0c42a84a6e49ccb7e0c045ebc43034b6f 100644 (file)
@@ -29,6 +29,8 @@
 #include "messages.h"
 #include "parse.h"
 
+#include "irc-cap.h"
+
 /* Local functions */
 
 /**
index 3ea823248b4e70e07ec8ac4610ee41b6baa90f68..c142243acc655a94e4cbbf2ea9efe9cf550b7a7e 100644 (file)
@@ -35,6 +35,8 @@
 #include "irc-write.h"
 #include "conf.h"
 
+#include "irc-channel.h"
+
 /**
  * Part from all channels.
  *
index 2c6ac597ccb99014f7408ee587ca92bf675bec8c..7b7121b1ac4f7ecdded062b2192d1ceafb2d5e7a 100644 (file)
@@ -29,6 +29,8 @@
 #include "parse.h"
 #include "tool.h"
 
+#include "irc-encoding.h"
+
 /**
  * Handler for the IRC+ "CHARCONV" command.
  *
index 609b1873860c1dd1bcc105f389da4317255ea55b..af165cfb364c2b88d4bebe77ce8b094b1a2bf169 100644 (file)
@@ -34,6 +34,8 @@
 #include "irc-macros.h"
 #include "irc-write.h"
 
+#include "irc-login.h"
+
 static void Change_Nick PARAMS((CLIENT * Origin, CLIENT * Target, char *NewNick,
                                bool InformClient));
 
index 32e04516e07a273740c8115ad6cf3eb5651071a3..efb2201773686c7475af2e5c930aaa0fd69dc621 100644 (file)
@@ -29,6 +29,8 @@
 #include "messages.h"
 #include "parse.h"
 
+#include "irc-metadata.h"
+
 /**
  * Handler for the IRC+ "METADATA" command.
  *
index 12a7e30d10c03133f0bb3be610209679c1b94e76..6a670079dd6fe7de05177e9ac8f668037920a4fe 100644 (file)
@@ -31,6 +31,8 @@
 #include "messages.h"
 #include "conf.h"
 
+#include "irc-mode.h"
+
 static bool Client_Mode PARAMS((CLIENT *Client, REQUEST *Req, CLIENT *Origin,
                                CLIENT *Target));
 static bool Channel_Mode PARAMS((CLIENT *Client, REQUEST *Req, CLIENT *Origin,
index 82a78ebf7d712675497a3f5314514aa420620b6f..b75841a805345549b3cb3a247165359b6a0ae5f7 100644 (file)
@@ -28,6 +28,8 @@
 #include "messages.h"
 #include "parse.h"
 
+#include "irc-op.h"
+
 /* Local functions */
 
 static bool
index f896098cfb94592a8652e0d1ccc87c1a74fe599f..1d69a6cc75cfa83f7598dd723fd3b3d8fb48b8f0 100644 (file)
@@ -37,6 +37,8 @@
 #include "messages.h"
 #include "op.h"
 
+#include "irc-oper.h"
+
 /**
  * Handle invalid received OPER command.
  * Log OPER attempt and send error message to client.
index 5ac8810f2b4ce12707bbc20d3d356545164e40cc..92186aff7fcdbae8d8a7e5c02f7c177e1d231281 100644 (file)
@@ -35,6 +35,8 @@
 #include "irc-write.h"
 #include "op.h"
 
+#include "irc-server.h"
+
 /**
  * Handler for the IRC "SERVER" command.
  *
index 3acae90850fc5dae8508a0e4ccd865e7c981ceb4..93ddc0bc71f363ebece6d8bac0719edab478dcbf 100644 (file)
@@ -22,6 +22,8 @@
 #include "defines.h"
 #include "tool.h"
 
+#include "match.h"
+
 /*
  * The pattern matching functions [Matche(), Matche_After_Star()] are based
  * on code of J. Kercheval. Version 1.1 has been released on 1991-03-12 as
index 5217e14ed4902161f5a65ed7b3b828069994edc7..da863e4d48d25ecda53186f0d360f02c158fa9e3 100644 (file)
@@ -31,6 +31,8 @@
 #include "log.h"
 #include "parse.h"
 
+#include "numeric.h"
+
 /**
  * Announce a channel and its users in the network.
  */
index 7b7befbb0d5b7f58f9f557af90cc0547cb6ece11..4a1135502ab17e8546af32a875b8747c2fe0d766 100644 (file)
@@ -26,6 +26,8 @@
 #include "messages.h"
 #include "irc-write.h"
 
+#include "op.h"
+
 /**
  * Return and log a "no privileges" message.
  */
index 01e303ea33018c122ed6405a5b2bcb335202e83e..be41ec8a97517087840444321c520e4a4adc2f3b 100644 (file)
@@ -40,6 +40,8 @@
 #include "log.h"
 #include "ng_ipaddr.h"
 
+#include "resolve.h"
+
 static void Do_ResolveAddr PARAMS(( const ng_ipaddr_t *Addr, int Sock, int w_fd ));
 static void Do_ResolveName PARAMS(( const char *Host, int w_fd ));
 
index e5345dbc311b403ef49ff72e4a1b210535160da0..5cde24b066af392e125aefa893f15a68b92ccda9 100644 (file)
@@ -33,6 +33,8 @@
 #include "log.h"
 #include "ngircd.h"
 
+#include "sighandlers.h"
+
 static int signalpipe[2];
 
 static const int signals_catch[] = {