authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-06-21 12:52:08-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-07-03 15:19:50-07:00
log2b6727c98fd7e07d65f6d4479f81dec4b69e8795
tree11281685107ed26f31e8b9474b067a5853d815ca
parent5ef70b8b87399700026b0d314f28aee7de321382

std.os.linux.bpf: fix incorrect usage of unexpectedErrno


1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/os/linux/bpf.zig+2-2
......@@ -1513,7 +1513,7 @@ pub fn map_create(map_type: MapType, key_size: u32, value_size: u32, max_entries
15131513 EINVAL => error.MapTypeOrAttrInvalid,
15141514 ENOMEM => error.SystemResources,
15151515 EPERM => error.AccessDenied,
1516 else => |err| unexpectedErrno(rc),
1516 else => |err| unexpectedErrno(err),
15171517 };
15181518}
15191519
......@@ -1539,7 +1539,7 @@ pub fn map_lookup_elem(fd: fd_t, key: []const u8, value: []u8) !void {
15391539 EINVAL => return error.FieldInAttrNeedsZeroing,
15401540 ENOENT => return error.NotFound,
15411541 EPERM => return error.AccessDenied,
1542 else => |err| return unexpectedErrno(rc),
1542 else => |err| return unexpectedErrno(err),
15431543 }
15441544}
15451545