aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/util
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-01-15 11:37:30 -0800
committerGravatar Craig Tiller <ctiller@google.com>2015-01-15 11:37:30 -0800
commit32946d37e05714d358f66fb4ff8a204ce53d8573 (patch)
treef87c481963d3db4209da8fa07919a83bd1347a24 /test/core/util
parentda2a953fd607933b2a56c55e713274377af38fd6 (diff)
() --> (void)
Diffstat (limited to 'test/core/util')
-rw-r--r--test/core/util/grpc_profiler.c2
-rw-r--r--test/core/util/port_posix.c4
-rw-r--r--test/core/util/test_config.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/test/core/util/grpc_profiler.c b/test/core/util/grpc_profiler.c
index e135743d57..340b2d53b9 100644
--- a/test/core/util/grpc_profiler.c
+++ b/test/core/util/grpc_profiler.c
@@ -35,4 +35,4 @@
void grpc_profiler_start(const char *filename) {}
-void grpc_profiler_stop() {}
+void grpc_profiler_stop(void) {}
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;
diff --git a/test/core/util/test_config.c b/test/core/util/test_config.c
index 44ab35fc5e..6df86b593f 100644
--- a/test/core/util/test_config.c
+++ b/test/core/util/test_config.c
@@ -39,7 +39,7 @@
#if GPR_GETPID_IN_UNISTD_H
#include <unistd.h>
-static int seed() { return getpid(); }
+static int seed(void) { return getpid(); }
#endif
#if GPR_GETPID_IN_PROCESS_H