[rtems commit] libnetworking: Update due to Termios changes
Sebastian Huber
sebh at rtems.org
Tue Sep 30 11:58:24 UTC 2014
Module: rtems
Branch: master
Commit: 33739be8af96d0df7f1bf68a89784ad1841fdaca
Changeset: http://git.rtems.org/rtems/commit/?id=33739be8af96d0df7f1bf68a89784ad1841fdaca
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Sep 30 11:25:57 2014 +0200
libnetworking: Update due to Termios changes
---
cpukit/libnetworking/net/if_ppp.c | 2 +-
cpukit/libnetworking/net/ppp_tty.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/cpukit/libnetworking/net/if_ppp.c b/cpukit/libnetworking/net/if_ppp.c
index d177d36..3f9c16f 100644
--- a/cpukit/libnetworking/net/if_ppp.c
+++ b/cpukit/libnetworking/net/if_ppp.c
@@ -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 */
diff --git a/cpukit/libnetworking/net/ppp_tty.c b/cpukit/libnetworking/net/ppp_tty.c
index f0ed7ad..613d9c5 100644
--- a/cpukit/libnetworking/net/ppp_tty.c
+++ b/cpukit/libnetworking/net/ppp_tty.c
@@ -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;
}
More information about the vc
mailing list