summaryrefslogtreecommitdiffstats
path: root/cpukit/pppd/lcp.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-08-26 10:24:22 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-08-26 10:24:22 +0000
commit62c37537bd593d5c1353cffea945ab3575c3f55e (patch)
tree0b006a752c96dbcb4263970fbd9f6e68aee4b083 /cpukit/pppd/lcp.c
parent2008-08-25 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-62c37537bd593d5c1353cffea945ab3575c3f55e.tar.bz2
Stop using old-style function-definitions.
Diffstat (limited to 'cpukit/pppd/lcp.c')
-rw-r--r--cpukit/pppd/lcp.c174
1 files changed, 87 insertions, 87 deletions
diff --git a/cpukit/pppd/lcp.c b/cpukit/pppd/lcp.c
index 99f5986904..a931c2d1de 100644
--- a/cpukit/pppd/lcp.c
+++ b/cpukit/pppd/lcp.c
@@ -223,8 +223,8 @@ int lcp_loopbackfail = DEFLOOPBACKFAIL;
* setescape - add chars to the set we escape on transmission.
*/
static int
-setescape(argv)
- char **argv;
+setescape(
+ char **argv)
{
int n, ret;
char *p, *endp;
@@ -254,8 +254,8 @@ setescape(argv)
* lcp_init - Initialize LCP.
*/
static void
-lcp_init(unit)
- int unit;
+lcp_init(
+ int unit)
{
fsm *f = &lcp_fsm[unit];
lcp_options *wo = &lcp_wantoptions[unit];
@@ -310,8 +310,8 @@ lcp_init(unit)
* lcp_open - LCP is allowed to come up.
*/
void
-lcp_open(unit)
- int unit;
+lcp_open(
+ int unit)
{
fsm *f = &lcp_fsm[unit];
lcp_options *wo = &lcp_wantoptions[unit];
@@ -329,9 +329,9 @@ lcp_open(unit)
* lcp_close - Take LCP down.
*/
void
-lcp_close(unit, reason)
- int unit;
- char *reason;
+lcp_close(
+ int unit,
+ char *reason)
{
fsm *f = &lcp_fsm[unit];
@@ -356,8 +356,8 @@ lcp_close(unit, reason)
* lcp_lowerup - The lower layer is up.
*/
void
-lcp_lowerup(unit)
- int unit;
+lcp_lowerup(
+ int unit)
{
lcp_options *wo = &lcp_wantoptions[unit];
@@ -381,8 +381,8 @@ lcp_lowerup(unit)
* lcp_lowerdown - The lower layer is down.
*/
void
-lcp_lowerdown(unit)
- int unit;
+lcp_lowerdown(
+ int unit)
{
fsm_lowerdown(&lcp_fsm[unit]);
}
@@ -392,10 +392,10 @@ lcp_lowerdown(unit)
* lcp_input - Input LCP packet.
*/
static void
-lcp_input(unit, p, len)
- int unit;
- u_char *p;
- int len;
+lcp_input(
+ int unit,
+ u_char *p,
+ int len)
{
fsm *f = &lcp_fsm[unit];
@@ -407,11 +407,11 @@ lcp_input(unit, p, len)
* lcp_extcode - Handle a LCP-specific code.
*/
static int
-lcp_extcode(f, code, id, inp, len)
- fsm *f;
- int code, id;
- u_char *inp;
- int len;
+lcp_extcode(
+ fsm *f,
+ int code, int id,
+ u_char *inp,
+ int len)
{
u_char *magp;
@@ -448,10 +448,10 @@ lcp_extcode(f, code, id, inp, len)
* Figure out which protocol is rejected and inform it.
*/
static void
-lcp_rprotrej(f, inp, len)
- fsm *f;
- u_char *inp;
- int len;
+lcp_rprotrej(
+ fsm *f,
+ u_char *inp,
+ int len)
{
int i;
struct protent *protp;
@@ -491,8 +491,8 @@ lcp_rprotrej(f, inp, len)
*/
/*ARGSUSED*/
static void
-lcp_protrej(unit)
- int unit;
+lcp_protrej(
+ int unit)
{
/*
* Can't reject LCP!
@@ -506,10 +506,10 @@ lcp_protrej(unit)
* lcp_sprotrej - Send a Protocol-Reject for some protocol.
*/
void
-lcp_sprotrej(unit, p, len)
- int unit;
- u_char *p;
- int len;
+lcp_sprotrej(
+ int unit,
+ u_char *p,
+ int len)
{
/*
* Send back the protocol and the information field of the
@@ -527,8 +527,8 @@ lcp_sprotrej(unit, p, len)
* lcp_resetci - Reset our CI.
*/
static void
-lcp_resetci(f)
- fsm *f;
+lcp_resetci(
+ fsm *f)
{
lcp_wantoptions[f->unit].magicnumber = magic();
lcp_wantoptions[f->unit].numloops = 0;
@@ -542,8 +542,8 @@ lcp_resetci(f)
* lcp_cilen - Return length of our CI.
*/
static int
-lcp_cilen(f)
- fsm *f;
+lcp_cilen(
+ fsm *f)
{
lcp_options *go = &lcp_gotoptions[f->unit];
@@ -573,10 +573,10 @@ lcp_cilen(f)
* lcp_addci - Add our desired CIs to a packet.
*/
static void
-lcp_addci(f, ucp, lenp)
- fsm *f;
- u_char *ucp;
- int *lenp;
+lcp_addci(
+ fsm *f,
+ u_char *ucp,
+ int *lenp)
{
lcp_options *go = &lcp_gotoptions[f->unit];
u_char *start_ucp = ucp;
@@ -646,10 +646,10 @@ lcp_addci(f, ucp, lenp)
* 1 - Ack was good.
*/
static int
-lcp_ackci(f, p, len)
- fsm *f;
- u_char *p;
- int len;
+lcp_ackci(
+ fsm *f,
+ u_char *p,
+ int len)
{
lcp_options *go = &lcp_gotoptions[f->unit];
u_char cilen, citype, cichar;
@@ -776,10 +776,10 @@ bad:
* 1 - Nak was good.
*/
static int
-lcp_nakci(f, p, len)
- fsm *f;
- u_char *p;
- int len;
+lcp_nakci(
+ fsm *f,
+ u_char *p,
+ int len)
{
lcp_options *go = &lcp_gotoptions[f->unit];
lcp_options *wo = &lcp_wantoptions[f->unit];
@@ -1088,10 +1088,10 @@ bad:
* 1 - Reject was good.
*/
static int
-lcp_rejci(f, p, len)
- fsm *f;
- u_char *p;
- int len;
+lcp_rejci(
+ fsm *f,
+ u_char *p,
+ int len)
{
lcp_options *go = &lcp_gotoptions[f->unit];
u_char cichar;
@@ -1222,11 +1222,11 @@ bad:
* CONFNAK; returns CONFREJ if it can't return CONFACK.
*/
static int
-lcp_reqci(f, inp, lenp, reject_if_disagree)
- fsm *f;
- u_char *inp; /* Requested CIs */
- int *lenp; /* Length of requested CIs */
- int reject_if_disagree;
+lcp_reqci(
+ fsm *f,
+ u_char *inp, /* Requested CIs */
+ int *lenp, /* Length of requested CIs */
+ int reject_if_disagree)
{
lcp_options *go = &lcp_gotoptions[f->unit];
lcp_options *ho = &lcp_hisoptions[f->unit];
@@ -1538,8 +1538,8 @@ endswitch:
* lcp_up - LCP has come UP.
*/
static void
-lcp_up(f)
- fsm *f;
+lcp_up(
+ fsm *f)
{
lcp_options *wo = &lcp_wantoptions[f->unit];
lcp_options *ho = &lcp_hisoptions[f->unit];
@@ -1579,8 +1579,8 @@ lcp_up(f)
* Alert other protocols.
*/
static void
-lcp_down(f)
- fsm *f;
+lcp_down(
+ fsm *f)
{
lcp_options *go = &lcp_gotoptions[f->unit];
@@ -1600,8 +1600,8 @@ lcp_down(f)
* lcp_starting - LCP needs the lower layer up.
*/
static void
-lcp_starting(f)
- fsm *f;
+lcp_starting(
+ fsm *f)
{
link_required(f->unit);
}
@@ -1611,8 +1611,8 @@ lcp_starting(f)
* lcp_finished - LCP has finished with the lower layer.
*/
static void
-lcp_finished(f)
- fsm *f;
+lcp_finished(
+ fsm *f)
{
link_terminated(f->unit);
}
@@ -1628,11 +1628,11 @@ static char *lcp_codenames[] = {
};
static int
-lcp_printpkt(p, plen, printer, arg)
- u_char *p;
- int plen;
- void (*printer)(void *, char *, ...);
- void *arg;
+lcp_printpkt(
+ u_char *p,
+ int plen,
+ void (*printer)(void *, char *, ...),
+ void *arg)
{
int code, id, len, olen;
u_char *pstart, *optend;
@@ -1808,8 +1808,8 @@ lcp_printpkt(p, plen, printer, arg)
*/
static
-void LcpLinkFailure (f)
- fsm *f;
+void LcpLinkFailure (
+ fsm *f)
{
if (f->state == OPENED) {
info("No response to %d echo-requests", lcp_echos_pending);
@@ -1824,8 +1824,8 @@ void LcpLinkFailure (f)
*/
static void
-LcpEchoCheck (f)
- fsm *f;
+LcpEchoCheck (
+ fsm *f)
{
LcpSendEchoRequest (f);
if (f->state != OPENED)
@@ -1845,8 +1845,8 @@ LcpEchoCheck (f)
*/
static void
-LcpEchoTimeout (arg)
- void *arg;
+LcpEchoTimeout (
+ void *arg)
{
if (lcp_echo_timer_running != 0) {
lcp_echo_timer_running = 0;
@@ -1859,11 +1859,11 @@ LcpEchoTimeout (arg)
*/
static void
-lcp_received_echo_reply (f, id, inp, len)
- fsm *f;
- int id;
- u_char *inp;
- int len;
+lcp_received_echo_reply (
+ fsm *f,
+ int id,
+ u_char *inp,
+ int len)
{
uint32_t magic;
@@ -1888,8 +1888,8 @@ lcp_received_echo_reply (f, id, inp, len)
*/
static void
-LcpSendEchoRequest (f)
- fsm *f;
+LcpSendEchoRequest (
+ fsm *f)
{
uint32_t lcp_magic;
u_char pkt[4], *pktp;
@@ -1921,8 +1921,8 @@ LcpSendEchoRequest (f)
*/
static void
-lcp_echo_lowerup (unit)
- int unit;
+lcp_echo_lowerup (
+ int unit)
{
fsm *f = &lcp_fsm[unit];
@@ -1941,8 +1941,8 @@ lcp_echo_lowerup (unit)
*/
static void
-lcp_echo_lowerdown (unit)
- int unit;
+lcp_echo_lowerdown (
+ int unit)
{
fsm *f = &lcp_fsm[unit];