diff options
author | ngie <ngie@FreeBSD.org> | 2015-04-16 05:37:19 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-04-16 05:37:19 +0000 |
commit | 010f8b4f07d5b9042f82def348aec8af8521321b (patch) | |
tree | 955c50c3ae303eccdd6ffdd2b2a71c76a2210177 | |
parent | 2d138d0a35f5c231b2bca2ab3604338672d83806 (diff) | |
download | FreeBSD-src-010f8b4f07d5b9042f82def348aec8af8521321b.zip FreeBSD-src-010f8b4f07d5b9042f82def348aec8af8521321b.tar.gz |
Fix WARNS=6 issues with gcc
-rw-r--r-- | tests/sys/socket/reconnect_test.c | 2 | ||||
-rw-r--r-- | tests/sys/socket/sigpipe_test.c | 1 | ||||
-rw-r--r-- | tests/sys/socket/unix_gc_test.c | 2 | ||||
-rw-r--r-- | tests/sys/socket/unix_passfd_test.c | 8 | ||||
-rw-r--r-- | tests/sys/socket/zerosend_test.c | 2 |
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]); |