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:
parent
0eef1b6c96
commit
5182a92a72
@ -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
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user