summaryrefslogtreecommitdiffstats
path: root/libexec/rbootd/rmpproto.c
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1997-06-29 19:50:26 +0000
committersteve <steve@FreeBSD.org>1997-06-29 19:50:26 +0000
commitc08c53d77406e9025bae15bb0da72f757f38073b (patch)
treec3a91194a8e6990997d715644d67ac180cabc8fc /libexec/rbootd/rmpproto.c
parent0d992ff3138ae20de7a6f94dd7a46d15618900ad (diff)
downloadFreeBSD-src-c08c53d77406e9025bae15bb0da72f757f38073b.zip
FreeBSD-src-c08c53d77406e9025bae15bb0da72f757f38073b.tar.gz
Zap register keyword usage and convert: bcopy -> memmove, bzero -> memset,
index -> strchr, and rindex -> strrchr.
Diffstat (limited to 'libexec/rbootd/rmpproto.c')
-rw-r--r--libexec/rbootd/rmpproto.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/libexec/rbootd/rmpproto.c b/libexec/rbootd/rmpproto.c
index 9120718..31102e8 100644
--- a/libexec/rbootd/rmpproto.c
+++ b/libexec/rbootd/rmpproto.c
@@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* from: @(#)rmpproto.c 8.1 (Berkeley) 6/4/93
- * $Id$
+ * $Id: rmpproto.c,v 1.2 1997/06/29 19:00:24 steve Exp $
*
* From: Utah Hdr: rmpproto.c 3.1 92/07/06
* Author: Jeff Forys, University of Utah CSS
@@ -176,9 +176,9 @@ int
SendServerID(rconn)
RMPCONN *rconn;
{
- register struct rmp_packet *rpl;
- register char *src, *dst;
- register u_int8_t *size;
+ struct rmp_packet *rpl;
+ char *src, *dst;
+ u_int8_t *size;
rpl = &rconn->rmp; /* cache ptr to RMP packet */
@@ -230,10 +230,10 @@ SendFileNo(req, rconn, filelist)
RMPCONN *rconn;
char *filelist[];
{
- register struct rmp_packet *rpl;
- register char *src, *dst;
- register u_int8_t *size;
- register int i;
+ struct rmp_packet *rpl;
+ char *src, *dst;
+ u_int8_t *size;
+ int i;
GETWORD(req->r_brpl.rmp_seqno, i); /* SeqNo is really FileNo */
rpl = &rconn->rmp; /* cache ptr to RMP packet */
@@ -296,9 +296,9 @@ SendBootRepl(req, rconn, filelist)
int retval;
char *filename, filepath[RMPBOOTDATA+1];
RMPCONN *oldconn;
- register struct rmp_packet *rpl;
- register char *src, *dst1, *dst2;
- register u_int8_t i;
+ struct rmp_packet *rpl;
+ char *src, *dst1, *dst2;
+ u_int8_t i;
/*
* If another connection already exists, delete it since we
@@ -339,7 +339,7 @@ SendBootRepl(req, rconn, filelist)
* stripped file name and spoof the client into thinking that it
* really got what it wanted.
*/
- filename = (filename = rindex(filepath,'/'))? ++filename: filepath;
+ filename = (filename = strrchr(filepath,'/'))? ++filename: filepath;
/*
* Check that this is a valid boot file name.
@@ -402,8 +402,8 @@ SendReadRepl(rconn)
{
int retval = 0;
RMPCONN *oldconn;
- register struct rmp_packet *rpl, *req;
- register int size = 0;
+ struct rmp_packet *rpl, *req;
+ int size = 0;
int madeconn = 0;
/*
@@ -564,14 +564,14 @@ BootDone(rconn)
*/
int
SendPacket(rconn)
- register RMPCONN *rconn;
+ RMPCONN *rconn;
{
/*
* Set Ethernet Destination address to Source (BPF and the enet
* driver will take care of getting our source address set).
*/
- bcopy((char *)&rconn->rmp.hp_hdr.saddr[0],
- (char *)&rconn->rmp.hp_hdr.daddr[0], RMP_ADDRLEN);
+ memmove((char *)&rconn->rmp.hp_hdr.daddr[0],
+ (char *)&rconn->rmp.hp_hdr.saddr[0], RMP_ADDRLEN);
#ifdef __FreeBSD__
/* BPF (incorrectly) wants this in host order. */
rconn->rmp.hp_hdr.len = rconn->rmplen - sizeof(struct hp_hdr);
OpenPOWER on IntegriCloud