// we intentionally do not send the FCS bytes as the DCE regenerates them
// send fcount frames separated by <DLE><ETX>
buf[0] = DLE; buf[1] = ETX;
- for (u_short v34frame = 0; v34frame < fcount; v34frame++) {
+ u_short v34frame;
+ for (v34frame = 0; v34frame < fcount; v34frame++) {
if (!putModemDLEData(ecmStuffedBlock, frameSize + 4, bitrev, getDataTimeout()))
return (false);
if (!putModemData(buf, 2)) return (false);
ecmStuffedBlock += (frameSize + 6);
}
// send 3 RCP frames separated by <DLE><ETX>
- for (u_short v34frame = 0; v34frame < 3; v34frame++) {
+ for (v34frame = 0; v34frame < 3; v34frame++) {
if (!putModemDLEData(ecmStuffedBlock, 3, bitrev, getDataTimeout()))
return (false);
if (!putModemData(buf, 2)) return (false);
return (span);
}
+/*
+ * Write a code to the output stream.
+ */
+inline void
+G3Encoder::putcode(const tableentry& te)
+{
+ putBits(te.code, te.length);
+}
+
/*
* Return the offset of the next bit in the range
* [bs..be] that is different from the specified
flushBits();
}
-/*
- * Write a code to the output stream.
- */
-inline void
-G3Encoder::putcode(const tableentry& te)
-{
- putBits(te.code, te.length);
-}
-
/*
* Write the sequence of codes that describes
* the specified span of zero's or one's. The