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
a4ac16cd
Commit
a4ac16cd
authored
10 years ago
by
David Klempner
Browse files
Options
Downloads
Patches
Plain Diff
Fix signed comparison warnings in low_level_ping_pong
parent
0aad3d74
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/core/network_benchmarks/low_level_ping_pong.c
+5
-5
5 additions, 5 deletions
test/core/network_benchmarks/low_level_ping_pong.c
with
5 additions
and
5 deletions
test/core/network_benchmarks/low_level_ping_pong.c
+
5
−
5
View file @
a4ac16cd
...
...
@@ -81,7 +81,7 @@ typedef struct thread_args {
/* Basic call to read() */
static
int
read_bytes
(
int
fd
,
char
*
buf
,
size_t
read_size
,
int
spin
)
{
in
t
bytes_read
=
0
;
size_
t
bytes_read
=
0
;
int
err
;
do
{
err
=
read
(
fd
,
buf
+
bytes_read
,
read_size
-
bytes_read
);
...
...
@@ -198,7 +198,7 @@ static int epoll_read_bytes_spin(struct thread_args *args, char *buf) {
writes go directly out to the kernel.
*/
static
int
blocking_write_bytes
(
struct
thread_args
*
args
,
char
*
buf
)
{
in
t
bytes_written
=
0
;
size_
t
bytes_written
=
0
;
int
err
;
size_t
write_size
=
args
->
msg_size
;
do
{
...
...
@@ -586,10 +586,10 @@ static int run_benchmark(char *socket_type, thread_args *client_args,
static
int
run_all_benchmarks
(
int
msg_size
)
{
int
error
=
0
;
in
t
i
;
size_
t
i
;
for
(
i
=
0
;
i
<
GPR_ARRAY_SIZE
(
test_strategies
);
++
i
)
{
test_strategy
*
test_strategy
=
&
test_strategies
[
i
];
in
t
j
;
size_
t
j
;
for
(
j
=
0
;
j
<
GPR_ARRAY_SIZE
(
socket_types
);
++
j
)
{
thread_args
*
client_args
=
malloc
(
sizeof
(
thread_args
));
thread_args
*
server_args
=
malloc
(
sizeof
(
thread_args
));
...
...
@@ -620,7 +620,7 @@ int main(int argc, char **argv) {
int
msg_size
=
-
1
;
char
*
read_strategy
=
NULL
;
char
*
socket_type
=
NULL
;
in
t
i
;
size_
t
i
;
const
test_strategy
*
test_strategy
=
NULL
;
int
error
=
0
;
...
...
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