mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os,term: fix C.tcsetattr declaration (add missing int return type)
This commit is contained in:
parent
2d3508c872
commit
b13f7118ab
@ -13,7 +13,7 @@ mut:
|
||||
|
||||
fn C.tcgetattr(fd int, ptr &C.termios) int
|
||||
|
||||
fn C.tcsetattr(fd int, action int, const_ptr &C.termios)
|
||||
fn C.tcsetattr(fd int, action int, const_ptr &C.termios) int
|
||||
|
||||
// input_password prompts the user for a password-like secret. It disables
|
||||
// the terminal echo during user input and resets it back to normal when done.
|
||||
|
@ -15,7 +15,7 @@ pub:
|
||||
|
||||
fn C.tcgetattr(fd int, ptr &C.termios) int
|
||||
|
||||
fn C.tcsetattr(fd int, action int, const_ptr &C.termios)
|
||||
fn C.tcsetattr(fd int, action int, const_ptr &C.termios) int
|
||||
|
||||
fn C.ioctl(fd int, request u64, arg voidptr) int
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user