summaryrefslogtreecommitdiff
path: root/src/language.c
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-16 06:19:37 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-16 06:19:37 +0000
commit22e8e87a00404725f32f4a53f57809d917876914 (patch)
tree0833c986ac7149a61227830d3472bb83fb94172e /src/language.c
parent15a2e1d4e4ffae3b351cb45183e9a868af37ead1 (diff)
Patch from DukePyrolator to replace all calls to match_wild() and match_wild_nocase() to use Anope::Match() instead. Also changes line-endings on wildcard.cpp to Unix-style, as well as fixes a small compile warning in language.c.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2080 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/language.c')
-rw-r--r--src/language.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/language.c b/src/language.c
index 13df53807..85d50fa77 100644
--- a/src/language.c
+++ b/src/language.c
@@ -130,7 +130,7 @@ static void load_lang(int index, const char *filename)
} else {
langtexts[index][i] = new char[len + 1];
fseek(f, pos, SEEK_SET);
- if (fread(langtexts[index][i], 1, len, f) != len) {
+ if ((int32)fread(langtexts[index][i], 1, len, f) != len) {
alog("Failed to read string %d in language %d (%s)",
i, index, filename);
while (--i >= 0) {