aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc/impl/codegen/slice.h
diff options
context:
space:
mode:
authorGravatar Jeremy Yallop <yallop@gmail.com>2017-08-03 14:48:36 +0100
committerGravatar Jeremy Yallop <yallop@gmail.com>2017-08-09 15:59:54 +0100
commitb8e68dcdd6946beca5d01aa9ddb7126987ef8f78 (patch)
treea4d3fd182fac7f0f7e110b0795ba54bf3f89051f /include/grpc/impl/codegen/slice.h
parentfe71c75865b78c3a15f4cbaee1f546377360bb6b (diff)
Add tags to tagless structs and unions.
Diffstat (limited to 'include/grpc/impl/codegen/slice.h')
-rw-r--r--include/grpc/impl/codegen/slice.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/grpc/impl/codegen/slice.h b/include/grpc/impl/codegen/slice.h
index 5ec439eb37..a04c683a55 100644
--- a/include/grpc/impl/codegen/slice.h
+++ b/include/grpc/impl/codegen/slice.h
@@ -75,12 +75,12 @@ typedef struct grpc_slice_refcount {
of data that is copied by value. */
struct grpc_slice {
struct grpc_slice_refcount *refcount;
- union {
- struct {
+ union grpc_slice_data {
+ struct grpc_slice_refcounted {
uint8_t *bytes;
size_t length;
} refcounted;
- struct {
+ struct grpc_slice_inlined {
uint8_t length;
uint8_t bytes[GRPC_SLICE_INLINED_SIZE];
} inlined;