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/ccp.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/ccp.c')
-rw-r--r-- | cpukit/pppd/ccp.c | 137 |
1 files changed, 69 insertions, 68 deletions
diff --git a/cpukit/pppd/ccp.c b/cpukit/pppd/ccp.c index 5af17e03ea..0958281217 100644 --- a/cpukit/pppd/ccp.c +++ b/cpukit/pppd/ccp.c @@ -175,8 +175,8 @@ static int all_rejected[NUM_PPP]; /* we rejected all peer's options */ * Option parsing. */ static int -setbsdcomp(argv) - char **argv; +setbsdcomp( + char **argv) { int rbits, abits; char *str, *endp; @@ -211,8 +211,8 @@ setbsdcomp(argv) } static int -setdeflate(argv) - char **argv; +setdeflate( + char **argv) { int rbits, abits; char *str, *endp; @@ -252,8 +252,8 @@ setdeflate(argv) * ccp_init - initialize CCP. */ static void -ccp_init(unit) - int unit; +ccp_init( + int unit) { fsm *f = &ccp_fsm[unit]; @@ -288,8 +288,8 @@ ccp_init(unit) * ccp_open - CCP is allowed to come up. */ static void -ccp_open(unit) - int unit; +ccp_open( + int unit) { fsm *f = &ccp_fsm[unit]; @@ -311,9 +311,9 @@ ccp_open(unit) * ccp_close - Terminate CCP. */ static void -ccp_close(unit, reason) - int unit; - char *reason; +ccp_close( + int unit, + char *reason) { ccp_flags_set(unit, 0, 0); fsm_close(&ccp_fsm[unit], reason); @@ -323,8 +323,8 @@ ccp_close(unit, reason) * ccp_lowerup - we may now transmit CCP packets. */ static void -ccp_lowerup(unit) - int unit; +ccp_lowerup( + int unit) { fsm_lowerup(&ccp_fsm[unit]); } @@ -333,8 +333,8 @@ ccp_lowerup(unit) * ccp_lowerdown - we may not transmit CCP packets. */ static void -ccp_lowerdown(unit) - int unit; +ccp_lowerdown( + int unit) { fsm_lowerdown(&ccp_fsm[unit]); } @@ -343,10 +343,10 @@ ccp_lowerdown(unit) * ccp_input - process a received CCP packet. */ static void -ccp_input(unit, p, len) - int unit; - u_char *p; - int len; +ccp_input( + int unit, + u_char *p, + int len) { fsm *f = &ccp_fsm[unit]; int oldstate; @@ -372,11 +372,11 @@ ccp_input(unit, p, len) * Handle a CCP-specific code. */ static int -ccp_extcode(f, code, id, p, len) - fsm *f; - int code, id; - u_char *p; - int len; +ccp_extcode( + fsm *f, + int code, int id, + u_char *p, + int len) { switch (code) { case CCP_RESETREQ: @@ -405,8 +405,8 @@ ccp_extcode(f, code, id, p, len) * ccp_protrej - peer doesn't talk CCP. */ static void -ccp_protrej(unit) - int unit; +ccp_protrej( + int unit) { ccp_flags_set(unit, 0, 0); fsm_lowerdown(&ccp_fsm[unit]); @@ -416,8 +416,8 @@ ccp_protrej(unit) * ccp_resetci - initialize at start of negotiation. */ static void -ccp_resetci(f) - fsm *f; +ccp_resetci( + fsm *f) { ccp_options *go = &ccp_gotoptions[f->unit]; u_char opt_buf[16]; @@ -474,8 +474,8 @@ ccp_resetci(f) * ccp_cilen - Return total length of our configuration info. */ static int -ccp_cilen(f) - fsm *f; +ccp_cilen( + fsm *f) { ccp_options *go = &ccp_gotoptions[f->unit]; @@ -489,10 +489,10 @@ ccp_cilen(f) * ccp_addci - put our requests in a packet. */ static void -ccp_addci(f, p, lenp) - fsm *f; - u_char *p; - int *lenp; +ccp_addci( + fsm *f, + u_char *p, + int *lenp) { int res; ccp_options *go = &ccp_gotoptions[f->unit]; @@ -581,10 +581,10 @@ ccp_addci(f, p, lenp) * 1 iff the packet was OK. */ static int -ccp_ackci(f, p, len) - fsm *f; - u_char *p; - int len; +ccp_ackci( + fsm *f, + u_char *p, + int len) { ccp_options *go = &ccp_gotoptions[f->unit]; u_char *p0 = p; @@ -654,10 +654,10 @@ ccp_ackci(f, p, len) * Returns 1 iff the nak was OK. */ static int -ccp_nakci(f, p, len) - fsm *f; - u_char *p; - int len; +ccp_nakci( + fsm *f, + u_char *p, + int len) { ccp_options *go = &ccp_gotoptions[f->unit]; ccp_options no; /* options we've seen already */ @@ -720,10 +720,10 @@ ccp_nakci(f, p, len) * ccp_rejci - reject some of our suggested compression methods. */ static int -ccp_rejci(f, p, len) - fsm *f; - u_char *p; - int len; +ccp_rejci( + fsm *f, + u_char *p, + int len) { ccp_options *go = &ccp_gotoptions[f->unit]; ccp_options try; /* options to request next time */ @@ -798,11 +798,11 @@ ccp_rejci(f, p, len) * appropriately. */ static int -ccp_reqci(f, p, lenp, dont_nak) - fsm *f; - u_char *p; - int *lenp; - int dont_nak; +ccp_reqci( + fsm *f, + u_char *p, + int *lenp, + int dont_nak) { int ret, newret, res; u_char *p0, *retp; @@ -977,8 +977,9 @@ ccp_reqci(f, p, lenp, dont_nak) * Make a string name for a compression method (or 2). */ static char * -method_name(opt, opt2) - ccp_options *opt, *opt2; +method_name( + ccp_options *opt, + ccp_options *opt2) { static char result[64]; @@ -1018,8 +1019,8 @@ method_name(opt, opt2) * CCP has come up - inform the kernel driver and log a message. */ static void -ccp_up(f) - fsm *f; +ccp_up( + fsm *f) { ccp_options *go = &ccp_gotoptions[f->unit]; ccp_options *ho = &ccp_hisoptions[f->unit]; @@ -1045,8 +1046,8 @@ ccp_up(f) * CCP has gone down - inform the kernel driver. */ static void -ccp_down(f) - fsm *f; +ccp_down( + fsm *f) { if (ccp_localstate[f->unit] & RACK_PENDING) UNTIMEOUT(ccp_rack_timeout, f); @@ -1065,11 +1066,11 @@ static char *ccp_codenames[] = { }; static int -ccp_printpkt(p, plen, printer, arg) - u_char *p; - int plen; - void (*printer)(void *, char *, ...); - void *arg; +ccp_printpkt( + u_char *p, + int plen, + void (*printer)(void *, char *, ...), + void *arg) { u_char *p0, *optend; int code, id, len; @@ -1177,10 +1178,10 @@ ccp_printpkt(p, plen, printer, arg) * compression :-(, otherwise we issue the reset-request. */ static void -ccp_datainput(unit, pkt, len) - int unit; - u_char *pkt; - int len; +ccp_datainput( + int unit, + u_char *pkt, + int len) { fsm *f; @@ -1212,8 +1213,8 @@ ccp_datainput(unit, pkt, len) * Timeout waiting for reset-ack. */ static void -ccp_rack_timeout(arg) - void *arg; +ccp_rack_timeout( + void *arg) { fsm *f = arg; |