aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/common
diff options
context:
space:
mode:
authorGravatar yang-g <yangg@google.com>2015-07-09 12:56:29 -0700
committerGravatar yang-g <yangg@google.com>2015-07-09 12:56:29 -0700
commitd53bc8925b5884d16da3738d11885dcf48ea48e4 (patch)
treeb31d0f75d5998c78f2fabb71ee1e2a0ccc4812cc /src/cpp/common
parent3315a845efaf2116cce6184b459f8bb4e642bdde (diff)
Add missing pieces
Diffstat (limited to 'src/cpp/common')
-rw-r--r--src/cpp/common/secure_create_auth_context.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cpp/common/secure_create_auth_context.cc b/src/cpp/common/secure_create_auth_context.cc
index 21994945f8..d81f4bbc4a 100644
--- a/src/cpp/common/secure_create_auth_context.cc
+++ b/src/cpp/common/secure_create_auth_context.cc
@@ -43,9 +43,8 @@ std::shared_ptr<const AuthContext> CreateAuthContext(grpc_call* call) {
if (call == nullptr) {
return std::shared_ptr<const AuthContext>();
}
- grpc_auth_context* context =
- const_cast<grpc_auth_context*>(grpc_call_auth_context(call));
- return std::shared_ptr<const AuthContext>(new SecureAuthContext(context));
+ return std::shared_ptr<const AuthContext>(
+ new SecureAuthContext(grpc_call_auth_context(call)));
}
} // namespace grpc