diff options
author | ncteisen <ncteisen@gmail.com> | 2018-06-07 16:53:17 -0700 |
---|---|---|
committer | ncteisen <ncteisen@gmail.com> | 2018-06-13 10:36:32 -0700 |
commit | 6dc54c496fb3d34af63ce6bdf8656496077689a9 (patch) | |
tree | 4d1a86cf396d433a12bc4f9985b9dac68861c479 /src/core/lib/security/transport | |
parent | 9b52965ba4157d098bb951c892e18a1361917200 (diff) |
Remove all uses of raw GRPC_ARG_POINTER
Diffstat (limited to 'src/core/lib/security/transport')
-rw-r--r-- | src/core/lib/security/transport/target_authority_table.cc | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/core/lib/security/transport/target_authority_table.cc b/src/core/lib/security/transport/target_authority_table.cc index 1eeb557f6a..2f1034d207 100644 --- a/src/core/lib/security/transport/target_authority_table.cc +++ b/src/core/lib/security/transport/target_authority_table.cc @@ -61,15 +61,7 @@ TargetAuthorityTable* FindTargetAuthorityTableInArgs( const grpc_channel_args* args) { const grpc_arg* arg = grpc_channel_args_find(args, GRPC_ARG_TARGET_AUTHORITY_TABLE); - if (arg != nullptr) { - if (arg->type == GRPC_ARG_POINTER) { - return static_cast<TargetAuthorityTable*>(arg->value.pointer.p); - } else { - gpr_log(GPR_ERROR, "value of " GRPC_ARG_TARGET_AUTHORITY_TABLE - " channel arg was not pointer type; ignoring"); - } - } - return nullptr; + return grpc_channel_arg_get_pointer<TargetAuthorityTable>(arg); } } // namespace grpc_core |