Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
thesayol committed Apr 17, 2024
1 parent c1eb3cc commit a697068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/ruxos_posix_api/src/imp/ioctl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pub fn sys_ioctl(fd: c_int, request: usize, data: usize) -> c_int {
TIOCGPGRP => {
warn!("stdout TIOCGPGRP, pretend to be have a tty process group.");
unsafe {
*(data as *mut u32) = sys_getpgid(0);
*(data as *mut u32) = sys_getpgid(0)as _;
}
Ok(0)
}
Expand Down

0 comments on commit a697068

Please sign in to comment.