From 7c069d221a7cb794224e374b1572e20e2f1a7136 Mon Sep 17 00:00:00 2001 From: shatty Date: Sun, 21 Nov 2004 05:09:18 +0000 Subject: [PATCH] address compiler warnings git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10079 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../mail_daemon/inbound_protocols/imap/imap_client.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/add-ons/mail_daemon/inbound_protocols/imap/imap_client.cpp b/src/add-ons/mail_daemon/inbound_protocols/imap/imap_client.cpp index ce09c0a49c..2e5a590084 100644 --- a/src/add-ons/mail_daemon/inbound_protocols/imap/imap_client.cpp +++ b/src/add-ons/mail_daemon/inbound_protocols/imap/imap_client.cpp @@ -56,6 +56,13 @@ class IMAP4Client : public BRemoteMailStorageProtocol { virtual status_t CreateMailbox(const char *mailbox); virtual status_t DeleteMailbox(const char *mailbox); + + virtual status_t GetMessage( + const char* uid, + BPositionIO** out_file, BMessage* out_headers, + BPath* out_folder_location) { return BRemoteMailStorageProtocol::GetMessage(uid, out_file, out_headers, out_folder_location); } + + virtual status_t DeleteMessage(const char* uid) { return BRemoteMailStorageProtocol::DeleteMessage(uid); } void GetUniqueIDs(); @@ -785,7 +792,7 @@ class IMAP4PartialReader : public BPositionIO { } ssize_t ReadAt(off_t pos, void *buffer, size_t amountToWrite) { ssize_t bytes; - while ((bytes = slave->ReadAt(pos,buffer,amountToWrite)) < amountToWrite && !done) { + while ((unsigned)(bytes = slave->ReadAt(pos,buffer,amountToWrite)) < amountToWrite && !done) { slave->Seek(0,SEEK_END); FetchMessage("RFC822.TEXT"); done = true;