aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/util
diff options
context:
space:
mode:
authorGravatar David G. Quintas <dgq@google.com>2016-01-28 18:10:07 -0800
committerGravatar David G. Quintas <dgq@google.com>2016-01-28 18:10:07 -0800
commitee7e1c20edbab61182c0e1130bd13dc73c4884a9 (patch)
tree9cddd9cfb22dfe63547ba8cb3eae088f81722d0f /test/core/util
parent7fbc0acf4ae9d0e719ea4917fbcbeca1d0b06b52 (diff)
parentc085e5c0614b6efc4a1fa1a9a6cc6b37fe0523ba (diff)
Merge pull request #4950 from ctiller/offload-racing
Preparatory changes for work shedding
Diffstat (limited to 'test/core/util')
-rw-r--r--test/core/util/port_posix.c2
-rw-r--r--test/core/util/port_windows.c4
-rw-r--r--test/core/util/test_tcp_server.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/test/core/util/port_posix.c b/test/core/util/port_posix.c
index 0666a60c66..4b31f810e5 100644
--- a/test/core/util/port_posix.c
+++ b/test/core/util/port_posix.c
@@ -74,7 +74,7 @@ typedef struct freereq {
} freereq;
static void destroy_pollset_and_shutdown(grpc_exec_ctx *exec_ctx, void *p,
- int success) {
+ bool success) {
grpc_pollset_destroy(p);
grpc_shutdown();
}
diff --git a/test/core/util/port_windows.c b/test/core/util/port_windows.c
index 60ad9b4f2a..85d7c0ce07 100644
--- a/test/core/util/port_windows.c
+++ b/test/core/util/port_windows.c
@@ -1,6 +1,6 @@
/*
*
- * Copyright 2015, Google Inc.
+ * Copyright 2015-2016, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -152,7 +152,7 @@ static void got_port_from_server(grpc_exec_ctx *exec_ctx, void *arg,
}
static void destroy_pollset_and_shutdown(grpc_exec_ctx *exec_ctx, void *p,
- int success) {
+ bool success) {
grpc_pollset_destroy(p);
grpc_shutdown();
}
diff --git a/test/core/util/test_tcp_server.c b/test/core/util/test_tcp_server.c
index aaba7be356..66470c0288 100644
--- a/test/core/util/test_tcp_server.c
+++ b/test/core/util/test_tcp_server.c
@@ -46,7 +46,7 @@
#include "test/core/util/port.h"
static void on_server_destroyed(grpc_exec_ctx *exec_ctx, void *data,
- int success) {
+ bool success) {
test_tcp_server *server = data;
server->shutdown = 1;
}
@@ -97,7 +97,7 @@ void test_tcp_server_poll(test_tcp_server *server, int seconds) {
grpc_exec_ctx_finish(&exec_ctx);
}
-static void do_nothing(grpc_exec_ctx *exec_ctx, void *arg, int success) {}
+static void do_nothing(grpc_exec_ctx *exec_ctx, void *arg, bool success) {}
void test_tcp_server_destroy(test_tcp_server *server) {
grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT;