From ffdfdaf272814356b101c6cae497bb6c7f5883a1 Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Thu, 25 Mar 1999 03:03:47 +0000 Subject: [PATCH] work to get this stuff to build on Linux changes to remove some warnings Read() no longer takes an offset as the second parameter, so fixing that more changes coming... git-svn-id: svn://10.0.0.236/trunk@25027 18797224-902f-48f8-a5cc-f745e15eee43 --- .../local/tests/mailbox/nsMsgMailboxParserStub.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mozilla/mailnews/local/tests/mailbox/nsMsgMailboxParserStub.cpp b/mozilla/mailnews/local/tests/mailbox/nsMsgMailboxParserStub.cpp index 709f1651de2..74d8f5d9251 100644 --- a/mozilla/mailnews/local/tests/mailbox/nsMsgMailboxParserStub.cpp +++ b/mozilla/mailnews/local/tests/mailbox/nsMsgMailboxParserStub.cpp @@ -99,7 +99,8 @@ NS_IMETHODIMP nsMsgMailboxParserStub::OnStartBinding(nsIURL* aURL, const char *a NS_IMETHODIMP nsMsgMailboxParserStub::OnDataAvailable(nsIURL* aURL, nsIInputStream *pIStream, PRUint32 length) { - PRUint32 totalBytesRead, len = 0; + PRUint32 totalBytesRead = 0; + PRUint32 len = 0; // mscott - for small mailboxes, it might be useful to print the data we get back out to the screen. // however, as our test files get bigger, that would be information overload and we'd really just like // to see (or count) the number of times OnDataAvailable has been called. @@ -110,13 +111,13 @@ NS_IMETHODIMP nsMsgMailboxParserStub::OnDataAvailable(nsIURL* aURL, nsIInputStre nsresult err; char buffer[1000]; - PRUint32 i; PRUint32 numToRead = length > 1000 ? 1000 : length; - err = pIStream->Read(buffer, 0, numToRead, &len); + err = pIStream->Read(buffer, numToRead, &len); totalBytesRead += len; #if 0 if (err == NS_OK) { + PRUint32 i = 0; for (i=0; i