summaryrefslogtreecommitdiff
path: root/src/char/int_rodex.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_rodex.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_rodex.c')
-rw-r--r--src/char/int_rodex.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/char/int_rodex.c b/src/char/int_rodex.c
index ddd019bb8..e70a6bbf5 100644
--- a/src/char/int_rodex.c
+++ b/src/char/int_rodex.c
@@ -37,7 +37,7 @@
#include <stdio.h>
#include <stdlib.h>
-struct inter_rodex_interface inter_rodex_s;
+static struct inter_rodex_interface inter_rodex_s;
struct inter_rodex_interface *inter_rodex;
// Loads new mails of this char_id/account_id
@@ -298,7 +298,7 @@ static bool inter_rodex_checkname(const char *name, int *target_char_id, short *
/// Stores a single message in the database.
/// Returns the message's ID if successful (or 0 if it fails).
-int64 inter_rodex_savemessage(struct rodex_message* msg)
+static int64 inter_rodex_savemessage(struct rodex_message *msg)
{
char sender_name[NAME_LENGTH * 2 + 1];
char receiver_name[NAME_LENGTH * 2 + 1];
@@ -349,7 +349,7 @@ int64 inter_rodex_savemessage(struct rodex_message* msg)
/*==========================================
* Update/Delete mail
*------------------------------------------*/
-bool inter_rodex_updatemail(int64 mail_id, int8 flag)
+static bool inter_rodex_updatemail(int64 mail_id, int8 flag)
{
Assert_retr(false, mail_id > 0);
Assert_retr(false, flag >= 0 && flag <= 4);
@@ -392,7 +392,7 @@ bool inter_rodex_updatemail(int64 mail_id, int8 flag)
/*==========================================
* Packets From Map Server
*------------------------------------------*/
-int inter_rodex_parse_frommap(int fd)
+static int inter_rodex_parse_frommap(int fd)
{
switch(RFIFOW(fd,0))
{
@@ -407,12 +407,12 @@ int inter_rodex_parse_frommap(int fd)
return 1;
}
-int inter_rodex_sql_init(void)
+static int inter_rodex_sql_init(void)
{
return 1;
}
-void inter_rodex_sql_final(void)
+static void inter_rodex_sql_final(void)
{
return;
}