summaryrefslogtreecommitdiffstats
path: root/lib/libstand/nfs.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-03-21 23:39:28 +0000
committerobrien <obrien@FreeBSD.org>2002-03-21 23:39:28 +0000
commit084b4588f24346b3d369eaf49193461c380e8521 (patch)
tree1cbfa8bb28a9bf0d0b93ca61ac5323ef95e4c7f7 /lib/libstand/nfs.c
parent454845084c112df969ca14adced4fd6c1d7305b6 (diff)
downloadFreeBSD-src-084b4588f24346b3d369eaf49193461c380e8521.zip
FreeBSD-src-084b4588f24346b3d369eaf49193461c380e8521.tar.gz
Remove 'register' keyword.
Diffstat (limited to 'lib/libstand/nfs.c')
-rw-r--r--lib/libstand/nfs.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/libstand/nfs.c b/lib/libstand/nfs.c
index 1fc62b7..1b9e8d2 100644
--- a/lib/libstand/nfs.c
+++ b/lib/libstand/nfs.c
@@ -148,11 +148,11 @@ struct fs_ops nfs_fsops = {
*/
int
nfs_getrootfh(d, path, fhp)
- register struct iodesc *d;
+ struct iodesc *d;
char *path;
u_char *fhp;
{
- register int len;
+ int len;
struct args {
n_long len;
char path[FNAME_SIZE];
@@ -211,7 +211,7 @@ nfs_lookupfh(d, name, newfd)
const char *name;
struct nfs_iodesc *newfd;
{
- register int len, rlen;
+ int len, rlen;
struct args {
u_char fh[NFS_FHSIZE];
n_long len;
@@ -390,8 +390,8 @@ nfs_open(upath, f)
#ifndef NFS_NOSYMLINK
struct nfs_iodesc *newfd;
struct nfsv2_fattrs *fa;
- register char *cp, *ncp;
- register int c;
+ char *cp, *ncp;
+ int c;
char namebuf[NFS_MAXPATHLEN + 1];
char linkbuf[NFS_MAXPATHLEN + 1];
int nlinks = 0;
@@ -459,7 +459,7 @@ nfs_open(upath, f)
* Get next component of path name.
*/
{
- register int len = 0;
+ int len = 0;
ncp = cp;
while ((c = *cp) != '\0' && c != '/') {
@@ -560,7 +560,7 @@ int
nfs_close(f)
struct open_file *f;
{
- register struct nfs_iodesc *fp = (struct nfs_iodesc *)f->f_fsdata;
+ struct nfs_iodesc *fp = (struct nfs_iodesc *)f->f_fsdata;
#ifdef NFS_DEBUG
if (debug)
@@ -584,9 +584,9 @@ nfs_read(f, buf, size, resid)
size_t size;
size_t *resid; /* out */
{
- register struct nfs_iodesc *fp = (struct nfs_iodesc *)f->f_fsdata;
- register ssize_t cc;
- register char *addr = buf;
+ struct nfs_iodesc *fp = (struct nfs_iodesc *)f->f_fsdata;
+ ssize_t cc;
+ char *addr = buf;
#ifdef NFS_DEBUG
if (debug)
@@ -641,7 +641,7 @@ nfs_seek(f, offset, where)
off_t offset;
int where;
{
- register struct nfs_iodesc *d = (struct nfs_iodesc *)f->f_fsdata;
+ struct nfs_iodesc *d = (struct nfs_iodesc *)f->f_fsdata;
n_long size = ntohl(d->fa.fa_size);
switch (where) {
@@ -671,7 +671,7 @@ nfs_stat(f, sb)
struct stat *sb;
{
struct nfs_iodesc *fp = (struct nfs_iodesc *)f->f_fsdata;
- register n_long ftype, mode;
+ n_long ftype, mode;
ftype = ntohl(fp->fa.fa_type);
mode = ntohl(fp->fa.fa_mode);
@@ -689,7 +689,7 @@ nfs_stat(f, sb)
static int
nfs_readdir(struct open_file *f, struct dirent *d)
{
- register struct nfs_iodesc *fp = (struct nfs_iodesc *)f->f_fsdata;
+ struct nfs_iodesc *fp = (struct nfs_iodesc *)f->f_fsdata;
struct nfs_readdir_args *args;
struct nfs_readdir_data *rd;
struct nfs_readdir_off *roff = NULL;
OpenPOWER on IntegriCloud