Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
6a7418cd
Commit
6a7418cd
authored
9 years ago
by
Nathaniel Manista
Browse files
Options
Downloads
Plain Diff
Merge pull request #2609 from soltanmm/c89
Fix Python C89 pedantry in _adapter/_c/utility.c
parents
73a31c50
b6d61373
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/python/src/grpc/_adapter/_c/utility.c
+1
-1
1 addition, 1 deletion
src/python/src/grpc/_adapter/_c/utility.c
with
1 addition
and
1 deletion
src/python/src/grpc/_adapter/_c/utility.c
+
1
−
1
View file @
6a7418cd
...
@@ -489,10 +489,10 @@ PyObject *pygrpc_cast_metadata_array_to_pyseq(grpc_metadata_array metadata) {
...
@@ -489,10 +489,10 @@ PyObject *pygrpc_cast_metadata_array_to_pyseq(grpc_metadata_array metadata) {
void
pygrpc_byte_buffer_to_bytes
(
void
pygrpc_byte_buffer_to_bytes
(
grpc_byte_buffer
*
buffer
,
char
**
result
,
size_t
*
result_size
)
{
grpc_byte_buffer
*
buffer
,
char
**
result
,
size_t
*
result_size
)
{
grpc_byte_buffer_reader
reader
;
grpc_byte_buffer_reader
reader
;
grpc_byte_buffer_reader_init
(
&
reader
,
buffer
);
gpr_slice
slice
;
gpr_slice
slice
;
char
*
read_result
=
NULL
;
char
*
read_result
=
NULL
;
size_t
size
=
0
;
size_t
size
=
0
;
grpc_byte_buffer_reader_init
(
&
reader
,
buffer
);
while
(
grpc_byte_buffer_reader_next
(
&
reader
,
&
slice
))
{
while
(
grpc_byte_buffer_reader_next
(
&
reader
,
&
slice
))
{
read_result
=
gpr_realloc
(
read_result
,
size
+
GPR_SLICE_LENGTH
(
slice
));
read_result
=
gpr_realloc
(
read_result
,
size
+
GPR_SLICE_LENGTH
(
slice
));
memcpy
(
read_result
+
size
,
GPR_SLICE_START_PTR
(
slice
),
memcpy
(
read_result
+
size
,
GPR_SLICE_START_PTR
(
slice
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment