diff options
author | Yash Tibrewal <yashkt@google.com> | 2017-09-12 22:44:08 -0700 |
---|---|---|
committer | Yash Tibrewal <yashkt@google.com> | 2017-09-13 13:08:37 -0700 |
commit | bc130daf5f78bac986cc5cdede8476896dc5f463 (patch) | |
tree | 46a702590fb8bb2ff3ae39a301956249918eed31 /src/core/lib/transport/transport.c | |
parent | 3bf7b714a5458aadfc1e2761ede1213f69ef7959 (diff) |
Adding more pointer conversions and type renaming
Diffstat (limited to 'src/core/lib/transport/transport.c')
-rw-r--r-- | src/core/lib/transport/transport.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/lib/transport/transport.c b/src/core/lib/transport/transport.c index caa11a956e..ae705195f3 100644 --- a/src/core/lib/transport/transport.c +++ b/src/core/lib/transport/transport.c @@ -102,8 +102,9 @@ static void slice_stream_unref(grpc_exec_ctx *exec_ctx, void *p) { grpc_slice grpc_slice_from_stream_owned_buffer(grpc_stream_refcount *refcount, void *buffer, size_t length) { slice_stream_ref(&refcount->slice_refcount); - return (grpc_slice){.refcount = &refcount->slice_refcount, - .data.refcounted = {.bytes = buffer, .length = length}}; + return (grpc_slice){ + .refcount = &refcount->slice_refcount, + .data.refcounted = {.bytes = (uint8_t *)buffer, .length = length}}; } static const grpc_slice_refcount_vtable stream_ref_slice_vtable = { |