mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-05 01:00:14 +00:00
Formerly unix/bsd/sun/sunos4/speed.c.~2~
This commit is contained in:
parent
f63f39a686
commit
d1c8a6e722
@ -70,7 +70,7 @@ DEFUN(cfsetospeed, (termios_p, speed),
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < sizeof (speeds) / sizeof (speed[0]); ++i)
|
for (i = 0; i < sizeof (speeds) / sizeof (speeds[0]); ++i)
|
||||||
if (speeds[i] == speed)
|
if (speeds[i] == speed)
|
||||||
{
|
{
|
||||||
termios_p->c_cflag &= ~CBAUD;
|
termios_p->c_cflag &= ~CBAUD;
|
||||||
@ -95,7 +95,7 @@ DEFUN(cfsetispeed, (termios_p, speed),
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < sizeof (speeds) / sizeof (speed[0]); ++i)
|
for (i = 0; i < sizeof (speeds) / sizeof (speeds[0]); ++i)
|
||||||
if (speeds[i] == speed)
|
if (speeds[i] == speed)
|
||||||
{
|
{
|
||||||
termios_p->c_cflag &= ~CIBAUD;
|
termios_p->c_cflag &= ~CIBAUD;
|
||||||
|
Loading…
Reference in New Issue
Block a user