https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=5182a92a720bed221a2d01f8d5b997bf10e228d2

commit 5182a92a720bed221a2d01f8d5b997bf10e228d2
Author: Takashi Yano <[email protected]>
Date:   Fri Jan 24 04:27:23 2025 +0900

    Cygwin: Drop const qualifier from 2nd argument of tcgetwinsize()
    
    Fixes: 0eef1b6c9684 ("Cygwin: Add new APIs tc[gs]etwinsize()")
    Reported-by: Alexander Kleinsorge <[email protected]>
    Signed-off-by: Takashi Yano <[email protected]>

Diff:
---
 winsup/cygwin/include/sys/termios.h | 2 +-
 winsup/cygwin/termios.cc            | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/winsup/cygwin/include/sys/termios.h 
b/winsup/cygwin/include/sys/termios.h
index 687fb92af..d1b4a0af5 100644
--- a/winsup/cygwin/include/sys/termios.h
+++ b/winsup/cygwin/include/sys/termios.h
@@ -301,7 +301,7 @@ speed_t cfgetospeed(const struct termios *);
 int cfsetispeed (struct termios *, speed_t);
 int cfsetospeed (struct termios *, speed_t);
 int cfsetspeed (struct termios *, speed_t);
-int tcgetwinsize(int fd, const struct winsize *winsz);
+int tcgetwinsize(int fd, struct winsize *winsz);
 int tcsetwinsize(int fd, const struct winsize *winsz);
 
 #ifdef __cplusplus
diff --git a/winsup/cygwin/termios.cc b/winsup/cygwin/termios.cc
index 6adf47497..b211743c6 100644
--- a/winsup/cygwin/termios.cc
+++ b/winsup/cygwin/termios.cc
@@ -400,7 +400,7 @@ cfmakeraw(struct termios *tp)
 }
 
 extern "C" int
-tcgetwinsize (int fd, const struct winsize *winsz)
+tcgetwinsize (int fd, struct winsize *winsz)
 {
   return ioctl (fd, TIOCGWINSZ, winsz);
 }

Reply via email to