diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-10 16:56:24 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-10 16:56:24 +0000 |
commit | b496e60eb0d18fd4608bf2f75cacfbb994d4a40a (patch) | |
tree | 73943842c4feb804005e684c53d32a106b1acdde /include/extern.h | |
parent | 2bf017a0e1f18a7609908a1c925f60d0fd92e26d (diff) |
Fix compile errors in hs_* modules, as well as add some const-safeness to HostServ functions.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1980 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/extern.h')
-rw-r--r-- | include/extern.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/extern.h b/include/extern.h index 124afccff..e99832823 100644 --- a/include/extern.h +++ b/include/extern.h @@ -254,7 +254,7 @@ E char *s_HostServ; E void load_hs_dbase(); E void save_hs_dbase(); E int do_on_id(User * u); -E void delHostCore(char *nick); +E void delHostCore(const char *nick); E void hostserv(User * u, char *buf); E char *PIDFilename; @@ -478,15 +478,15 @@ E void helpserv_init(); /**** hostserv.c ****/ E void get_hostserv_stats(long *nrec, long *memuse); E void hostserv_init(); -E void addHostCore(char *nick, char *vIdent, char *vhost, const char *creator, int32 tmp_time); +E void addHostCore(const char *nick, char *vIdent, char *vhost, const char *creator, int32 tmp_time); E char *getvIdent(char *nick); E char *getvHost(char *nick); E int is_host_remover(User * u); E int is_host_setter(User *u); E HostCore *hostCoreListHead(); -E HostCore *findHostCore(HostCore * head, char *nick, bool *found); -E HostCore *createHostCorelist(HostCore * next, char *nick, char *vIdent, char *vHost, const char *creator, int32 tmp_time); -E HostCore *insertHostCore(HostCore * head, HostCore * prev, char *nick, char *vIdent, char *vHost, const char *creator, int32 tmp_time); +E HostCore *findHostCore(HostCore * head, const char *nick, bool *found); +E HostCore *createHostCorelist(HostCore * next, const char *nick, char *vIdent, char *vHost, const char *creator, int32 tmp_time); +E HostCore *insertHostCore(HostCore * head, HostCore * prev, const char *nick, char *vIdent, char *vHost, const char *creator, int32 tmp_time); E HostCore *deleteHostCore(HostCore * head, HostCore * prev); E void set_lastmask(User * u); |