aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/util/port.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/core/util/port.c')
-rw-r--r--test/core/util/port.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/core/util/port.c b/test/core/util/port.c
index b1fc722858..61f2e5018f 100644
--- a/test/core/util/port.c
+++ b/test/core/util/port.c
@@ -75,7 +75,8 @@ static void chose_port(int port) {
atexit(free_chosen_ports);
}
num_chosen_ports++;
- chosen_ports = gpr_realloc(chosen_ports, sizeof(int) * num_chosen_ports);
+ chosen_ports =
+ (int *)gpr_realloc(chosen_ports, sizeof(int) * num_chosen_ports);
chosen_ports[num_chosen_ports - 1] = port;
}