imap: fixes 64 bit warnings
This commit is contained in:
@@ -297,7 +297,7 @@ IMAPProtocol::SendCommand(const char* command, int32 commandID)
|
|||||||
return B_NO_MEMORY;
|
return B_NO_MEMORY;
|
||||||
|
|
||||||
static char cmd[256];
|
static char cmd[256];
|
||||||
::sprintf(cmd, "A%.7ld %s"CRLF, commandID, command);
|
::sprintf(cmd, "A%.7" B_PRId32 " %s"CRLF, commandID, command);
|
||||||
|
|
||||||
TRACE("_SendCommand: %s\n", cmd);
|
TRACE("_SendCommand: %s\n", cmd);
|
||||||
int commandLength = strlen(cmd);
|
int commandLength = strlen(cmd);
|
||||||
@@ -347,7 +347,7 @@ IMAPProtocol::HandleResponse(int32 commandID, bigtime_t timeout,
|
|||||||
for (std::vector<int32>::iterator it = fOngoingCommands.begin();
|
for (std::vector<int32>::iterator it = fOngoingCommands.begin();
|
||||||
it != fOngoingCommands.end(); it++) {
|
it != fOngoingCommands.end(); it++) {
|
||||||
static char idString[8];
|
static char idString[8];
|
||||||
::sprintf(idString, "A%.7ld", *it);
|
::sprintf(idString, "A%.7" B_PRId32, *it);
|
||||||
if (line.FindFirst(idString) >= 0) {
|
if (line.FindFirst(idString) >= 0) {
|
||||||
if (*it == commandID) {
|
if (*it == commandID) {
|
||||||
BString result = IMAPParser::ExtractElementAfter(line,
|
BString result = IMAPParser::ExtractElementAfter(line,
|
||||||
|
|||||||
@@ -240,7 +240,7 @@ IMAPStorage::DeleteMessage(int32 uid)
|
|||||||
BPath filePath = fMailboxPath;
|
BPath filePath = fMailboxPath;
|
||||||
filePath.Append(storageEntry.fileName);
|
filePath.Append(storageEntry.fileName);
|
||||||
BEntry entry(filePath.Path());
|
BEntry entry(filePath.Path());
|
||||||
TRACE("IMAPStorage::DeleteMessage %s, %ld\n", filePath.Path(), uid);
|
TRACE("IMAPStorage::DeleteMessage %s, %" B_PRId32 "\n", filePath.Path(), uid);
|
||||||
|
|
||||||
status_t status = entry.Remove();
|
status_t status = entry.Remove();
|
||||||
if (status != B_OK)
|
if (status != B_OK)
|
||||||
|
|||||||
Reference in New Issue
Block a user