diff options
author | imp <imp@FreeBSD.org> | 2002-02-07 23:57:01 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2002-02-07 23:57:01 +0000 |
commit | c963f1d00273d3cea8a89288017919b46b7374e3 (patch) | |
tree | ec514bcba5b68b3cc1a0c1e6821e5f92d0c6bf2d /libexec/rbootd/utils.c | |
parent | 4289b50433ef09f1bfa03246de59392ffe6bb601 (diff) | |
download | FreeBSD-src-c963f1d00273d3cea8a89288017919b46b7374e3.zip FreeBSD-src-c963f1d00273d3cea8a89288017919b46b7374e3.tar.gz |
o __P removal
o register removal
o use new style prototypes and function definitions
Diffstat (limited to 'libexec/rbootd/utils.c')
-rw-r--r-- | libexec/rbootd/utils.c | 36 |
1 files changed, 12 insertions, 24 deletions
diff --git a/libexec/rbootd/utils.c b/libexec/rbootd/utils.c index 8aec599..c967bc7 100644 --- a/libexec/rbootd/utils.c +++ b/libexec/rbootd/utils.c @@ -79,9 +79,7 @@ static const char rcsid[] = ** None. */ void -DispPkt(rconn, direct) - RMPCONN *rconn; - int direct; +DispPkt(RMPCONN *rconn, int direct) { static const char BootFmt[] = "\t\tRetCode:%u SeqNo:%lx SessID:%x Vers:%u"; static const char ReadFmt[] = "\t\tRetCode:%u Offset:%lx SessID:%x\n"; @@ -208,8 +206,7 @@ DispPkt(rconn, direct) ** be copied if it's to be saved. */ char * -GetEtherAddr(addr) - u_int8_t *addr; +GetEtherAddr(u_int8_t *addr) { static char Hex[] = "0123456789abcdef"; static char etherstr[RMP_ADDRLEN*3]; @@ -249,9 +246,7 @@ GetEtherAddr(addr) ** - Characters are sent to `DbgFp'. */ void -DspFlnm(size, flnm) - u_int size; - char *flnm; +DspFlnm(u_int size, char *flnm) { int i; @@ -276,8 +271,7 @@ DspFlnm(size, flnm) ** - If malloc() fails, a log message will be generated. */ CLIENT * -NewClient(addr) - u_int8_t *addr; +NewClient(u_int8_t *addr) { CLIENT *ctmp; @@ -309,7 +303,7 @@ NewClient(addr) ** - This routine must be called with SIGHUP blocked. */ void -FreeClients() +FreeClients(void) { CLIENT *ctmp; @@ -334,8 +328,7 @@ FreeClients() ** - If malloc() fails, a log message will be generated. */ char * -NewStr(str) - char *str; +NewStr(char *str) { char *stmp; @@ -369,8 +362,7 @@ static RMPCONN *LastFree = NULL; ** - If malloc() fails, a log message will be generated. */ RMPCONN * -NewConn(rconn) - RMPCONN *rconn; +NewConn(RMPCONN *rconn) { RMPCONN *rtmp; @@ -410,8 +402,7 @@ NewConn(rconn) ** - File desc associated with `rtmp->bootfd' will be closed. */ void -FreeConn(rtmp) - RMPCONN *rtmp; +FreeConn(RMPCONN *rtmp) { /* * If the file descriptor is in use, close the file. @@ -445,7 +436,7 @@ FreeConn(rtmp) ** - This routine must be called with SIGHUP blocked. */ void -FreeConns() +FreeConns(void) { RMPCONN *rtmp; @@ -477,8 +468,7 @@ FreeConns() ** - This routine must be called with SIGHUP blocked. */ void -AddConn(rconn) - RMPCONN *rconn; +AddConn(RMPCONN *rconn) { if (RmpConns != NULL) rconn->next = RmpConns; @@ -505,8 +495,7 @@ AddConn(rconn) ** - This routine must be called with SIGHUP blocked. */ RMPCONN * -FindConn(rconn) - RMPCONN *rconn; +FindConn(RMPCONN *rconn) { RMPCONN *rtmp; @@ -535,8 +524,7 @@ FindConn(rconn) ** - This routine must be called with SIGHUP blocked. */ void -RemoveConn(rconn) - RMPCONN *rconn; +RemoveConn(RMPCONN *rconn) { RMPCONN *thisrconn, *lastrconn; |