diff options
author | obrien <obrien@FreeBSD.org> | 2002-03-21 18:49:23 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-03-21 18:49:23 +0000 |
commit | 1196344bb37334ed0f8808056a53ca058758843c (patch) | |
tree | 12b252b7426e8a8904ef257bea10fea6038142f4 /lib/libc/rpc | |
parent | 8ee1755c8ef3729bb2d3c4bfae2b85b786fdaf70 (diff) | |
download | FreeBSD-src-1196344bb37334ed0f8808056a53ca058758843c.zip FreeBSD-src-1196344bb37334ed0f8808056a53ca058758843c.tar.gz |
Remove 'register' keyword.
Diffstat (limited to 'lib/libc/rpc')
-rw-r--r-- | lib/libc/rpc/auth_des.c | 4 | ||||
-rw-r--r-- | lib/libc/rpc/authdes_prot.c | 4 | ||||
-rw-r--r-- | lib/libc/rpc/des_crypt.c | 18 | ||||
-rw-r--r-- | lib/libc/rpc/key_call.c | 2 | ||||
-rw-r--r-- | lib/libc/rpc/netnamer.c | 6 | ||||
-rw-r--r-- | lib/libc/rpc/rpc_soc.c | 4 | ||||
-rw-r--r-- | lib/libc/rpc/svc_auth_des.c | 32 |
7 files changed, 35 insertions, 35 deletions
diff --git a/lib/libc/rpc/auth_des.c b/lib/libc/rpc/auth_des.c index 6a7da3a..c771f31 100644 --- a/lib/libc/rpc/auth_des.c +++ b/lib/libc/rpc/auth_des.c @@ -278,7 +278,7 @@ authdes_marshal(AUTH *auth, XDR *xdrs) des_block ivec; int status; int len; - register rpc_inline_t *ixdr; + rpc_inline_t *ixdr; /* * Figure out the "time", accounting for any time difference @@ -366,7 +366,7 @@ authdes_validate(AUTH *auth, struct opaque_auth *rverf) struct ad_private *ad = AUTH_PRIVATE(auth); struct authdes_verf verf; int status; - register uint32_t *ixdr; + uint32_t *ixdr; des_block buf; if (rverf->oa_length != (2 + 1) * BYTES_PER_XDR_UNIT) { diff --git a/lib/libc/rpc/authdes_prot.c b/lib/libc/rpc/authdes_prot.c index f60e79f..49d06f0 100644 --- a/lib/libc/rpc/authdes_prot.c +++ b/lib/libc/rpc/authdes_prot.c @@ -77,8 +77,8 @@ xdr_authdes_cred(xdrs, cred) bool_t xdr_authdes_verf(xdrs, verf) - register XDR *xdrs; - register struct authdes_verf *verf; + XDR *xdrs; + struct authdes_verf *verf; { /* * Unrolled xdr diff --git a/lib/libc/rpc/des_crypt.c b/lib/libc/rpc/des_crypt.c index 7c68267..d7012e7 100644 --- a/lib/libc/rpc/des_crypt.c +++ b/lib/libc/rpc/des_crypt.c @@ -40,15 +40,15 @@ static const char rcsid[] = "$FreeBSD$"; #endif -static int common_crypt __P(( char *, char *, register unsigned, unsigned, struct desparams * )); +static int common_crypt __P(( char *, char *, unsigned, unsigned, struct desparams * )); int (*__des_crypt_LOCAL)() = 0; extern int _des_crypt_call __P((char *, int, struct desparams *)); /* * Copy 8 bytes */ #define COPY8(src, dst) { \ - register char *a = (char *) dst; \ - register char *b = (char *) src; \ + char *a = (char *) dst; \ + char *b = (char *) src; \ *a++ = *b++; *a++ = *b++; *a++ = *b++; *a++ = *b++; \ *a++ = *b++; *a++ = *b++; *a++ = *b++; *a++ = *b++; \ } @@ -57,9 +57,9 @@ extern int _des_crypt_call __P((char *, int, struct desparams *)); * Copy multiple of 8 bytes */ #define DESCOPY(src, dst, len) { \ - register char *a = (char *) dst; \ - register char *b = (char *) src; \ - register int i; \ + char *a = (char *) dst; \ + char *b = (char *) src; \ + int i; \ for (i = (int) len; i > 0; i -= 8) { \ *a++ = *b++; *a++ = *b++; *a++ = *b++; *a++ = *b++; \ *a++ = *b++; *a++ = *b++; *a++ = *b++; *a++ = *b++; \ @@ -123,11 +123,11 @@ static int common_crypt(key, buf, len, mode, desp) char *key; char *buf; - register unsigned len; + unsigned len; unsigned mode; - register struct desparams *desp; + struct desparams *desp; { - register int desdev; + int desdev; if ((len % 8) != 0 || len > DES_MAXDATA) { return(DESERR_BADPARAM); diff --git a/lib/libc/rpc/key_call.c b/lib/libc/rpc/key_call.c index 00df403..642d6fd 100644 --- a/lib/libc/rpc/key_call.c +++ b/lib/libc/rpc/key_call.c @@ -284,7 +284,7 @@ static struct key_call_private *key_call_private_main = NULL; static void key_call_destroy(void *vp) { - register struct key_call_private *kcp = (struct key_call_private *)vp; + struct key_call_private *kcp = (struct key_call_private *)vp; if (kcp) { if (kcp->client) diff --git a/lib/libc/rpc/netnamer.c b/lib/libc/rpc/netnamer.c index 6384f83..5816441 100644 --- a/lib/libc/rpc/netnamer.c +++ b/lib/libc/rpc/netnamer.c @@ -157,9 +157,9 @@ _getgroups(uname, groups) gid_t groups[NGROUPS]; { gid_t ngroups = 0; - register struct group *grp; - register int i; - register int j; + struct group *grp; + int i; + int j; int filter; setgrent(); diff --git a/lib/libc/rpc/rpc_soc.c b/lib/libc/rpc/rpc_soc.c index e049656..35fd983 100644 --- a/lib/libc/rpc/rpc_soc.c +++ b/lib/libc/rpc/rpc_soc.c @@ -458,7 +458,7 @@ clntunix_create(raddr, prog, vers, sockp, sendsz, recvsz) struct sockaddr_un *raddr; u_long prog; u_long vers; - register int *sockp; + int *sockp; u_int sendsz; u_int recvsz; { @@ -508,7 +508,7 @@ done: */ SVCXPRT * svcunix_create(sock, sendsize, recvsize, path) - register int sock; + int sock; u_int sendsize; u_int recvsize; char *path; diff --git a/lib/libc/rpc/svc_auth_des.c b/lib/libc/rpc/svc_auth_des.c index 52f4499..6cbc931 100644 --- a/lib/libc/rpc/svc_auth_des.c +++ b/lib/libc/rpc/svc_auth_des.c @@ -110,16 +110,16 @@ static struct { */ enum auth_stat _svcauth_des(rqst, msg) - register struct svc_req *rqst; - register struct rpc_msg *msg; + struct svc_req *rqst; + struct rpc_msg *msg; { - register long *ixdr; + long *ixdr; des_block cryptbuf[2]; - register struct authdes_cred *cred; + struct authdes_cred *cred; struct authdes_verf verf; int status; - register struct cache_entry *entry; + struct cache_entry *entry; short sid = 0; des_block *sessionkey; des_block ivec; @@ -357,7 +357,7 @@ _svcauth_des(rqst, msg) static void cache_init() { - register int i; + int i; authdes_cache = (struct cache_entry *) mem_alloc(sizeof(struct cache_entry) * AUTHDES_CACHESZ); @@ -388,11 +388,11 @@ cache_victim() */ static void cache_ref(sid) - register short sid; + short sid; { - register int i; - register short curr; - register short prev; + int i; + short curr; + short prev; prev = authdes_lru[0]; authdes_lru[0] = sid; @@ -411,13 +411,13 @@ cache_ref(sid) */ static short cache_spot(key, name, timestamp) - register des_block *key; + des_block *key; char *name; struct timeval *timestamp; { - register struct cache_entry *cp; - register int i; - register u_long hi; + struct cache_entry *cp; + int i; + u_long hi; hi = key->key.high; for (cp = authdes_cache, i = 0; i < AUTHDES_CACHESZ; i++, cp++) { @@ -466,10 +466,10 @@ authdes_getucred(adc, uid, gid, grouplen, groups) uid_t *uid; gid_t *gid; int *grouplen; - register gid_t *groups; + gid_t *groups; { unsigned sid; - register int i; + int i; uid_t i_uid; gid_t i_gid; int i_grouplen; |