match_header and spam_filter: fixes 64 bit warnings

This commit is contained in:
Jérôme Duval 2013-05-10 20:55:34 +02:00
parent a8dca85557
commit 5f3e33091c
3 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ RuleFilterConfig::RuleFilterConfig(const BMessage *settings)
chain = settings->FindInt32("argument");
else
chain = -1;
printf("Chain: %ld\n",chain);
printf("Chain: %" B_PRId32 "\n",chain);
BMailAccounts accounts;
for (int32 i = 0; i < accounts.CountAccounts(); i++) {

View File

@ -43,7 +43,7 @@ RuleFilter::RuleFilter(MailProtocol& protocol, AddonSettings* addonSettings)
fMatcher.SetPattern(regex, false);
settings->FindString("argument",&fArg);
settings->FindInt32("do_what",(long *)&fDoWhat);
settings->FindInt32("do_what", (int32*)&fDoWhat);
if (fDoWhat == Z_SET_REPLY)
settings->FindInt32("argument", &fReplyAccount);
}

View File

@ -414,7 +414,7 @@ AGMSBayesianSpamFilterConfig::ShowSpamServerConfigurationWindow () {
maximizeCommand.what = B_SET_PROPERTY;
maximizeCommand.AddBool ("data", false);
maximizeCommand.AddSpecifier ("Minimize");
maximizeCommand.AddSpecifier ("Window", 0L);
maximizeCommand.AddSpecifier ("Window", (int32)0);
errorCode = messengerToServer.SendMessage (&maximizeCommand, &replyMessage);
if (errorCode != B_OK)
goto ErrorExit;