Re-add #include's for header files of the C file itself

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'"
This commit is contained in:
Alexander Barton 2014-03-17 18:02:57 +01:00
parent a13bb78b1e
commit a534e71e8d
16 changed files with 32 additions and 0 deletions

View File

@ -23,6 +23,8 @@
#include "conn.h"
#include "log.h"
#include "client-cap.h"
GLOBAL int
Client_Cap(CLIENT *Client)
{

View 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));
/**

View File

@ -29,6 +29,8 @@
#include "messages.h"
#include "parse.h"
#include "irc-cap.h"
/* Local functions */
/**

View File

@ -35,6 +35,8 @@
#include "irc-write.h"
#include "conf.h"
#include "irc-channel.h"
/**
* Part from all channels.
*

View File

@ -29,6 +29,8 @@
#include "parse.h"
#include "tool.h"
#include "irc-encoding.h"
/**
* Handler for the IRC+ "CHARCONV" command.
*

View 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));

View File

@ -29,6 +29,8 @@
#include "messages.h"
#include "parse.h"
#include "irc-metadata.h"
/**
* Handler for the IRC+ "METADATA" command.
*

View 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,

View File

@ -28,6 +28,8 @@
#include "messages.h"
#include "parse.h"
#include "irc-op.h"
/* Local functions */
static bool

View 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.

View File

@ -35,6 +35,8 @@
#include "irc-write.h"
#include "op.h"
#include "irc-server.h"
/**
* Handler for the IRC "SERVER" command.
*

View 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

View File

@ -31,6 +31,8 @@
#include "log.h"
#include "parse.h"
#include "numeric.h"
/**
* Announce a channel and its users in the network.
*/

View File

@ -26,6 +26,8 @@
#include "messages.h"
#include "irc-write.h"
#include "op.h"
/**
* Return and log a "no privileges" message.
*/

View 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 ));

View File

@ -33,6 +33,8 @@
#include "log.h"
#include "ngircd.h"
#include "sighandlers.h"
static int signalpipe[2];
static const int signals_catch[] = {