diff options
author | Mark D. Roth <roth@google.com> | 2017-06-12 08:29:17 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-12 08:29:17 -0700 |
commit | 696560cf35a49a0e92249ea92fda67fafcf144c5 (patch) | |
tree | d9c65fd67271328cf9ce7b61d61e8582dfd374d7 /src/core/lib/security/credentials/fake | |
parent | c7d9c804966d12d852d08f4f132c716846a10ece (diff) | |
parent | 8d5e60b8787d1a6aefca037a08799f58a22aa78d (diff) |
Merge pull request #11391 from markdroth/channel_args_helpers
Add helpers for creating channel args.
Diffstat (limited to 'src/core/lib/security/credentials/fake')
-rw-r--r-- | src/core/lib/security/credentials/fake/fake_credentials.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/core/lib/security/credentials/fake/fake_credentials.c b/src/core/lib/security/credentials/fake/fake_credentials.c index 3cbb399429..67e74f7b92 100644 --- a/src/core/lib/security/credentials/fake/fake_credentials.c +++ b/src/core/lib/security/credentials/fake/fake_credentials.c @@ -78,11 +78,8 @@ grpc_server_credentials *grpc_fake_transport_security_server_credentials_create( } grpc_arg grpc_fake_transport_expected_targets_arg(char *expected_targets) { - grpc_arg arg; - arg.type = GRPC_ARG_STRING; - arg.key = GRPC_ARG_FAKE_SECURITY_EXPECTED_TARGETS; - arg.value.string = expected_targets; - return arg; + return grpc_channel_arg_string_create(GRPC_ARG_FAKE_SECURITY_EXPECTED_TARGETS, + expected_targets); } const char *grpc_fake_transport_get_expected_targets( |