summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/net/ppp_tty.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-09-01 04:56:33 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-09-01 04:56:33 +0000
commit42e10fa24f384e81a1551e7aef284d1e53b785c9 (patch)
tree8756ca4e5a71a734a2552b1fa714be7e6b1f7a1f /cpukit/libnetworking/net/ppp_tty.c
parentStop using old-style function definitions. (diff)
downloadrtems-42e10fa24f384e81a1551e7aef284d1e53b785c9.tar.bz2
Stop using old-style function definitions.
Diffstat (limited to 'cpukit/libnetworking/net/ppp_tty.c')
-rw-r--r--cpukit/libnetworking/net/ppp_tty.c23
1 files changed, 8 insertions, 15 deletions
diff --git a/cpukit/libnetworking/net/ppp_tty.c b/cpukit/libnetworking/net/ppp_tty.c
index dca08ed339..94d0a69552 100644
--- a/cpukit/libnetworking/net/ppp_tty.c
+++ b/cpukit/libnetworking/net/ppp_tty.c
@@ -176,7 +176,7 @@ static struct rtems_termios_linesw pppdisc = {
};
void
-pppasyncattach()
+pppasyncattach(void)
{
rtems_termios_linesw[PPPDISC] = pppdisc;
}
@@ -278,8 +278,7 @@ pppclose(struct rtems_termios_tty *tty)
* Relinquish the interface unit to another device.
*/
static void
-pppasyncrelinq(sc)
- struct ppp_softc *sc;
+pppasyncrelinq(struct ppp_softc *sc)
{
#ifdef XXX_XXX
if (sc->sc_outm) {
@@ -544,8 +543,8 @@ void pppasyncstart(struct ppp_softc *sc)
* the inq, at splsoftnet.
*/
static void
-pppasyncctlp(sc)
- struct ppp_softc *sc;
+pppasyncctlp(
+ struct ppp_softc *sc)
{
/* check to see if task id was set */
if ( sc->sc_pppdtask != 0 ) {
@@ -656,8 +655,7 @@ pppstart(struct rtems_termios_tty *tp)
* Timeout routine - try to start some more output.
*/
static void
-ppp_timeout(x)
- void *x;
+ppp_timeout(void *x)
{
struct rtems_termios_tty *tty = (struct rtems_termios_tty *)x;
struct ppp_softc *sc = tty->t_sc;
@@ -673,8 +671,7 @@ ppp_timeout(x)
*/
#ifdef XXX_XXX
static void
-pppgetm(sc)
- register struct ppp_softc *sc;
+pppgetm(struct ppp_softc *sc)
{
struct mbuf *m, **mp;
int len;
@@ -914,9 +911,7 @@ pppinput(int c, struct rtems_termios_tty *tp)
#define MAX_DUMP_BYTES 128
static void
-ppplogchar(sc, c)
- struct ppp_softc *sc;
- int c;
+ppplogchar(struct ppp_softc *sc, int c)
{
if (c >= 0)
sc->sc_rawin[sc->sc_rawin_count++] = c;
@@ -929,9 +924,7 @@ ppplogchar(sc, c)
}
static void
-pppdumpb(b, l)
- u_char *b;
- int l;
+pppdumpb(u_char *b, int l)
{
char buf[3*MAX_DUMP_BYTES+4];
char *bp = buf;