summaryrefslogtreecommitdiff
path: root/src/misc.c
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:10 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:10 +0000
commitc32c3c99a1e1d395c88e901de200c21b9ca1e84f (patch)
treee272e1dc395df2947314ff24f0f9ce12b94f8f53 /src/misc.c
parent431918ceacfd5a580d4f28a8ae6077c9bbc44b99 (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/misc.c')
-rw-r--r--src/misc.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/misc.c b/src/misc.c
index 24db06728..79182eafb 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -7,9 +7,9 @@
* 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.
- *
- * $Id$
+ * Based on the original code of Services by Andy Church.
+ *
+ * $Id$
*
*/
@@ -300,7 +300,7 @@ int match_wild_nocase(const char *pattern, const char *str)
* The callback should be of type range_callback_t, which is defined as:
* int (*range_callback_t)(User *u, int num, va_list args)
* @param numstr
- * @param count_ret
+ * @param count_ret
* @param callback Call back function
* @param u User Struct
* @param ... various args
@@ -787,7 +787,7 @@ char *myStrSubString(const char *src, int start, int end)
/*************************************************************************/
-void protocol_debug(char *source, char *cmd, int argc, char **argv)
+void protocol_debug(char *source, char *cmd, int argc, const char **argv)
{
int i;
@@ -851,7 +851,7 @@ void doCleanBuffer(char *str)
* @param killer whom is doing the killing
* @return void
*/
-void EnforceQlinedNick(char *nick, char *killer)
+void EnforceQlinedNick(const char *nick, const char *killer)
{
User *u2;
@@ -871,7 +871,7 @@ void EnforceQlinedNick(char *nick, char *killer)
* @param int Check if botserv bots
* @return int
*/
-int nickIsServices(char *tempnick, int bot)
+int nickIsServices(const char *tempnick, int bot)
{
int found = 0;
char *s, *nick;
@@ -1106,7 +1106,7 @@ u_int32_t getrandom32(void)
/**
* Determine if we need to send the TOKEN
- * @param token1
+ * @param token1
* @param token2
* @return token to send
*/
@@ -1201,7 +1201,7 @@ char *str_signed(unsigned char *str)
/**
* Strip the mode prefix from the given string.
- * Useful for using the modes stored in things like ircd->ownerset etc..
+ * Useful for using the modes stored in things like ircd->ownerset etc..
**/
char *stripModePrefix(const char *str)