Skip to content
Snippets Groups Projects
Commit f89fdf39 authored by Bogdan Drutu's avatar Bogdan Drutu
Browse files

Fix the arguments type for on_read and destroy callbacks to match with grpc_iomgr_cb_func

parent 221bb1da
No related branches found
No related tags found
No related merge requests found
...@@ -146,7 +146,8 @@ static void finish_shutdown(grpc_exec_ctx *exec_ctx, grpc_udp_server *s) { ...@@ -146,7 +146,8 @@ static void finish_shutdown(grpc_exec_ctx *exec_ctx, grpc_udp_server *s) {
gpr_free(s); gpr_free(s);
} }
static void destroyed_port(grpc_exec_ctx *exec_ctx, void *server, int success) { static void destroyed_port(grpc_exec_ctx *exec_ctx, void *server,
bool success) {
grpc_udp_server *s = server; grpc_udp_server *s = server;
gpr_mu_lock(&s->mu); gpr_mu_lock(&s->mu);
s->destroyed_ports++; s->destroyed_ports++;
...@@ -263,10 +264,10 @@ error: ...@@ -263,10 +264,10 @@ error:
} }
/* event manager callback when reads are ready */ /* event manager callback when reads are ready */
static void on_read(grpc_exec_ctx *exec_ctx, void *arg, int success) { static void on_read(grpc_exec_ctx *exec_ctx, void *arg, bool success) {
server_port *sp = arg; server_port *sp = arg;
if (success == 0) { if (!success) {
gpr_mu_lock(&sp->server->mu); gpr_mu_lock(&sp->server->mu);
if (0 == --sp->server->active_ports) { if (0 == --sp->server->active_ports) {
gpr_mu_unlock(&sp->server->mu); gpr_mu_unlock(&sp->server->mu);
......
...@@ -173,7 +173,7 @@ static void test_receive(int number_of_clients) { ...@@ -173,7 +173,7 @@ static void test_receive(int number_of_clients) {
grpc_exec_ctx_finish(&exec_ctx); grpc_exec_ctx_finish(&exec_ctx);
} }
static void destroy_pollset(grpc_exec_ctx *exec_ctx, void *p, int success) { static void destroy_pollset(grpc_exec_ctx *exec_ctx, void *p, bool success) {
grpc_pollset_destroy(p); grpc_pollset_destroy(p);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment