(Setting Modes): Fix typos in example code.

This commit is contained in:
Ulrich Drepper 2002-10-10 17:50:16 +00:00
parent 19f342efe6
commit 85adacbd99

View File

@ -423,8 +423,8 @@ set_istrip (int desc, int value)
result = tcsetattr (desc, TCSANOW, &settings); result = tcsetattr (desc, TCSANOW, &settings);
if (result < 0) if (result < 0)
@{ @{
perror ("error in tcgetattr"); perror ("error in tcsetattr");
return; return 0;
@} @}
return 1; return 1;
@} @}
@ -1640,7 +1640,7 @@ It does exactly this:
@cindex terminal modes, BSD @cindex terminal modes, BSD
The usual way to get and set terminal modes is with the functions described The usual way to get and set terminal modes is with the functions described
in @ref{Terminal Modes}. However, on some systems you can use the in @ref{Terminal Modes}. However, on some systems you can use the
BSD-derived functions in this section to do some of the same thing. On BSD-derived functions in this section to do some of the same thing. On
many systems, these functions do not exist. Even with the GNU C library, many systems, these functions do not exist. Even with the GNU C library,
the functions simply fail with @code{errno} = @code{ENOSYS} with many the functions simply fail with @code{errno} = @code{ENOSYS} with many