diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2021-11-17 20:12:22 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2021-11-17 20:12:22 +0000 |
commit | f503288262e53d068d397fe8681c5cc52760e332 (patch) | |
tree | 8861e5fdb09e386c6309f00c04402fce7d8f7482 | |
parent | 2385f4d1728b327172c3a4a944f984bd91625a6f (diff) | |
download | src-f503288262e53d068d397fe8681c5cc52760e332.tar.gz src-f503288262e53d068d397fe8681c5cc52760e332.zip |
syscalls: fix type of osendmsg
osendmsg takes an struct omsghdr * not a void *.
Reviewed by: kevans
-rw-r--r-- | sys/kern/syscalls.master | 2 | ||||
-rw-r--r-- | 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 { |