From 31544d2b6973931be7fdec898ea3672bea831de2 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Thu, 30 Aug 2012 17:37:27 -0700 Subject: Fix compiler errors of C++ conversion --- src/map/tmw.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/map/tmw.hpp') diff --git a/src/map/tmw.hpp b/src/map/tmw.hpp index 5b20a6c..71de462 100644 --- a/src/map/tmw.hpp +++ b/src/map/tmw.hpp @@ -4,11 +4,12 @@ #include "map.hpp" -int tmw_CheckChatSpam (struct map_session_data *sd, char *message); -int tmw_ShorterStrlen (char *s1, char *s2); -int tmw_CheckChatLameness (struct map_session_data *sd, char *message); +int tmw_CheckChatSpam (struct map_session_data *sd, const char *message); +int tmw_ShorterStrlen (const char *s1, const char *s2); +int tmw_CheckChatLameness (struct map_session_data *sd, const char *message); +__attribute__((format(printf, 1, 2))) void tmw_GmHackMsg (const char *fmt, ...); -void tmw_AutoBan (struct map_session_data *sd, char *reason, int length); +void tmw_AutoBan (struct map_session_data *sd, const char *reason, int length); void tmw_TrimStr (char *str); #endif /* TMW_H_ */ -- cgit v1.2.3-60-g2f50