From 903dbea2b1c4072fcd4538bf67feaf1cf968bac9 Mon Sep 17 00:00:00 2001 From: om Date: Sat, 1 Jul 2006 14:40:53 +0000 Subject: Change WriteChannelWithServ and it's _NoFormat to take a const char* servername rather than char* - although it doesn't seem to be used :< Lose some more casts in m_spanningtree, unneeded because of above changes Make xline_set_creation_time() take const char* rather than char* for it's first parameter, lose more casts in spanningtree because of this Make do_whois take a const char* rather chan char* nick, lose yet more casts git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4095 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/commands/cmd_whois.h | 2 +- include/helperfuncs.h | 4 ++-- include/xline.h | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/commands/cmd_whois.h b/include/commands/cmd_whois.h index 5e62e64a3..75abc6053 100644 --- a/include/commands/cmd_whois.h +++ b/include/commands/cmd_whois.h @@ -28,7 +28,7 @@ #include "users.h" #include "channels.h" -void do_whois(userrec* user, userrec* dest,unsigned long signon, unsigned long idle, char* nick); +void do_whois(userrec* user, userrec* dest,unsigned long signon, unsigned long idle, const char* nick); class cmd_whois : public command_t { diff --git a/include/helperfuncs.h b/include/helperfuncs.h index 5eb6e22d8..2fa47bffe 100644 --- a/include/helperfuncs.h +++ b/include/helperfuncs.h @@ -54,7 +54,7 @@ void WriteFrom(int sock, userrec *user,char* text, ...); void WriteTo(userrec *source, userrec *dest,char *data, ...); void WriteChannel(chanrec* Ptr, userrec* user, char* text, ...); void WriteChannelLocal(chanrec* Ptr, userrec* user, char* text, ...); -void WriteChannelWithServ(char* ServName, chanrec* Ptr, char* text, ...); +void WriteChannelWithServ(const char* ServName, chanrec* Ptr, const char* text, ...); void ChanExceptSender(chanrec* Ptr, userrec* user, char status, char* text, ...); void WriteCommon(userrec *u, char* text, ...); void WriteCommonExcept(userrec *u, char* text, ...); @@ -66,7 +66,7 @@ void WriteFrom_NoFormat(int sock, userrec *user,const char* text); void WriteTo_NoFormat(userrec *source, userrec *dest,const char *data); void WriteChannel_NoFormat(chanrec* Ptr, userrec* user, const char* text); void WriteChannelLocal_NoFormat(chanrec* Ptr, userrec* user, const char* text); -void WriteChannelWithServ_NoFormat(char* ServName, chanrec* Ptr, const char* text); +void WriteChannelWithServ_NoFormat(const char* ServName, chanrec* Ptr, const char* text); void ChanExceptSender_NoFormat(chanrec* Ptr, userrec* user, char status, const char* text); void WriteCommon_NoFormat(userrec *u, const char* text); void WriteCommonExcept_NoFormat(userrec *u, const char* text); diff --git a/include/xline.h b/include/xline.h index a6c708f9a..15ae609d2 100644 --- a/include/xline.h +++ b/include/xline.h @@ -158,10 +158,10 @@ void stats_q(userrec* user); void stats_z(userrec* user); void stats_e(userrec* user); -void gline_set_creation_time(char* host, time_t create_time); -void qline_set_creation_time(char* nick, time_t create_time); -void zline_set_creation_time(char* ip, time_t create_time); -void eline_set_creation_time(char* host, time_t create_time); +void gline_set_creation_time(const char* host, time_t create_time); +void qline_set_creation_time(const char* nick, time_t create_time); +void zline_set_creation_time(const char* ip, time_t create_time); +void eline_set_creation_time(const char* host, time_t create_time); bool zline_make_global(const char* ipaddr); bool qline_make_global(const char* nickname); -- cgit v1.2.3