1
0
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:
Delyan Angelov 2023-02-13 15:16:23 +02:00
parent 2d3508c872
commit b13f7118ab
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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