FreeBSD compile fix
This commit is contained in:
parent
ae5d8f42ef
commit
9b6b94c67d
@ -141,7 +141,7 @@ et_tu:
|
|||||||
return TERROR;
|
return TERROR;
|
||||||
}
|
}
|
||||||
sendline(ACK);
|
sendline(ACK);
|
||||||
ioctl(1, TCFLSH, 0);
|
// ioctl(1, TCFLSH, 0);
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -995,7 +995,6 @@ void canit(int fd)
|
|||||||
static char canistr[] = { 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 0 };
|
static char canistr[] = { 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 0 };
|
||||||
|
|
||||||
Syslog('z', "%s: send canit to fd %d", protname(), fd);
|
Syslog('z', "%s: send canit to fd %d", protname(), fd);
|
||||||
ioctl(fd, TCFLSH, 0);
|
|
||||||
write(fd, canistr, strlen(canistr));
|
write(fd, canistr, strlen(canistr));
|
||||||
if (fd == 0)
|
if (fd == 0)
|
||||||
write(1, canistr, strlen(canistr));
|
write(1, canistr, strlen(canistr));
|
||||||
|
@ -254,11 +254,13 @@ int getzrxinit(void)
|
|||||||
case ZRINIT:
|
case ZRINIT:
|
||||||
Rxflags = 0377 & Rxhdr[ZF0];
|
Rxflags = 0377 & Rxhdr[ZF0];
|
||||||
Txfcs32 = (Wantfcs32 && (Rxflags & CANFC32));
|
Txfcs32 = (Wantfcs32 && (Rxflags & CANFC32));
|
||||||
int old = Zctlesc;
|
{
|
||||||
Zctlesc |= Rxflags & TESCCTL;
|
int old = Zctlesc;
|
||||||
/* update table - was initialised to not escape */
|
Zctlesc |= Rxflags & TESCCTL;
|
||||||
if (Zctlesc && !old)
|
/* update table - was initialised to not escape */
|
||||||
zsendline_init();
|
if (Zctlesc && !old)
|
||||||
|
zsendline_init();
|
||||||
|
}
|
||||||
|
|
||||||
Rxbuflen = (0377 & Rxhdr[ZP0])+((0377 & Rxhdr[ZP1])<<8);
|
Rxbuflen = (0377 & Rxhdr[ZP0])+((0377 & Rxhdr[ZP1])<<8);
|
||||||
if ( !(Rxflags & CANFDX))
|
if ( !(Rxflags & CANFDX))
|
||||||
|
Reference in New Issue
Block a user