diff options
| author | Jonathan Marler <johnnymarler@gmail.com> | 2022-06-02 15:51:22 -0600 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-06-07 15:23:44 -0400 |
| commit | 523fae420bd569dc79153eb3a9adb176e18a115c (patch) | |
| tree | 5012af9a953e6f24a88b77ca513b8bc367b7b38d /lib/std/os/linux/mips.zig | |
| parent | e9fc58eab77d60dfb02155ff17178b496d75d035 (diff) | |
| download | zig-523fae420bd569dc79153eb3a9adb176e18a115c.tar.gz zig-523fae420bd569dc79153eb3a9adb176e18a115c.zip | |
add const to msghdr_const iov and control pointers
alongside the typical msghdr struct, Zig has added a msghdr_const
type that can be used with sendmsg which allows const data to
be provided. I believe that data pointed to by the iov and control
fields in msghdr are also left unmodified, in which case they can
be marked const as well.
Diffstat (limited to 'lib/std/os/linux/mips.zig')
| -rw-r--r-- | lib/std/os/linux/mips.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/os/linux/mips.zig b/lib/std/os/linux/mips.zig index 95b73396b0..4341949b2f 100644 --- a/lib/std/os/linux/mips.zig +++ b/lib/std/os/linux/mips.zig @@ -304,9 +304,9 @@ pub const msghdr = extern struct { pub const msghdr_const = extern struct { name: ?*const sockaddr, namelen: socklen_t, - iov: [*]iovec_const, + iov: [*]const iovec_const, iovlen: i32, - control: ?*anyopaque, + control: ?*const anyopaque, controllen: socklen_t, flags: i32, }; |
