diff --git a/ipc/ril/Ril.cpp b/ipc/ril/Ril.cpp index cf07251ec694..4146252a5588 100644 --- a/ipc/ril/Ril.cpp +++ b/ipc/ril/Ril.cpp @@ -233,7 +233,7 @@ RilClient::OnFileCanReadWithoutBlocking(int fd) while (true) { if (!mIncoming) { mIncoming = new RilRawData(); - int ret = read(fd, mIncoming->mData, RilRawData.MAX_DATA_SIZE); + int ret = read(fd, mIncoming->mData, RilRawData::MAX_DATA_SIZE); if (ret <= 0) { LOG("Cannot read from network, error %d\n", ret); // At this point, assume that we can't actually access @@ -247,7 +247,7 @@ RilClient::OnFileCanReadWithoutBlocking(int fd) } mIncoming->mSize = ret; sConsumer->MessageReceived(mIncoming.forget()); - if (ret < RilRawData.MAX_DATA_SIZE) { + if (ret < RilRawData::MAX_DATA_SIZE) { return; } } diff --git a/ipc/ril/Ril.h b/ipc/ril/Ril.h index 05c928746362..c9fc5fd1e901 100644 --- a/ipc/ril/Ril.h +++ b/ipc/ril/Ril.h @@ -47,8 +47,6 @@ namespace base { class MessageLoop; } -class nsIThread; - namespace mozilla { namespace ipc {