diff options
author | steve <steve@FreeBSD.org> | 1997-06-29 19:50:26 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1997-06-29 19:50:26 +0000 |
commit | c08c53d77406e9025bae15bb0da72f757f38073b (patch) | |
tree | c3a91194a8e6990997d715644d67ac180cabc8fc /libexec/rbootd/parseconf.c | |
parent | 0d992ff3138ae20de7a6f94dd7a46d15618900ad (diff) | |
download | FreeBSD-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/parseconf.c')
-rw-r--r-- | libexec/rbootd/parseconf.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libexec/rbootd/parseconf.c b/libexec/rbootd/parseconf.c index 93c9411..4950e4f 100644 --- a/libexec/rbootd/parseconf.c +++ b/libexec/rbootd/parseconf.c @@ -39,7 +39,7 @@ * SUCH DAMAGE. * * from: @(#)parseconf.c 8.1 (Berkeley) 6/4/93 - * $Id: parseconf.c,v 1.5 1997/02/22 14:21:57 peter Exp $ + * $Id: parseconf.c,v 1.6 1997/06/29 19:00:08 steve Exp $ * * From: Utah Hdr: parseconf.c 3.1 92/07/06 * Author: Jeff Forys, University of Utah CSS @@ -85,8 +85,8 @@ ParseConfig() CLIENT *client; u_int8_t *addr; char line[C_LINELEN]; - register char *cp, *bcp; - register int i, j; + char *cp, *bcp; + int i, j; int omask, linecnt = 0; if (BootAny) /* ignore config file */ @@ -128,7 +128,7 @@ ParseConfig() if (*line == '\0' || *line == '#') /* ignore comment */ continue; - if ((cp = index(line,'#')) != NULL) /* trash comments */ + if ((cp = strchr(line,'#')) != NULL) /* trash comments */ *cp = '\0'; cp = line; /* init `cp' */ @@ -248,11 +248,11 @@ ParseAddr(str) char *str; { static u_int8_t addr[RMP_ADDRLEN]; - register char *cp; - register unsigned i; - register int part, subpart; + char *cp; + unsigned i; + int part, subpart; - bzero((char *)&addr[0], RMP_ADDRLEN); /* zero static buffer */ + memset((char *)&addr[0], 0, RMP_ADDRLEN); /* zero static buffer */ part = subpart = 0; for (cp = str; *cp; cp++) { @@ -312,8 +312,8 @@ GetBootFiles() { DIR *dfd; struct stat statb; - register struct dirent *dp; - register int i; + struct dirent *dp; + int i; /* * Free the current list of boot files. |