diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-06-11 20:28:06 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-06-11 20:28:06 +0000 |
commit | fc78e51452a0244ee672fca91752eb7d982e2541 (patch) | |
tree | 60f6f06b3e3acf0ad3f29a14ae7aef62fb16b1f7 /src/misc.c | |
parent | 8fa67528583b83a23030d5d358e070586672cc87 (diff) |
Make stristr() const-safe, replace post-increment on iterators with pre-increment, remove now unused variables, made my_memo_lang() in hs_request.c const-safe.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2320 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/misc.c')
-rw-r--r-- | src/misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc.c b/src/misc.c index 02375c96b..976c26ada 100644 --- a/src/misc.c +++ b/src/misc.c @@ -112,9 +112,9 @@ char *strscpy(char *d, const char *s, size_t len) * @param s2 String 2 * @return first occurrence of s2 */ -char *stristr(char *s1, char *s2) +const char *stristr(const char *s1, const char *s2) { - register char *s = s1, *d = s2; + register const char *s = s1, *d = s2; while (*s1) { if (tolower(*s1) == tolower(*d)) { |