diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-06-21 20:20:48 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-21 20:20:48 -0400 |
| commit | c6844072ce440f581787bf97909261084a9edc6c (patch) | |
| tree | b0cade24a1ee14777be05644c19d76d158c3ab29 /lib/std/os/bits/linux.zig | |
| parent | 8a6de78e0787015153707361a58659834d4c39c2 (diff) | |
| parent | 7bebb24838a603a436b58e49ee85110af9e8e05f (diff) | |
| download | zig-c6844072ce440f581787bf97909261084a9edc6c.tar.gz zig-c6844072ce440f581787bf97909261084a9edc6c.zip | |
Merge pull request #9047 from g-w1/spider-astgen
stage2 astgen: catch unused vars
Diffstat (limited to 'lib/std/os/bits/linux.zig')
| -rw-r--r-- | lib/std/os/bits/linux.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/os/bits/linux.zig b/lib/std/os/bits/linux.zig index d4491da6d0..7501d54bbe 100644 --- a/lib/std/os/bits/linux.zig +++ b/lib/std/os/bits/linux.zig @@ -1286,7 +1286,7 @@ pub const CAP_BLOCK_SUSPEND = 36; pub const CAP_AUDIT_READ = 37; pub const CAP_LAST_CAP = CAP_AUDIT_READ; -pub fn cap_valid(u8: x) bool { +pub fn cap_valid(x: u8) bool { return x >= 0 and x <= CAP_LAST_CAP; } |
