summaryrefslogtreecommitdiff
path: root/src/emap/send.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-28 03:56:12 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-28 03:56:12 +0300
commit447787839e492410611ebe16d01fd5e1ae52e045 (patch)
tree0df52644e225f65e2d23f358dc4db5906c1595be /src/emap/send.c
parentd37fe74804b94065259703509b4b3dc3f53c30a5 (diff)
downloadevol-hercules-447787839e492410611ebe16d01fd5e1ae52e045.tar.gz
evol-hercules-447787839e492410611ebe16d01fd5e1ae52e045.tar.bz2
evol-hercules-447787839e492410611ebe16d01fd5e1ae52e045.tar.xz
evol-hercules-447787839e492410611ebe16d01fd5e1ae52e045.zip
Fix different warnings.
Diffstat (limited to 'src/emap/send.c')
-rw-r--r--src/emap/send.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/emap/send.c b/src/emap/send.c
index 7078410..da321fb 100644
--- a/src/emap/send.c
+++ b/src/emap/send.c
@@ -274,7 +274,7 @@ void send_changemusic_brodcast(const int map, const char *music)
return;
struct block_list bl;
- const int sz = strlen (music) + 5;
+ const int sz = (int)strlen(music) + 5;
char *buf;
CREATE(buf, char, sz);
@@ -292,7 +292,7 @@ void send_changenpc_title (TBL_PC *sd, const int npcId, const char *name)
return;
const int fd = sd->fd;
- const int len = strlen (name);
+ const int len = (int)strlen(name);
const int sz = len + 5 + 4 + 2;
WFIFOHEAD (fd, sz);
WFIFOW (fd, 0) = 0xb06;
@@ -322,7 +322,7 @@ void send_slave_say(TBL_PC *sd,
{
if (!sd || !message)
return;
- const int len = 24 + 7 + strlen(message);
+ const int len = 24 + 7 + (int)strlen(message);
char *buf = NULL;
CREATE(buf, char, len);
@@ -353,7 +353,7 @@ void send_client_command(TBL_PC *sd, const char *const command)
if (!data || data->clientVersion < 8)
return;
- const unsigned int len = strlen(command);
+ const unsigned int len = (unsigned int)strlen(command);
const int fd = sd->fd;
WFIFOHEAD (fd, len);
WFIFOW (fd, 0) = 0xb16;
@@ -451,7 +451,7 @@ void send_pc_skin(int fd, int npcId, const char *const skin)
if (!data || data->clientVersion < 15)
return;
- const int sz = strlen(skin) + 9;
+ const int sz = (int)strlen(skin) + 9;
WFIFOHEAD (fd, sz);
WFIFOW(fd, 0) = 0xb1c;
WFIFOW(fd, 2) = sz;