compiler warning fixes + one real bug in dcc-chat

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@850 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-11-18 15:31:28 +00:00 committed by cras
commit 14e5dc8b8e
5 changed files with 7 additions and 7 deletions

View file

@ -66,7 +66,7 @@ int level_get(const char *level)
match = 0;
for (n = 0; levels[n] != NULL; n++) {
if (strncmp(levels[n], level, len) == 0) {
if (strlen(levels[n]) == len) {
if ((int)strlen(levels[n]) == len) {
/* full match */
return 1L << n;
}