make openpty's termp and winp parameters const?
Samuel Thibault
samuel.thibault@ens-lyon.org
Mon Dec 17 11:54:00 GMT 2007
Samuel Thibault, le Mon 17 Dec 2007 11:50:54 +0000, a écrit :
> Since openpty()'s termp and winp parameters are just used by tcsetattr()
> and to set the window size, shouldn't they be const like this?
>
> int openpty(int *amaster, int *aslave, char *name,
> const struct termios *termp, const struct winsize * winp);
Same for forkpty.
Samuel
More information about the Libc-alpha
mailing list