summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/sys/socket/reconnect_test.c2
-rw-r--r--tests/sys/socket/sigpipe_test.c1
-rw-r--r--tests/sys/socket/unix_gc_test.c2
-rw-r--r--tests/sys/socket/unix_passfd_test.c8
-rw-r--r--tests/sys/socket/zerosend_test.c2
5 files changed, 8 insertions, 7 deletions
diff --git a/tests/sys/socket/reconnect_test.c b/tests/sys/socket/reconnect_test.c
index 27f32cc..f596092 100644
--- a/tests/sys/socket/reconnect_test.c
+++ b/tests/sys/socket/reconnect_test.c
@@ -104,7 +104,7 @@ cleanup(void)
}
int
-main()
+main(void)
{
int s_sock1, s_sock2, c_sock;
diff --git a/tests/sys/socket/sigpipe_test.c b/tests/sys/socket/sigpipe_test.c
index 051dc7c..a9562f2 100644
--- a/tests/sys/socket/sigpipe_test.c
+++ b/tests/sys/socket/sigpipe_test.c
@@ -51,6 +51,7 @@
*
* For the purposes of testing TCP, an unused port number must be specified.
*/
+static void usage(void) __dead2;
static void
usage(void)
{
diff --git a/tests/sys/socket/unix_gc_test.c b/tests/sys/socket/unix_gc_test.c
index 294c60e..eb70dca 100644
--- a/tests/sys/socket/unix_gc_test.c
+++ b/tests/sys/socket/unix_gc_test.c
@@ -752,7 +752,7 @@ recursion(void)
#define RMDIR "rm -Rf "
int
-main(int argc, char *argv[])
+main(void)
{
char cmd[sizeof(RMDIR) + PATH_MAX];
int serrno;
diff --git a/tests/sys/socket/unix_passfd_test.c b/tests/sys/socket/unix_passfd_test.c
index 402fed8..f39597a 100644
--- a/tests/sys/socket/unix_passfd_test.c
+++ b/tests/sys/socket/unix_passfd_test.c
@@ -136,11 +136,11 @@ sendfd_payload(int sockfd, int sendfd,
}
static void
-sendfd(int sockfd, int sendfd)
+sendfd(int sock_fd, int send_fd)
{
char ch;
- return (sendfd_payload(sockfd, sendfd, &ch, sizeof(ch)));
+ return (sendfd_payload(sock_fd, send_fd, &ch, sizeof(ch)));
}
static void
@@ -185,11 +185,11 @@ recvfd_payload(int sockfd, int *recvfd, void *buf, size_t buflen)
}
static void
-recvfd(int sockfd, int *recvfd)
+recvfd(int sock_fd, int *recv_fd)
{
char ch;
- return (recvfd_payload(sockfd, recvfd, &ch, sizeof(ch)));
+ return (recvfd_payload(sock_fd, recv_fd, &ch, sizeof(ch)));
}
/*
diff --git a/tests/sys/socket/zerosend_test.c b/tests/sys/socket/zerosend_test.c
index 729de9f..7788760 100644
--- a/tests/sys/socket/zerosend_test.c
+++ b/tests/sys/socket/zerosend_test.c
@@ -226,7 +226,7 @@ static int fd[3];
static void
close_fds(int *fdp)
{
- int i;
+ unsigned int i;
for (i = 0; i < nitems(fdp); i++)
close(fdp[i]);
OpenPOWER on IntegriCloud