From d13ff179e6c1fc418891e6f55943313f1cf2bdc8 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 19 May 2024 21:21:15 -0400 Subject: libc: termios: Add missing `op` arg Signed-off-by: Ian Moffett --- lib/libc/include/termios.h | 2 +- lib/libc/src/tty/attr.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/libc/include/termios.h b/lib/libc/include/termios.h index 2eb3aa2..87b1392 100644 --- a/lib/libc/include/termios.h +++ b/lib/libc/include/termios.h @@ -33,6 +33,6 @@ #include int tcgetattr(int fd, struct termios *termios_p); -int tcsetattr(int fd, struct termios *termios_p); +int tcsetattr(int fd, int op, struct termios *termios_p); #endif /* !_TERMIOS_H_ */ diff --git a/lib/libc/src/tty/attr.c b/lib/libc/src/tty/attr.c index 4edbece..3061844 100644 --- a/lib/libc/src/tty/attr.c +++ b/lib/libc/src/tty/attr.c @@ -38,7 +38,7 @@ tcgetattr(int fd, struct termios *termios_p) } int -tcsetattr(int fd, struct termios *termios_p) +tcsetattr(int fd, int op, struct termios *termios_p) { return ioctl(fd, TCSETS, termios_p); } -- cgit v1.2.3