The branch main has been updated by brooks:

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

commit f503288262e53d068d397fe8681c5cc52760e332
Author:     Brooks Davis <[email protected]>
AuthorDate: 2021-11-17 20:12:22 +0000
Commit:     Brooks Davis <[email protected]>
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 {

Reply via email to