diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:10 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:10 +0000 |
commit | c32c3c99a1e1d395c88e901de200c21b9ca1e84f (patch) | |
tree | e272e1dc395df2947314ff24f0f9ce12b94f8f53 /src/servers.c | |
parent | 431918ceacfd5a580d4f28a8ae6077c9bbc44b99 (diff) |
Made all protocol modules able to be compiled via mostly constifying strings.
Due to the above, also had to constify strings in many other areas.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1202 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/servers.c')
-rw-r--r-- | src/servers.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/servers.c b/src/servers.c index debdbe628..9953b5b4e 100644 --- a/src/servers.c +++ b/src/servers.c @@ -6,8 +6,8 @@ * Please read COPYING and README for further details. * * Based on the original code of Epona by Lara. - * Based on the original code of Services by Andy Church. - * + * Based on the original code of Services by Andy Church. + * * $Id$ * */ @@ -118,7 +118,7 @@ Server *next_server(int flags) * @return Server Struct */ Server *new_server(Server * uplink, const char *name, const char *desc, - uint16 flags, char *suid) + uint16 flags, const char *suid) { Server *serv; @@ -351,8 +351,8 @@ int anope_check_sync(const char *name) * @param numeric Server Numberic/SUID * @return void */ -void do_server(const char *source, char *servername, char *hops, - char *descript, char *numeric) +void do_server(const char *source, const char *servername, const char *hops, + const char *descript, const char *numeric) { Server *s; @@ -383,7 +383,7 @@ void do_server(const char *source, char *servername, char *hops, * @param av Agruments as part of the SQUIT * @return void */ -void do_squit(const char *source, int ac, char **av) +void do_squit(const char *source, int ac, const char **av) { char buf[BUFSIZE]; Server *s; @@ -433,16 +433,16 @@ void do_squit(const char *source, int ac, char **av) /** * Handle parsing the CAPAB/PROTOCTL messages * @param ac Number of arguments in av - * @param av Agruments + * @param av Agruments * @return void */ -void capab_parse(int ac, char **av) +void capab_parse(int ac, const char **av) { int i; int j; char *s, *tmp; - char *temp; + const char *temp; for (i = 0; i < ac; i++) { temp = av[i]; @@ -480,7 +480,7 @@ void capab_parse(int ac, char **av) * @param server Server Setting the mode * @return int 0 if not found, 1 if found */ -int is_ulined(char *server) +int is_ulined(const char *server) { int j; |