[cvs] bogofilter/src mime.c,1.38,1.39
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <m-...@us...> - 2005-01-09 05:28:40
|
Update of /cvsroot/bogofilter/bogofilter/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12317/src Modified Files: mime.c Log Message: Cast the right argument. Index: mime.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/mime.c,v retrieving revision 1.38 retrieving revision 1.39 diff -u -d -r1.38 -r1.39 --- mime.c 9 Jan 2005 02:39:41 -0000 1.38 +++ mime.c 9 Jan 2005 05:28:32 -0000 1.39 @@ -441,7 +441,7 @@ msg_state->mime_disposition = MIME_DISPOSITION_UNKNOWN; for (i = 0; i < COUNTOF(mime_disposition_table); i += 1) { struct disposition_s *dis = mime_disposition_table + i; - if (strcasecmp(w, (const char *)dis->name) == 0) { + if (strcasecmp((const char *)w, dis->name) == 0) { msg_state->mime_disposition = dis->disposition; if (DEBUG_MIME(1)) fprintf(dbgout, "*** mime_disposition: %s\n", text->text); @@ -479,7 +479,7 @@ msg_state->mime_encoding = MIME_ENCODING_UNKNOWN; for (i = 0; i < COUNTOF(mime_encoding_table); i += 1) { struct encoding_s *enc = mime_encoding_table + i; - if (strcasecmp(w, (const char *)enc->name) == 0) { + if (strcasecmp((const char *)w, enc->name) == 0) { msg_state->mime_encoding = enc->encoding; if (DEBUG_MIME(1)) fprintf(dbgout, "*** mime_encoding: %s\n", text->text); @@ -505,7 +505,7 @@ msg_state->mime_type = MIME_TYPE_UNKNOWN; for (typ = mime_type_table; typ < mime_type_table + COUNTOF(mime_type_table); typ += 1) { - if (strncasecmp(w, (const char *)typ->name, typ->len) == 0) { + if (strncasecmp((const char *)w, typ->name, typ->len) == 0) { msg_state->mime_type = typ->type; if (DEBUG_MIME(1) || DEBUG_LEXER(1)) fprintf(dbgout, "*** mime_type: %s\n", text->text); @@ -551,7 +551,7 @@ msg_state->mime_type = MIME_TYPE_UNKNOWN; for (typ = mime_type_table; typ < mime_type_table + COUNTOF(mime_type_table); typ += 1) { - if (strncasecmp(w, (const char *)typ->name, typ->len) == 0) { + if (strncasecmp((const char *)w, typ->name, typ->len) == 0) { msg_state->mime_type = typ->type; if (DEBUG_MIME(1) || DEBUG_LEXER(1)) fprintf(dbgout, "*** mime_type: %s\n", text->text); |