summaryrefslogtreecommitdiffstats
path: root/cpukit/pppd/chap.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/chap.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/chap.c')
-rw-r--r--cpukit/pppd/chap.c120
1 files changed, 60 insertions, 60 deletions
diff --git a/cpukit/pppd/chap.c b/cpukit/pppd/chap.c
index b9fef69432..884421cdb8 100644
--- a/cpukit/pppd/chap.c
+++ b/cpukit/pppd/chap.c
@@ -120,8 +120,8 @@ static void ChapGenChallenge(chap_state *);
* ChapInit - Initialize a CHAP unit.
*/
static void
-ChapInit(unit)
- int unit;
+ChapInit(
+ int unit)
{
chap_state *cstate = &chap[unit];
@@ -140,10 +140,10 @@ ChapInit(unit)
*
*/
void
-ChapAuthWithPeer(unit, our_name, digest)
- int unit;
- char *our_name;
- int digest;
+ChapAuthWithPeer(
+ int unit,
+ char *our_name,
+ int digest)
{
chap_state *cstate = &chap[unit];
@@ -170,10 +170,10 @@ ChapAuthWithPeer(unit, our_name, digest)
* ChapAuthPeer - Authenticate our peer (start server).
*/
void
-ChapAuthPeer(unit, our_name, digest)
- int unit;
- char *our_name;
- int digest;
+ChapAuthPeer(
+ int unit,
+ char *our_name,
+ int digest)
{
chap_state *cstate = &chap[unit];
@@ -197,8 +197,8 @@ ChapAuthPeer(unit, our_name, digest)
* ChapChallengeTimeout - Timeout expired on sending challenge.
*/
static void
-ChapChallengeTimeout(arg)
- void *arg;
+ChapChallengeTimeout(
+ void *arg)
{
chap_state *cstate = (chap_state *) arg;
@@ -224,8 +224,8 @@ ChapChallengeTimeout(arg)
* ChapResponseTimeout - Timeout expired on sending response.
*/
static void
-ChapResponseTimeout(arg)
- void *arg;
+ChapResponseTimeout(
+ void *arg)
{
chap_state *cstate = (chap_state *) arg;
@@ -241,8 +241,8 @@ ChapResponseTimeout(arg)
* ChapRechallenge - Time to challenge the peer again.
*/
static void
-ChapRechallenge(arg)
- void *arg;
+ChapRechallenge(
+ void *arg)
{
chap_state *cstate = (chap_state *) arg;
@@ -262,8 +262,8 @@ ChapRechallenge(arg)
* Start up if we have pending requests.
*/
static void
-ChapLowerUp(unit)
- int unit;
+ChapLowerUp(
+ int unit)
{
chap_state *cstate = &chap[unit];
@@ -288,8 +288,8 @@ ChapLowerUp(unit)
* Cancel all timeouts.
*/
static void
-ChapLowerDown(unit)
- int unit;
+ChapLowerDown(
+ int unit)
{
chap_state *cstate = &chap[unit];
@@ -312,8 +312,8 @@ ChapLowerDown(unit)
* ChapProtocolReject - Peer doesn't grok CHAP.
*/
static void
-ChapProtocolReject(unit)
- int unit;
+ChapProtocolReject(
+ int unit)
{
chap_state *cstate = &chap[unit];
@@ -331,10 +331,10 @@ ChapProtocolReject(unit)
* ChapInput - Input CHAP packet.
*/
static void
-ChapInput(unit, inpacket, packet_len)
- int unit;
- u_char *inpacket;
- int packet_len;
+ChapInput(
+ int unit,
+ u_char *inpacket,
+ int packet_len)
{
chap_state *cstate = &chap[unit];
u_char *inp;
@@ -394,11 +394,11 @@ ChapInput(unit, inpacket, packet_len)
* ChapReceiveChallenge - Receive Challenge and send Response.
*/
static void
-ChapReceiveChallenge(cstate, inp, id, len)
- chap_state *cstate;
- u_char *inp;
- int id;
- int len;
+ChapReceiveChallenge(
+ chap_state *cstate,
+ u_char *inp,
+ int id,
+ int len)
{
int rchallenge_len;
u_char *rchallenge;
@@ -487,11 +487,11 @@ ChapReceiveChallenge(cstate, inp, id, len)
* ChapReceiveResponse - Receive and process response.
*/
static void
-ChapReceiveResponse(cstate, inp, id, len)
- chap_state *cstate;
- u_char *inp;
- int id;
- int len;
+ChapReceiveResponse(
+ chap_state *cstate,
+ u_char *inp,
+ int id,
+ int len)
{
u_char *remmd, remmd_len;
int secret_len, old_state;
@@ -601,11 +601,11 @@ ChapReceiveResponse(cstate, inp, id, len)
* ChapReceiveSuccess - Receive Success
*/
static void
-ChapReceiveSuccess(cstate, inp, id, len)
- chap_state *cstate;
- u_char *inp;
- u_char id;
- int len;
+ChapReceiveSuccess(
+ chap_state *cstate,
+ u_char *inp,
+ u_char id,
+ int len)
{
if (cstate->clientstate == CHAPCS_OPEN)
@@ -636,11 +636,11 @@ ChapReceiveSuccess(cstate, inp, id, len)
* ChapReceiveFailure - Receive failure.
*/
static void
-ChapReceiveFailure(cstate, inp, id, len)
- chap_state *cstate;
- u_char *inp;
- u_char id;
- int len;
+ChapReceiveFailure(
+ chap_state *cstate,
+ u_char *inp,
+ u_char id,
+ int len)
{
if (cstate->clientstate != CHAPCS_RESPONSE) {
/* don't know what this is */
@@ -665,8 +665,8 @@ ChapReceiveFailure(cstate, inp, id, len)
* ChapSendChallenge - Send an Authenticate challenge.
*/
static void
-ChapSendChallenge(cstate)
- chap_state *cstate;
+ChapSendChallenge(
+ chap_state *cstate)
{
u_char *outp;
int chal_len, name_len;
@@ -700,9 +700,9 @@ ChapSendChallenge(cstate)
* ChapSendStatus - Send a status response (ack or nak).
*/
static void
-ChapSendStatus(cstate, code)
- chap_state *cstate;
- int code;
+ChapSendStatus(
+ chap_state *cstate,
+ int code)
{
u_char *outp;
int outlen, msglen;
@@ -734,8 +734,8 @@ ChapSendStatus(cstate, code)
*/
static void
-ChapGenChallenge(cstate)
- chap_state *cstate;
+ChapGenChallenge(
+ chap_state *cstate)
{
int chal_len;
u_char *ptr = cstate->challenge;
@@ -761,8 +761,8 @@ ChapGenChallenge(cstate)
*/
/* ARGSUSED */
static void
-ChapSendResponse(cstate)
- chap_state *cstate;
+ChapSendResponse(
+ chap_state *cstate)
{
u_char *outp;
int outlen, md_len, name_len;
@@ -800,11 +800,11 @@ static char *ChapCodenames[] = {
};
static int
-ChapPrintPkt(p, plen, printer, arg)
- u_char *p;
- int plen;
- void (*printer)(void *, char *, ...);
- void *arg;
+ChapPrintPkt(
+ u_char *p,
+ int plen,
+ void (*printer)(void *, char *, ...),
+ void *arg)
{
int code, id, len;
int clen, nlen;