diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-08-26 10:24:22 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-08-26 10:24:22 +0000 |
commit | 62c37537bd593d5c1353cffea945ab3575c3f55e (patch) | |
tree | 0b006a752c96dbcb4263970fbd9f6e68aee4b083 /cpukit/pppd/fsm.c | |
parent | 2008-08-25 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-62c37537bd593d5c1353cffea945ab3575c3f55e.tar.bz2 |
Stop using old-style function-definitions.
Diffstat (limited to 'cpukit/pppd/fsm.c')
-rw-r--r-- | cpukit/pppd/fsm.c | 106 |
1 files changed, 53 insertions, 53 deletions
diff --git a/cpukit/pppd/fsm.c b/cpukit/pppd/fsm.c index c44e7bd930..965323ae49 100644 --- a/cpukit/pppd/fsm.c +++ b/cpukit/pppd/fsm.c @@ -54,8 +54,8 @@ int peer_mru[NUM_PPP]; * Initialize fsm state. */ void -fsm_init(f) - fsm *f; +fsm_init( + fsm *f) { f->state = INITIAL; f->flags = 0; @@ -72,8 +72,8 @@ fsm_init(f) * fsm_lowerup - The lower layer is up. */ void -fsm_lowerup(f) - fsm *f; +fsm_lowerup( + fsm *f) { switch( f->state ){ case INITIAL: @@ -102,8 +102,8 @@ fsm_lowerup(f) * Cancel all timeouts and inform upper layers. */ void -fsm_lowerdown(f) - fsm *f; +fsm_lowerdown( + fsm *f) { switch( f->state ){ case CLOSED: @@ -145,8 +145,8 @@ fsm_lowerdown(f) * fsm_open - Link is allowed to come up. */ void -fsm_open(f) - fsm *f; +fsm_open( + fsm *f) { switch( f->state ){ case INITIAL: @@ -186,9 +186,9 @@ fsm_open(f) * the CLOSED state. */ void -fsm_close(f, reason) - fsm *f; - char *reason; +fsm_close( + fsm *f, + char *reason) { f->term_reason = reason; f->term_reason_len = (reason == NULL? 0: strlen(reason)); @@ -229,8 +229,8 @@ fsm_close(f, reason) * fsm_timeout - Timeout expired. */ static void -fsm_timeout(arg) - void *arg; +fsm_timeout( + void *arg) { fsm *f = (fsm *) arg; @@ -282,10 +282,10 @@ fsm_timeout(arg) * fsm_input - Input packet. */ void -fsm_input(f, inpacket, l) - fsm *f; - u_char *inpacket; - int l; +fsm_input( + fsm *f, + u_char *inpacket, + int l) { u_char *inp; u_char code, id; @@ -361,11 +361,11 @@ fsm_input(f, inpacket, l) * fsm_rconfreq - Receive Configure-Request. */ static void -fsm_rconfreq(f, id, inp, len) - fsm *f; - u_char id; - u_char *inp; - int len; +fsm_rconfreq( + fsm *f, + u_char id, + u_char *inp, + int len) { int code, reject_if_disagree; @@ -433,11 +433,11 @@ fsm_rconfreq(f, id, inp, len) * fsm_rconfack - Receive Configure-Ack. */ static void -fsm_rconfack(f, id, inp, len) - fsm *f; - int id; - u_char *inp; - int len; +fsm_rconfack( + fsm *f, + int id, + u_char *inp, + int len) { if (id != f->reqid || f->seen_ack) /* Expected id? */ return; /* Nope, toss... */ @@ -490,11 +490,11 @@ fsm_rconfack(f, id, inp, len) * fsm_rconfnakrej - Receive Configure-Nak or Configure-Reject. */ static void -fsm_rconfnakrej(f, code, id, inp, len) - fsm *f; - int code, id; - u_char *inp; - int len; +fsm_rconfnakrej( + fsm *f, + int code, int id, + u_char *inp, + int len) { int (*proc)(fsm *, u_char *, int); int ret; @@ -547,11 +547,11 @@ fsm_rconfnakrej(f, code, id, inp, len) * fsm_rtermreq - Receive Terminate-Req. */ static void -fsm_rtermreq(f, id, p, len) - fsm *f; - int id; - u_char *p; - int len; +fsm_rtermreq( + fsm *f, + int id, + u_char *p, + int len) { switch (f->state) { case ACKRCVD: @@ -580,8 +580,8 @@ fsm_rtermreq(f, id, p, len) * fsm_rtermack - Receive Terminate-Ack. */ static void -fsm_rtermack(f) - fsm *f; +fsm_rtermack( + fsm *f) { switch (f->state) { case CLOSING: @@ -614,10 +614,10 @@ fsm_rtermack(f) * fsm_rcoderej - Receive an Code-Reject. */ static void -fsm_rcoderej(f, inp, len) - fsm *f; - u_char *inp; - int len; +fsm_rcoderej( + fsm *f, + u_char *inp, + int len) { u_char code, id; @@ -640,8 +640,8 @@ fsm_rcoderej(f, inp, len) * Treat this as a catastrophic error (RXJ-). */ void -fsm_protreject(f) - fsm *f; +fsm_protreject( + fsm *f) { switch( f->state ){ case CLOSING: @@ -690,9 +690,9 @@ fsm_protreject(f) * fsm_sconfreq - Send a Configure-Request. */ static void -fsm_sconfreq(f, retransmit) - fsm *f; - int retransmit; +fsm_sconfreq( + fsm *f, + int retransmit) { u_char *outp; int cilen; @@ -740,11 +740,11 @@ fsm_sconfreq(f, retransmit) * Used for all packets sent to our peer by this module. */ void -fsm_sdata(f, code, id, data, datalen) - fsm *f; - u_char code, id; - u_char *data; - int datalen; +fsm_sdata( + fsm *f, + u_char code, u_char id, + u_char *data, + int datalen) { u_char *outp; int outlen; |