Skip to content

Commit

Permalink
Fix compile errors
Browse files Browse the repository at this point in the history
Signed-off-by: Shad Ansari <shad@onlab.us>
  • Loading branch information
Shad Ansari committed May 2, 2017
1 parent d69d409 commit 353b40c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions lib/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ gc_client_request_data (grpc_c_context_t *context)
if (grpc_c_ops_alloc(context, 1)) return 1;

context->gcc_ops[op_count].op = GRPC_OP_RECV_MESSAGE;
context->gcc_ops[op_count].data.recv_message = &context->gcc_payload;
context->gcc_ops[op_count].data.recv_message.recv_message = &context->gcc_payload;
context->gcc_op_count++;

grpc_call_error e = grpc_call_start_batch(context->gcc_call,
Expand Down Expand Up @@ -679,20 +679,20 @@ gc_client_prepare_ops (grpc_c_client_t *client, int sync UNUSED, void *input,
input_packer(input, &context->gcc_ops_payload[op_count]);

context->gcc_ops[op_count].op = GRPC_OP_SEND_MESSAGE;
context->gcc_ops[op_count].data.send_message
context->gcc_ops[op_count].data.send_message.send_message
= context->gcc_ops_payload[op_count];
op_count++;

context->gcc_ops[op_count].op = GRPC_OP_SEND_CLOSE_FROM_CLIENT;
op_count++;

context->gcc_ops[op_count].op = GRPC_OP_RECV_INITIAL_METADATA;
context->gcc_ops[op_count].data.recv_initial_metadata
context->gcc_ops[op_count].data.recv_initial_metadata.recv_initial_metadata
= context->gcc_initial_metadata;
op_count++;

context->gcc_ops[op_count].op = GRPC_OP_RECV_MESSAGE;
context->gcc_ops[op_count].data.recv_message = &context->gcc_payload;
context->gcc_ops[op_count].data.recv_message.recv_message = &context->gcc_payload;
op_count++;

/*
Expand Down
6 changes: 3 additions & 3 deletions lib/service.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ gc_read_ops (grpc_c_context_t *context, void **content)
if (grpc_c_ops_alloc(context, 1)) return 1;

context->gcc_ops[op_count].op = GRPC_OP_RECV_MESSAGE;
context->gcc_ops[op_count].data.recv_message = &context->gcc_payload;
context->gcc_ops[op_count].data.recv_message.recv_message = &context->gcc_payload;

grpc_call_error e = grpc_call_start_batch(context->gcc_call,
context->gcc_ops,
Expand Down Expand Up @@ -207,7 +207,7 @@ gc_write_ops (grpc_c_context_t *context, void *output, int batch)
.gcmf_output_packer(output, &context->gcc_ops_payload[op_count]);

context->gcc_ops[context->gcc_op_count].op = GRPC_OP_SEND_MESSAGE;
context->gcc_ops[context->gcc_op_count].data.send_message
context->gcc_ops[context->gcc_op_count].data.send_message.send_message
= context->gcc_ops_payload[op_count];

context->gcc_op_count++;
Expand Down Expand Up @@ -306,7 +306,7 @@ gc_write_ops_finish_internal (grpc_c_context_t *context, int status,
};

context->gcc_ops[context->gcc_op_count].op = GRPC_OP_SEND_MESSAGE;
context->gcc_ops[context->gcc_op_count].data.send_message
context->gcc_ops[context->gcc_op_count].data.send_message.send_message
= buf;
context->gcc_op_count++;
} else {
Expand Down

0 comments on commit 353b40c

Please sign in to comment.