Change function signature

pull/16671/head
Muxi Yan 6 years ago
parent d0029bac14
commit fc136beecd
  1. 3
      src/core/lib/security/credentials/alts/grpc_alts_credentials_client_options.cc
  2. 3
      src/core/lib/security/credentials/alts/grpc_alts_credentials_server_options.cc

@ -72,7 +72,8 @@ static void target_service_account_destroy(
static const grpc_alts_credentials_options_vtable vtable = {
alts_client_options_copy, alts_client_options_destroy};
grpc_alts_credentials_options* grpc_alts_credentials_client_options_create() {
grpc_alts_credentials_options* grpc_alts_credentials_client_options_create(
void) {
auto client_options = static_cast<grpc_alts_credentials_client_options*>(
gpr_zalloc(sizeof(grpc_alts_credentials_client_options)));
client_options->base.vtable = &vtable;

@ -36,7 +36,8 @@ static void alts_server_options_destroy(
static const grpc_alts_credentials_options_vtable vtable = {
alts_server_options_copy, alts_server_options_destroy};
grpc_alts_credentials_options* grpc_alts_credentials_server_options_create() {
grpc_alts_credentials_options* grpc_alts_credentials_server_options_create(
void) {
grpc_alts_credentials_server_options* server_options =
static_cast<grpc_alts_credentials_server_options*>(
gpr_zalloc(sizeof(*server_options)));

Loading…
Cancel
Save