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

Unified Diff: tests/srpc/srpc_nrd_server.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 | « tests/srpc/srpc_nrd_client.c ('k') | tests/srpc/srpc_test.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/srpc/srpc_nrd_server.c
===================================================================
--- tests/srpc/srpc_nrd_server.c (revision 3898)
+++ tests/srpc/srpc_nrd_server.c (working copy)
@@ -87,12 +87,12 @@
printf("ServerThread: GetMsg\n");
- if (out_args[0]->u.caval.count >= strlen(message)) {
- strncpy(out_args[0]->u.caval.carr, message, strlen(message) + 1);
+ if (out_args[0]->u.count >= strlen(message)) {
+ strncpy(out_args[0]->arrays.carr, message, strlen(message) + 1);
rpc->result = NACL_SRPC_RESULT_OK;
} else {
- printf("GetMsg: u.caval.count %u is too small %u\n",
- (unsigned) out_args[0]->u.caval.count,
+ printf("GetMsg: u.count %u is too small %u\n",
+ (unsigned) out_args[0]->u.count,
(unsigned) strlen(message));
++errors_seen;
rpc->result = NACL_SRPC_RESULT_APP_ERROR;
@@ -160,7 +160,7 @@
NaClSrpcArg **out_args,
NaClSrpcClosure *done) {
int desc = in_args[0]->u.hval;
- char* compare_string = in_args[1]->u.sval.str;
+ char* compare_string = in_args[1]->arrays.str;
char* map_addr;
struct stat st;
« no previous file with comments | « tests/srpc/srpc_nrd_client.c ('k') | tests/srpc/srpc_test.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698