Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Nov 2021 20:22:06 GMT
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: f503288262e5 - main - syscalls: fix type of osendmsg
Message-ID:  <202111172022.1AHKM6FR059282@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by brooks:

URL: https://cgit.FreeBSD.org/src/commit/?id=f503288262e53d068d397fe8681c5cc52760e332

commit f503288262e53d068d397fe8681c5cc52760e332
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2021-11-17 20:12:22 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2021-11-17 20:12:22 +0000

    syscalls: fix type of osendmsg
    
    osendmsg takes an struct omsghdr * not a void *.
    
    Reviewed by:    kevans
---
 sys/kern/syscalls.master | 2 +-
 sys/sys/sysproto.h       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master
index 2ffefdef04a3..bacf76a94437 100644
--- a/sys/kern/syscalls.master
+++ b/sys/kern/syscalls.master
@@ -728,7 +728,7 @@
 114	AUE_SENDMSG	COMPAT|CAPENABLED {
 		int sendmsg(
 		    int s,
-		    _In_ const void *msg,
+		    _In_ const struct omsghdr *msg,
 		    int flags
 		);
 	}
diff --git a/sys/sys/sysproto.h b/sys/sys/sysproto.h
index c95fed5a0f3c..ee1517573afa 100644
--- a/sys/sys/sysproto.h
+++ b/sys/sys/sysproto.h
@@ -2353,7 +2353,7 @@ struct orecvmsg_args {
 };
 struct osendmsg_args {
 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
-	char msg_l_[PADL_(const void *)]; const void * msg; char msg_r_[PADR_(const void *)];
+	char msg_l_[PADL_(const struct omsghdr *)]; const struct omsghdr * msg; char msg_r_[PADR_(const struct omsghdr *)];
 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
 };
 struct otruncate_args {



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