From c0a9f8cf8e81516f07cac6abc78a70b07e79e148 Mon Sep 17 00:00:00 2001 From: Marcus Haehnel Date: Tue, 3 Jun 2025 07:43:16 +0200 Subject: openpty/forkpty: use const for termios and winsize arguments The termios and winsize arguments are const as per the POSIX standard, and also uclibc and musl define them as such. Adapt the uclibc-ng definitions and declarations accordingly to improve compatibility. Signed-off-by: Marcus Haehnel --- libutil/forkpty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libutil/forkpty.c') diff --git a/libutil/forkpty.c b/libutil/forkpty.c index 24643330c..7e42d1a33 100644 --- a/libutil/forkpty.c +++ b/libutil/forkpty.c @@ -23,7 +23,8 @@ #include int -forkpty (int *amaster, char *name, struct termios *termp, struct winsize *winp) +forkpty (int *amaster, char *name, const struct termios *termp, + const struct winsize *winp) { int master, slave, pid; -- cgit v1.2.3