aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2017-06-09 09:08:23 -0700
committerGravatar Mark D. Roth <roth@google.com>2017-06-09 09:08:23 -0700
commit8d5e60b8787d1a6aefca037a08799f58a22aa78d (patch)
tree1793acde49dfa0407c5da12816304a691c622221 /src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
parent74923accac565cd7a4bd07b6ff054e8464f65fc1 (diff)
Add helpers for creating channel args.
Diffstat (limited to 'src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c')
-rw-r--r--src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c b/src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
index 05145aeb2f..0346d50b6c 100644
--- a/src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
+++ b/src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
@@ -41,10 +41,8 @@ grpc_channel *grpc_insecure_channel_create_from_fd(
GRPC_API_TRACE("grpc_insecure_channel_create(target=%p, fd=%d, args=%p)", 3,
(target, fd, args));
- grpc_arg default_authority_arg;
- default_authority_arg.type = GRPC_ARG_STRING;
- default_authority_arg.key = GRPC_ARG_DEFAULT_AUTHORITY;
- default_authority_arg.value.string = "test.authority";
+ grpc_arg default_authority_arg = grpc_channel_arg_string_create(
+ GRPC_ARG_DEFAULT_AUTHORITY, "test.authority");
grpc_channel_args *final_args =
grpc_channel_args_copy_and_add(args, &default_authority_arg, 1);