0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-29 08:58:01 -04:00
denoland-deno/ext/node/ops
Jakub Jirutka 3436f65e20
fix(ext/node): remove unnecessary and incorrect type priority_t (#20276)
`getpriority` and `setpriority` on musl libc accepts `int` / `c_int` /
`i32` as the first argument, not `u32`.

Since the `PRIO_PROCESS` constant is imported from the same crate (libc)
as the `getpriority` and `setpriority` functions, this type cast seems
to be completely unnecessary here.

It was introduced in aa8078b688 by
@crowlKats.

Relevant sources:

-
835661543d/src/unix/linux_like/linux/musl/mod.rs (L739-L740)
- https://git.musl-libc.org/cgit/musl/tree/src/misc/setpriority.c
- https://git.musl-libc.org/cgit/musl/tree/src/misc/getpriority.c

Co-authored-by: Aapo Alasuutari <aapo.alasuutari@gmail.com>
2023-09-01 11:21:23 +02:00
..
crypto chore: update to Rust 1.72 (#20258) 2023-08-26 22:04:12 -06:00
zlib fix(ext/node): support dictionary option in zlib init (#20035) 2023-08-11 11:42:35 +00:00
http.rs refactor(ext/fetch): refactor fetch to use new write_error method (#20029) 2023-08-03 14:27:25 -06:00
idna.rs refactor(ext/node): reorganize ops (#18799) 2023-04-24 12:22:21 +02:00
mod.rs feat(node/os): implement getPriority, setPriority & userInfo (#19370) 2023-07-31 22:29:09 +02:00
os.rs fix(ext/node): remove unnecessary and incorrect type priority_t (#20276) 2023-09-01 11:21:23 +02:00
require.rs fix(npm): do not panic providing file url to require.resolve paths (#20182) 2023-08-17 10:39:06 -04:00
v8.rs refactor(ext/node): reorganize ops (#18799) 2023-04-24 12:22:21 +02:00
winerror.rs refactor(ext/node): reorganize ops (#18799) 2023-04-24 12:22:21 +02:00