commit a534e71e8da9a7bab55e7e76358a60dcbd3e25d5 from: Alexander Barton date: Mon Mar 17 17:02:57 2014 UTC 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'" commit - a13bb78b1e7adf7c261ac427341c397ef9a6a1ed commit + a534e71e8da9a7bab55e7e76358a60dcbd3e25d5 blob - e6a4eb226476cc429eaef44bb038be3d0812563c blob + e403da1c2e240a5661584c551ce97e060ced30ac --- src/ngircd/client-cap.c +++ src/ngircd/client-cap.c @@ -23,6 +23,8 @@ #include "conn.h" #include "log.h" +#include "client-cap.h" + GLOBAL int Client_Cap(CLIENT *Client) { blob - 7e5ad9d61cb38376f7ea322ed19a2b1e52fb54e2 blob + cdac5e8d01831d477d2671b0d729f980f93ef967 --- src/ngircd/hash.c +++ src/ngircd/hash.c @@ -22,6 +22,8 @@ #include "defines.h" #include "tool.h" +#include "hash.h" + static UINT32 jenkins_hash PARAMS((UINT8 *k, UINT32 length, UINT32 initval)); /** blob - 61e47f83d3350c863136057d6f2cf9c7b7d78757 blob + bf4c9cd0c42a84a6e49ccb7e0c045ebc43034b6f --- src/ngircd/irc-cap.c +++ src/ngircd/irc-cap.c @@ -28,6 +28,8 @@ #include "login.h" #include "messages.h" #include "parse.h" + +#include "irc-cap.h" /* Local functions */ blob - 3ea823248b4e70e07ec8ac4610ee41b6baa90f68 blob + c142243acc655a94e4cbbf2ea9efe9cf550b7a7e --- src/ngircd/irc-channel.c +++ src/ngircd/irc-channel.c @@ -34,6 +34,8 @@ #include "irc-macros.h" #include "irc-write.h" #include "conf.h" + +#include "irc-channel.h" /** * Part from all channels. blob - 2c6ac597ccb99014f7408ee587ca92bf675bec8c blob + 7b7121b1ac4f7ecdded062b2192d1ceafb2d5e7a --- src/ngircd/irc-encoding.c +++ src/ngircd/irc-encoding.c @@ -29,6 +29,8 @@ #include "parse.h" #include "tool.h" +#include "irc-encoding.h" + /** * Handler for the IRC+ "CHARCONV" command. * blob - 609b1873860c1dd1bcc105f389da4317255ea55b blob + af165cfb364c2b88d4bebe77ce8b094b1a2bf169 --- src/ngircd/irc-login.c +++ src/ngircd/irc-login.c @@ -33,6 +33,8 @@ #include "irc.h" #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)); blob - 32e04516e07a273740c8115ad6cf3eb5651071a3 blob + efb2201773686c7475af2e5c930aaa0fd69dc621 --- src/ngircd/irc-metadata.c +++ src/ngircd/irc-metadata.c @@ -29,6 +29,8 @@ #include "messages.h" #include "parse.h" +#include "irc-metadata.h" + /** * Handler for the IRC+ "METADATA" command. * blob - 12a7e30d10c03133f0bb3be610209679c1b94e76 blob + 6a670079dd6fe7de05177e9ac8f668037920a4fe --- src/ngircd/irc-mode.c +++ src/ngircd/irc-mode.c @@ -30,6 +30,8 @@ #include "parse.h" #include "messages.h" #include "conf.h" + +#include "irc-mode.h" static bool Client_Mode PARAMS((CLIENT *Client, REQUEST *Req, CLIENT *Origin, CLIENT *Target)); blob - 82a78ebf7d712675497a3f5314514aa420620b6f blob + b75841a805345549b3cb3a247165359b6a0ae5f7 --- src/ngircd/irc-op.c +++ src/ngircd/irc-op.c @@ -28,6 +28,8 @@ #include "messages.h" #include "parse.h" +#include "irc-op.h" + /* Local functions */ static bool blob - f896098cfb94592a8652e0d1ccc87c1a74fe599f blob + 1d69a6cc75cfa83f7598dd723fd3b3d8fb48b8f0 --- src/ngircd/irc-oper.c +++ src/ngircd/irc-oper.c @@ -36,6 +36,8 @@ #include "match.h" #include "messages.h" #include "op.h" + +#include "irc-oper.h" /** * Handle invalid received OPER command. blob - 5ac8810f2b4ce12707bbc20d3d356545164e40cc blob + 92186aff7fcdbae8d8a7e5c02f7c177e1d231281 --- src/ngircd/irc-server.c +++ src/ngircd/irc-server.c @@ -34,6 +34,8 @@ #include "irc-info.h" #include "irc-write.h" #include "op.h" + +#include "irc-server.h" /** * Handler for the IRC "SERVER" command. blob - 3acae90850fc5dae8508a0e4ccd865e7c981ceb4 blob + 93ddc0bc71f363ebece6d8bac0719edab478dcbf --- src/ngircd/match.c +++ src/ngircd/match.c @@ -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 blob - 5217e14ed4902161f5a65ed7b3b828069994edc7 blob + da863e4d48d25ecda53186f0d360f02c158fa9e3 --- src/ngircd/numeric.c +++ src/ngircd/numeric.c @@ -30,6 +30,8 @@ #include "lists.h" #include "log.h" #include "parse.h" + +#include "numeric.h" /** * Announce a channel and its users in the network. blob - 7b7befbb0d5b7f58f9f557af90cc0547cb6ece11 blob + 4a1135502ab17e8546af32a875b8747c2fe0d766 --- src/ngircd/op.c +++ src/ngircd/op.c @@ -26,6 +26,8 @@ #include "messages.h" #include "irc-write.h" +#include "op.h" + /** * Return and log a "no privileges" message. */ blob - 01e303ea33018c122ed6405a5b2bcb335202e83e blob + be41ec8a97517087840444321c520e4a4adc2f3b --- src/ngircd/resolve.c +++ src/ngircd/resolve.c @@ -39,6 +39,8 @@ #include "conf.h" #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 )); blob - e5345dbc311b403ef49ff72e4a1b210535160da0 blob + 5cde24b066af392e125aefa893f15a68b92ccda9 --- src/ngircd/sighandlers.c +++ src/ngircd/sighandlers.c @@ -32,6 +32,8 @@ #include "io.h" #include "log.h" #include "ngircd.h" + +#include "sighandlers.h" static int signalpipe[2];