Browse code

fixed warnings. in particular, CL_VIRUS does not belong to the enum that rc uses, and this would return an incorrect code. this type of warning should be an error.

Micah Snyder authored on 2017/08/09 06:37:55
Showing 1 changed files
... ...
@@ -1224,7 +1224,7 @@ parseRootMHTML(mbox_ctx *mctx, message *m, text *t)
1224 1224
 	if (input == NULL)
1225 1225
 		return OK;
1226 1226
 
1227
-	htmlDoc = htmlReadMemory(input->data, input->len, "mhtml.html", NULL, CLAMAV_MIN_XMLREADER_FLAGS);
1227
+	htmlDoc = htmlReadMemory((char*)input->data, input->len, "mhtml.html", NULL, CLAMAV_MIN_XMLREADER_FLAGS);
1228 1228
 	if (htmlDoc == NULL) {
1229 1229
 		cli_dbgmsg("parseRootMHTML: cannot intialize read html document\n");
1230 1230
 #if HAVE_JSON
... ...
@@ -1279,7 +1279,7 @@ parseRootMHTML(mbox_ctx *mctx, message *m, text *t)
1279 1279
 		break;
1280 1280
 
1281 1281
 	case CL_VIRUS:
1282
-		rc = CL_VIRUS;
1282
+		rc = VIRUS;
1283 1283
 		break;
1284 1284
 
1285 1285
 	default: