summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-04-14 18:37:19 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-04-14 18:37:19 +0000
commit9b42989e38a7602b206dacb0cfa88d21e365c7a1 (patch)
treed56056fd7753b0c4005d282a2a4259e5c82be6ad
parent2ac357a89b7526a4c932d5dd7ee6864ee7aed4a6 (diff)
- Made server_estab() and sendnick_TS() use 'static' keyword
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@3307 82007160-df01-0410-b94d-b575c5fd34c7
-rw-r--r--include/s_serv.h3
-rw-r--r--modules/core/m_server.c7
2 files changed, 3 insertions, 7 deletions
diff --git a/include/s_serv.h b/include/s_serv.h
index e40739c..57fa865 100644
--- a/include/s_serv.h
+++ b/include/s_serv.h
@@ -96,11 +96,8 @@ extern int unsigned find_capability(const char *);
extern void send_capabilities(struct Client *, int);
extern void write_links_file(void *);
extern void read_links_file(void);
-extern void server_estab(struct Client *);
extern const char *show_capabilities(const struct Client *);
extern void try_connections(void *);
-extern void burst_channel(struct Client *client_p, struct Channel *);
-extern void sendnick_TS(struct Client *, struct Client *);
extern int serv_connect(struct MaskItem *, struct Client *);
extern struct Client *find_servconn_in_progress(const char *);
extern struct Server *make_server(struct Client *);
diff --git a/modules/core/m_server.c b/modules/core/m_server.c
index 925ac51..f1851b8 100644
--- a/modules/core/m_server.c
+++ b/modules/core/m_server.c
@@ -51,10 +51,10 @@
* output - NONE
* side effects - NICK message is sent towards given client_p
*/
-void
+static void
sendnick_TS(struct Client *client_p, struct Client *target_p)
{
- char ubuf[IRCD_BUFSIZE];
+ char ubuf[IRCD_BUFSIZE] = "";
if (!IsClient(target_p))
return;
@@ -111,7 +111,6 @@ sendnick_TS(struct Client *client_p, struct Client *target_p)
if (target_p->away[0])
sendto_one(client_p, ":%s AWAY :%s", ID_or_name(target_p, client_p),
target_p->away);
-
}
/*
@@ -252,7 +251,7 @@ server_burst(struct Client *client_p)
* output -
* side effects -
*/
-void
+static void
server_estab(struct Client *client_p)
{
struct Client *target_p;