diff options
author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-14 20:57:20 +0000 |
---|---|---|
committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-14 20:57:20 +0000 |
commit | 6c55e0a529c7f1216ff6f63a4fc77ea06a2a3a38 (patch) | |
tree | 91b0841faf23087ebe0c74dd4269d181a383f1e7 /src/compat.c | |
parent | 069409cd99cf78ab8bf87a1fe69a833576414fd3 (diff) |
Insane commit of doom: s/ \t/g
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1681 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/compat.c')
-rw-r--r-- | src/compat.c | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/src/compat.c b/src/compat.c index 0279efec8..5b1a6f665 100644 --- a/src/compat.c +++ b/src/compat.c @@ -19,39 +19,39 @@ #if !HAVE_STRICMP && !HAVE_STRCASECMP /* stricmp, strnicmp: Case-insensitive versions of strcmp() and - * strncmp(). + * strncmp(). */ int stricmp(const char *s1, const char *s2) { - register int c; - - while ((c = tolower(*s1)) == tolower(*s2)) { - if (c == 0) - return 0; - s1++; - s2++; - } - if (c < tolower(*s2)) - return -1; - return 1; + register int c; + + while ((c = tolower(*s1)) == tolower(*s2)) { + if (c == 0) + return 0; + s1++; + s2++; + } + if (c < tolower(*s2)) + return -1; + return 1; } int strnicmp(const char *s1, const char *s2, size_t len) { - register int c; - - if (!len) - return 0; - while ((c = tolower(*s1)) == tolower(*s2) && len > 0) { - if (c == 0 || --len == 0) - return 0; - s1++; - s2++; - } - if (c < tolower(*s2)) - return -1; - return 1; + register int c; + + if (!len) + return 0; + while ((c = tolower(*s1)) == tolower(*s2) && len > 0) { + if (c == 0 || --len == 0) + return 0; + s1++; + s2++; + } + if (c < tolower(*s2)) + return -1; + return 1; } #endif |