From 62c37537bd593d5c1353cffea945ab3575c3f55e Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 26 Aug 2008 10:24:22 +0000 Subject: Stop using old-style function-definitions. --- cpukit/pppd/upap.c | 89 +++++++++++++++++++++++++----------------------------- 1 file changed, 41 insertions(+), 48 deletions(-) (limited to 'cpukit/pppd/upap.c') diff --git a/cpukit/pppd/upap.c b/cpukit/pppd/upap.c index 89b8349215..ed7cff13db 100644 --- a/cpukit/pppd/upap.c +++ b/cpukit/pppd/upap.c @@ -96,8 +96,7 @@ static void upap_sresp(upap_state *, u_char, u_char, char *, int); * upap_init - Initialize a UPAP unit. */ static void -upap_init(unit) - int unit; +upap_init(int unit) { upap_state *u = &upap[unit]; @@ -121,9 +120,10 @@ upap_init(unit) * Set new state and send authenticate's. */ void -upap_authwithpeer(unit, user, password) - int unit; - char *user, *password; +upap_authwithpeer( + int unit, + char *user, + char *password) { upap_state *u = &upap[unit]; @@ -151,8 +151,7 @@ upap_authwithpeer(unit, user, password) * Set new state. */ void -upap_authpeer(unit) - int unit; +upap_authpeer(int unit) { upap_state *u = &upap[unit]; @@ -173,8 +172,7 @@ upap_authpeer(unit) * upap_timeout - Retransmission timer for sending auth-reqs expired. */ static void -upap_timeout(arg) - void *arg; +upap_timeout(void *arg) { upap_state *u = (upap_state *) arg; @@ -197,8 +195,7 @@ upap_timeout(arg) * upap_reqtimeout - Give up waiting for the peer to send an auth-req. */ static void -upap_reqtimeout(arg) - void *arg; +upap_reqtimeout(void *arg) { upap_state *u = (upap_state *) arg; @@ -216,8 +213,7 @@ upap_reqtimeout(arg) * Start authenticating if pending. */ static void -upap_lowerup(unit) - int unit; +upap_lowerup(int unit) { upap_state *u = &upap[unit]; @@ -243,8 +239,7 @@ upap_lowerup(unit) * Cancel all timeouts. */ static void -upap_lowerdown(unit) - int unit; +upap_lowerdown(int unit) { upap_state *u = &upap[unit]; @@ -264,8 +259,7 @@ upap_lowerdown(unit) * This shouldn't happen. In any case, pretend lower layer went down. */ static void -upap_protrej(unit) - int unit; +upap_protrej(int unit) { upap_state *u = &upap[unit]; @@ -285,10 +279,10 @@ upap_protrej(unit) * upap_input - Input UPAP packet. */ static void -upap_input(unit, inpacket, l) - int unit; - u_char *inpacket; - int l; +upap_input( + int unit, + u_char *inpacket, + int l) { upap_state *u = &upap[unit]; u_char *inp; @@ -343,11 +337,11 @@ upap_input(unit, inpacket, l) * upap_rauth - Receive Authenticate. */ static void -upap_rauthreq(u, inp, id, len) - upap_state *u; - u_char *inp; - int id; - int len; +upap_rauthreq( + upap_state *u, + u_char *inp, + int id, + int len) { u_char ruserlen, rpasswdlen; char *ruser, *rpasswd; @@ -422,11 +416,11 @@ upap_rauthreq(u, inp, id, len) * upap_rauthack - Receive Authenticate-Ack. */ static void -upap_rauthack(u, inp, id, len) - upap_state *u; - u_char *inp; - int id; - int len; +upap_rauthack( + upap_state *u, + u_char *inp, + int id, + int len) { u_char msglen; char *msg; @@ -462,11 +456,11 @@ upap_rauthack(u, inp, id, len) * upap_rauthnak - Receive Authenticate-Nakk. */ static void -upap_rauthnak(u, inp, id, len) - upap_state *u; - u_char *inp; - int id; - int len; +upap_rauthnak( + upap_state *u, + u_char *inp, + int id, + int len) { u_char msglen; char *msg; @@ -503,8 +497,7 @@ upap_rauthnak(u, inp, id, len) * upap_sauthreq - Send an Authenticate-Request. */ static void -upap_sauthreq(u) - upap_state *u; +upap_sauthreq(upap_state *u) { u_char *outp; int outlen; @@ -536,11 +529,11 @@ upap_sauthreq(u) * upap_sresp - Send a response (ack or nak). */ static void -upap_sresp(u, code, id, msg, msglen) - upap_state *u; - u_char code, id; - char *msg; - int msglen; +upap_sresp( + upap_state *u, + u_char code, u_char id, + char *msg, + int msglen) { u_char *outp; int outlen; @@ -565,11 +558,11 @@ static char *upap_codenames[] = { }; static int -upap_printpkt(p, plen, printer, arg) - u_char *p; - int plen; - void (*printer)(void *, char *, ...); - void *arg; +upap_printpkt( + u_char *p, + int plen, + void (*printer)(void *, char *, ...), + void *arg) { int code, id, len; int mlen, ulen, wlen; -- cgit v1.2.3