libnetworking: Update due to Termios changes

This commit is contained in:
Sebastian Huber
2014-09-30 14:06:09 +02:00
parent fbe59f7c67
commit 33739be8af
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -382,7 +382,7 @@ static rtems_task ppp_txdaemon(rtems_task_argument arg)
/* write out frame byte to start the transmission */
sc->sc_outchar = (u_char)PPP_FLAG;
(*tp->device.write)(tp->minor, (char *)&sc->sc_outchar, 1);
(*tp->handler.write)(tp, (char *)&sc->sc_outchar, 1);
}
/* check to see if we need to free some empty mbufs */
+2 -2
View File
@@ -606,7 +606,7 @@ pppstart(struct rtems_termios_tty *tp)
sc->sc_outflag |= SC_TX_LASTCHAR;
sc->sc_outflag &=~(SC_TX_FCS);
sc->sc_outchar = (u_char)PPP_FLAG;
(*tp->device.write)(tp->minor, (char *)&sc->sc_outchar, 1);
(*tp->handler.write)(tp, (char *)&sc->sc_outchar, 1);
return(0);
}
}
@@ -643,7 +643,7 @@ pppstart(struct rtems_termios_tty *tp)
}
/* write out the character(s) and update the stats */
(*tp->device.write)(tp->minor, (char *)sendBegin, (ioffset > 0) ? ioffset : 1);
(*tp->handler.write)(tp, (char *)sendBegin, (ioffset > 0) ? ioffset : 1);
sc->sc_stats.ppp_obytes += (ioffset > 0) ? ioffset : 1;
sc->sc_outoff += ioffset;
}