Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_net_address_private_rpc_server.cc

Issue 9802037: Pass correct parameters in NaCl proxy for CreateFromIPv[46]Address. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_net_address_private_rpc_server.cc
diff --git a/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_net_address_private_rpc_server.cc b/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_net_address_private_rpc_server.cc
index f8e95ba3f15d20d64f78a2f1883de54faf3ecc38..bf9566f04eae0ea29c0587d6596ced9c7f4b0611 100644
--- a/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_net_address_private_rpc_server.cc
+++ b/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_net_address_private_rpc_server.cc
@@ -284,7 +284,6 @@ PpbNetAddressPrivateRpcServer::PPB_NetAddress_Private_CreateFromIPv4Address(
int32_t port,
// output
nacl_abi_size_t* addr_bytes, char* addr) {
- UNREFERENCED_PARAMETER(ip);
NaClSrpcClosureRunner runner(done);
rpc->result = NACL_SRPC_RESULT_APP_ERROR;
@@ -298,7 +297,7 @@ PpbNetAddressPrivateRpcServer::PPB_NetAddress_Private_CreateFromIPv4Address(
}
PPBNetAddressPrivateInterface()->CreateFromIPv4Address(
- reinterpret_cast<uint8_t*>(addr), static_cast<uint16_t>(port),
+ reinterpret_cast<uint8_t*>(ip), static_cast<uint16_t>(port),
reinterpret_cast<PP_NetAddress_Private*>(addr));
DebugPrintf("PPB_NetAddress_Private::CreateFromIPv4Address\n");
@@ -316,7 +315,6 @@ PpbNetAddressPrivateRpcServer::PPB_NetAddress_Private_CreateFromIPv6Address(
int32_t port,
// output
nacl_abi_size_t* addr_bytes, char* addr) {
- UNREFERENCED_PARAMETER(ip);
NaClSrpcClosureRunner runner(done);
rpc->result = NACL_SRPC_RESULT_APP_ERROR;
@@ -330,7 +328,7 @@ PpbNetAddressPrivateRpcServer::PPB_NetAddress_Private_CreateFromIPv6Address(
}
PPBNetAddressPrivateInterface()->CreateFromIPv6Address(
- reinterpret_cast<uint8_t*>(addr), static_cast<uint32_t>(scope_id),
+ reinterpret_cast<uint8_t*>(ip), static_cast<uint32_t>(scope_id),
static_cast<uint16_t>(port),
reinterpret_cast<PP_NetAddress_Private*>(addr));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698