diff options
author | Yash Tibrewal <yashkt@google.com> | 2017-09-17 23:43:30 -0700 |
---|---|---|
committer | Yash Tibrewal <yashkt@google.com> | 2017-09-17 23:55:58 -0700 |
commit | 9eb8672bbe02dc47f2f667b99670b215d7431ef0 (patch) | |
tree | 0576f784c49829f16ff7d1cc4444f805e7598f1c /src/cpp/server | |
parent | c8cbddae0be904713bcf39d1363b27134adbfc3b (diff) |
Removing deprecated string to char * conversions
Diffstat (limited to 'src/cpp/server')
-rw-r--r-- | src/cpp/server/server_context.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpp/server/server_context.cc b/src/cpp/server/server_context.cc index 4913682f1d..d7876a000b 100644 --- a/src/cpp/server/server_context.cc +++ b/src/cpp/server/server_context.cc @@ -190,7 +190,7 @@ bool ServerContext::IsCancelled() const { void ServerContext::set_compression_algorithm( grpc_compression_algorithm algorithm) { - char* algorithm_name = NULL; + const char* algorithm_name = NULL; if (!grpc_compression_algorithm_name(algorithm, &algorithm_name)) { gpr_log(GPR_ERROR, "Name for compression algorithm '%d' unknown.", algorithm); |