summaryrefslogtreecommitdiff
path: root/src/char/int_clan.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-06-24 22:06:41 +0200
committerHaru <haru@dotalux.com>2018-07-01 21:09:25 +0200
commitb7e6439f0c788ceacc567fbb017d3c7f09913f78 (patch)
treea1e8a6093f3d7f3922465d77056419030e0e4ffc /src/char/int_clan.c
parent4552fc0eab5cd9b723180a12d4ef50f7fe998b55 (diff)
downloadhercules-b7e6439f0c788ceacc567fbb017d3c7f09913f78.tar.gz
hercules-b7e6439f0c788ceacc567fbb017d3c7f09913f78.tar.bz2
hercules-b7e6439f0c788ceacc567fbb017d3c7f09913f78.tar.xz
hercules-b7e6439f0c788ceacc567fbb017d3c7f09913f78.zip
Change functions to static where possible (Part 3 - char)
This fixes issues with plugins defining symbols with the same names Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/char/int_clan.c')
-rw-r--r--src/char/int_clan.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/char/int_clan.c b/src/char/int_clan.c
index 1b875d7e1..9fb8ad95e 100644
--- a/src/char/int_clan.c
+++ b/src/char/int_clan.c
@@ -38,7 +38,7 @@
#include <stdio.h>
#include <stdlib.h>
-struct inter_clan_interface inter_clan_s;
+static struct inter_clan_interface inter_clan_s;
struct inter_clan_interface *inter_clan;
/**
@@ -51,7 +51,7 @@ struct inter_clan_interface *inter_clan;
* @param kick_interval Time needed to consider a player inactive and kick it
* @return 0 on failure, 1 on success
*/
-int inter_clan_kick_inactive_members(int clan_id, int kick_interval)
+static int inter_clan_kick_inactive_members(int clan_id, int kick_interval)
{
if (clan_id <= 0) {
ShowError("inter_clan_kick_inactive_members: Invalid clan id received '%d'\n", clan_id);
@@ -81,7 +81,7 @@ int inter_clan_kick_inactive_members(int clan_id, int kick_interval)
* @param clan_id Id of the clan
* @param kick_interval Time needed to consider a player inactive and ignore it on the count
*/
-int inter_clan_count_members(int clan_id, int kick_interval)
+static int inter_clan_count_members(int clan_id, int kick_interval)
{
struct SqlStmt *stmt;
int count = 0;
@@ -130,7 +130,7 @@ int inter_clan_count_members(int clan_id, int kick_interval)
// Must Return
// 1 : ok
// 0 : error
-int inter_clan_parse_frommap(int fd)
+static int inter_clan_parse_frommap(int fd)
{
RFIFOHEAD(fd);