aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/util/port_posix.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/core/util/port_posix.c')
-rw-r--r--test/core/util/port_posix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/core/util/port_posix.c b/test/core/util/port_posix.c
index 5f51478f8c..52008895dc 100644
--- a/test/core/util/port_posix.c
+++ b/test/core/util/port_posix.c
@@ -98,7 +98,7 @@ static int is_port_available(int *port, int is_tcp) {
return 1;
}
-int grpc_pick_unused_port() {
+int grpc_pick_unused_port(void) {
/* We repeatedly pick a port and then see whether or not it is
available for use both as a TCP socket and a UDP socket. First, we
pick a random large port number. For subsequent
@@ -141,7 +141,7 @@ int grpc_pick_unused_port() {
return 0;
}
-int grpc_pick_unused_port_or_die() {
+int grpc_pick_unused_port_or_die(void) {
int port = grpc_pick_unused_port();
GPR_ASSERT(port > 0);
return port;