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

Unified Diff: src/shared/srpc/rpc_service.c

Issue 5622003: Restructure the structs/unions involved in SRPC argument passing. This will... (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 10 years 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 | « src/shared/srpc/rpc_serialize.c ('k') | src/shared/srpc/rpc_universal.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/shared/srpc/rpc_service.c
===================================================================
--- src/shared/srpc/rpc_service.c (revision 3898)
+++ src/shared/srpc/rpc_service.c (working copy)
@@ -434,13 +434,12 @@
done->Run(done);
return;
}
- if (out_args[0]->u.caval.count >=
- rpc->channel->server->service_string_length) {
- strncpy(out_args[0]->u.caval.carr,
+ if (out_args[0]->u.count >= rpc->channel->server->service_string_length) {
+ strncpy(out_args[0]->arrays.carr,
rpc->channel->server->service_string,
rpc->channel->server->service_string_length);
/* Set the length of the string actually returned. */
- out_args[0]->u.caval.count = rpc->channel->server->service_string_length;
+ out_args[0]->u.count = rpc->channel->server->service_string_length;
rpc->result = NACL_SRPC_RESULT_OK;
}
done->Run(done);
« no previous file with comments | « src/shared/srpc/rpc_serialize.c ('k') | src/shared/srpc/rpc_universal.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698