rename ispeed and ospeed to handle netbsd
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1664 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -250,7 +250,7 @@ void TerminalSaveState(void);
|
||||
void TerminalDefaultChars(void);
|
||||
void TerminalNewMode(int f);
|
||||
cc_t *tcval(int func);
|
||||
void TerminalSpeeds(long *ispeed, long *ospeed);
|
||||
void TerminalSpeeds(long *input_speed, long *output_speed);
|
||||
int TerminalWindowSize(long *rows, long *cols);
|
||||
int NetClose(int fd);
|
||||
void NetNonblockingIO(int fd, int onoff);
|
||||
|
@@ -578,7 +578,7 @@ struct termspeeds {
|
||||
#endif /* DECODE_BAUD */
|
||||
|
||||
void
|
||||
TerminalSpeeds(long *ispeed, long *ospeed)
|
||||
TerminalSpeeds(long *input_speed, long *output_speed)
|
||||
{
|
||||
#ifdef DECODE_BAUD
|
||||
struct termspeeds *tp;
|
||||
@@ -594,15 +594,15 @@ TerminalSpeeds(long *ispeed, long *ospeed)
|
||||
tp = termspeeds;
|
||||
while ((tp->speed != -1) && (tp->value < in))
|
||||
tp++;
|
||||
*ispeed = tp->speed;
|
||||
*input_speed = tp->speed;
|
||||
|
||||
tp = termspeeds;
|
||||
while ((tp->speed != -1) && (tp->value < out))
|
||||
tp++;
|
||||
*ospeed = tp->speed;
|
||||
*output_speed = tp->speed;
|
||||
#else /* DECODE_BAUD */
|
||||
*ispeed = in;
|
||||
*ospeed = out;
|
||||
*input_speed = in;
|
||||
*output_speed = out;
|
||||
#endif /* DECODE_BAUD */
|
||||
}
|
||||
|
||||
|
@@ -731,15 +731,17 @@ suboption()
|
||||
if (SB_EOF())
|
||||
return;
|
||||
if (SB_GET() == TELQUAL_SEND) {
|
||||
long ospeed, ispeed;
|
||||
long output_speed, input_speed;
|
||||
unsigned char temp[50];
|
||||
int len;
|
||||
|
||||
TerminalSpeeds(&ispeed, &ospeed);
|
||||
TerminalSpeeds(&input_speed, &output_speed);
|
||||
|
||||
snprintf((char *)temp, sizeof(temp),
|
||||
"%c%c%c%c%u,%u%c%c", IAC, SB, TELOPT_TSPEED,
|
||||
TELQUAL_IS, (unsigned)ospeed, (unsigned)ispeed, IAC, SE);
|
||||
TELQUAL_IS,
|
||||
(unsigned)output_speed,
|
||||
(unsigned)input_speed, IAC, SE);
|
||||
len = strlen((char *)temp+4) + 4; /* temp[3] is 0 ... */
|
||||
|
||||
if (len < NETROOM()) {
|
||||
|
Reference in New Issue
Block a user