This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: make openpty's termp and winp parameters const?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]