aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-06-22 09:18:42 -0700
committerGravatar murgatroid99 <mlumish@google.com>2015-06-22 09:18:42 -0700
commit25c5f2d0f633e3382d649430940ef33adc4abcda (patch)
treea625e413c0a25683a47b78954cf872f7b298c418 /src/core
parent4fca87aee2b2eb07275ebd6e6a6365939d1eb7cf (diff)
Changed input_buffer_count to a size_t
Diffstat (limited to 'src/core')
-rw-r--r--src/core/security/secure_endpoint.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/security/secure_endpoint.c b/src/core/security/secure_endpoint.c
index 0489764b4d..73496d1153 100644
--- a/src/core/security/secure_endpoint.c
+++ b/src/core/security/secure_endpoint.c
@@ -116,7 +116,7 @@ static void on_read(void *user_data, gpr_slice *slices, size_t nslices,
grpc_endpoint_cb_status error) {
unsigned i;
gpr_uint8 keep_looping = 0;
- int input_buffer_count = 0;
+ size_t input_buffer_count = 0;
tsi_result result = TSI_OK;
secure_endpoint *ep = (secure_endpoint *)user_data;
gpr_uint8 *cur = GPR_SLICE_START_PTR(ep->read_staging_buffer);
@@ -181,9 +181,9 @@ static void on_read(void *user_data, gpr_slice *slices, size_t nslices,
return;
}
/* The upper level will unref the slices. */
- input_buffer_count = (int)ep->input_buffer.count;
+ input_buffer_count = ep->input_buffer.count;
ep->input_buffer.count = 0;
- call_read_cb(ep, ep->input_buffer.slices, (size_t)input_buffer_count, error);
+ call_read_cb(ep, ep->input_buffer.slices, input_buffer_count, error);
}
static void endpoint_notify_on_read(grpc_endpoint *secure_ep,