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

Unified Diff: tests/syscalls_deprecated/srpc_av.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_hw/srpc_hw.c ('k') | tests/unittests/shared/srpc/types_srpc_test.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/syscalls_deprecated/srpc_av.c
===================================================================
--- tests/syscalls_deprecated/srpc_av.c (revision 3898)
+++ tests/syscalls_deprecated/srpc_av.c (working copy)
@@ -33,7 +33,7 @@
char message[kMessageSize];
snprintf(message, kMessageSize, "Function %s returned %d\n", func, retval);
/* SRPC will free string, so use strndup to make a copy */
- out_args[0]->u.sval.str = strndup(message, kMessageSize);
+ out_args[0]->arrays.str = strndup(message, kMessageSize);
return NACL_SRPC_RESULT_OK;
}
@@ -181,7 +181,7 @@
return;
}
- out_args[0]->u.sval.str = strdup("SUCCESS");
+ out_args[0]->arrays.str = strdup("SUCCESS");
rpc->result = NACL_SRPC_RESULT_OK;
done->Run(done);
}
« no previous file with comments | « tests/srpc_hw/srpc_hw.c ('k') | tests/unittests/shared/srpc/types_srpc_test.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698