4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-16 05:59:08 +08:00

Cygwin: Drop const qualifier from 2nd argument of tcgetwinsize()

Fixes: 0eef1b6c9684 ("Cygwin: Add new APIs tc[gs]etwinsize()")
Reported-by: Alexander Kleinsorge <aleks@physik.tu-berlin.de>
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
This commit is contained in:
Takashi Yano 2025-01-24 04:27:23 +09:00
parent 0eef1b6c96
commit 5182a92a72
2 changed files with 2 additions and 2 deletions

View File

@ -301,7 +301,7 @@ speed_t cfgetospeed(const struct termios *);
int cfsetispeed (struct termios *, speed_t); int cfsetispeed (struct termios *, speed_t);
int cfsetospeed (struct termios *, speed_t); int cfsetospeed (struct termios *, speed_t);
int cfsetspeed (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); int tcsetwinsize(int fd, const struct winsize *winsz);
#ifdef __cplusplus #ifdef __cplusplus

View File

@ -400,7 +400,7 @@ cfmakeraw(struct termios *tp)
} }
extern "C" int extern "C" int
tcgetwinsize (int fd, const struct winsize *winsz) tcgetwinsize (int fd, struct winsize *winsz)
{ {
return ioctl (fd, TIOCGWINSZ, winsz); return ioctl (fd, TIOCGWINSZ, winsz);
} }