diff options
author | phk <phk@FreeBSD.org> | 2003-10-21 07:58:52 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-10-21 07:58:52 +0000 |
commit | b8f582b8866ce448d694ad70af2a6e211f2b9ae0 (patch) | |
tree | 5f935873390162a867996d6508974f85705ff87b /usr.sbin/mtree/compare.c | |
parent | 0564a958942e2fb650d296c83dd446826edcdd1d (diff) | |
download | FreeBSD-src-b8f582b8866ce448d694ad70af2a6e211f2b9ae0.zip FreeBSD-src-b8f582b8866ce448d694ad70af2a6e211f2b9ae0.tar.gz |
Remove "register" keywords.
Use newspeak functions definitions.
Diffstat (limited to 'usr.sbin/mtree/compare.c')
-rw-r--r-- | usr.sbin/mtree/compare.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/usr.sbin/mtree/compare.c b/usr.sbin/mtree/compare.c index 1732d13..9008e1d 100644 --- a/usr.sbin/mtree/compare.c +++ b/usr.sbin/mtree/compare.c @@ -74,10 +74,7 @@ static const char *ftype(u_int); } int -compare(name, s, p) - char *name __unused; - register NODE *s; - register FTSENT *p; +compare(char *name __unused, NODE *s, FTSENT *p) { uint32_t val; int fd, label; @@ -307,8 +304,7 @@ typeerr: LABEL; } const char * -inotype(type) - u_int type; +inotype(u_int type) { switch(type & S_IFMT) { case S_IFBLK: @@ -332,8 +328,7 @@ inotype(type) } static const char * -ftype(type) - u_int type; +ftype(u_int type) { switch(type) { case F_BLOCK: @@ -357,11 +352,10 @@ ftype(type) } char * -rlink(name) - char *name; +rlink(char *name) { static char lbuf[MAXPATHLEN]; - register int len; + int len; if ((len = readlink(name, lbuf, sizeof(lbuf) - 1)) == -1) err(1, "line %d: %s", lineno, name); |