Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Aug 2018 17:10:32 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r337464 - stable/11/tests/sys/kern
Message-ID:  <201808081710.w78HAW4u086950@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Wed Aug  8 17:10:32 2018
New Revision: 337464
URL: https://svnweb.freebsd.org/changeset/base/337464

Log:
  MFC r337059:
  Fix some nits in the unix_passfd tests.

Modified:
  stable/11/tests/sys/kern/unix_passfd_test.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/tests/sys/kern/unix_passfd_test.c
==============================================================================
--- stable/11/tests/sys/kern/unix_passfd_test.c	Wed Aug  8 16:55:01 2018	(r337463)
+++ stable/11/tests/sys/kern/unix_passfd_test.c	Wed Aug  8 17:10:32 2018	(r337464)
@@ -165,14 +165,15 @@ sendfd(int sockfd, int send_fd)
 {
 	char ch = 0;
 
-	return (sendfd_payload(sockfd, send_fd, &ch, sizeof(ch)));
+	sendfd_payload(sockfd, send_fd, &ch, sizeof(ch));
 }
 
 static void
 recvfd_payload(int sockfd, int *recv_fd, void *buf, size_t buflen)
 {
 	struct cmsghdr *cmsghdr;
-	char message[CMSG_SPACE(SOCKCREDSIZE(CMGROUP_MAX)) + sizeof(int)];
+	char message[CMSG_SPACE(SOCKCREDSIZE(CMGROUP_MAX)) +
+	    CMSG_SPACE(sizeof(int))];
 	struct msghdr msghdr;
 	struct iovec iovec;
 	ssize_t len;
@@ -214,7 +215,7 @@ recvfd(int sockfd, int *recv_fd)
 {
 	char ch = 0;
 
-	return (recvfd_payload(sockfd, recv_fd, &ch, sizeof(ch)));
+	recvfd_payload(sockfd, recv_fd, &ch, sizeof(ch));
 }
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808081710.w78HAW4u086950>