]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
death to register
authorMarcus Watts <mdw@umich.edu>
Thu, 15 Jul 2010 03:13:20 +0000 (23:13 -0400)
committerDerrick Brashear <shadow@dementia.org>
Tue, 17 Aug 2010 04:32:01 +0000 (21:32 -0700)
in soviet compilers, compiler optimizes you.
stop providing dated (and annoying for debugging) register keywords.

Change-Id: Ibcac0aa3f353fe531b9be0beedca919fb947bfab
Reviewed-on: http://gerrit.openafs.org/2436
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
380 files changed:
src/afs/AIX/osi_config.c
src/afs/AIX/osi_file.c
src/afs/AIX/osi_inode.c
src/afs/AIX/osi_misc.c
src/afs/AIX/osi_timeout.c
src/afs/AIX/osi_vfsops.c
src/afs/DARWIN/osi_file.c
src/afs/DARWIN/osi_inode.c
src/afs/DARWIN/osi_vfsops.c
src/afs/DARWIN/osi_vnodeops.c
src/afs/FBSD/osi_file.c
src/afs/FBSD/osi_inode.c
src/afs/FBSD/osi_vfsops.c
src/afs/FBSD/osi_vnodeops.c
src/afs/HPUX/osi_file.c
src/afs/HPUX/osi_gcpags.c
src/afs/HPUX/osi_groups.c
src/afs/HPUX/osi_inode.c
src/afs/HPUX/osi_machdep.h
src/afs/HPUX/osi_sleep.c
src/afs/HPUX/osi_vfsops.c
src/afs/HPUX/osi_vnodeops.c
src/afs/IRIX/osi_file.c
src/afs/IRIX/osi_idbg.c
src/afs/IRIX/osi_machdep.h
src/afs/IRIX/osi_vfsops.c
src/afs/IRIX/osi_vnodeops.c
src/afs/LINUX/osi_file.c
src/afs/LINUX/osi_vfsops.c
src/afs/LINUX/osi_vnodeops.c
src/afs/LINUX24/osi_file.c
src/afs/LINUX24/osi_vfsops.c
src/afs/LINUX24/osi_vnodeops.c
src/afs/OBSD/osi_vfsops.c
src/afs/SOLARIS/osi_file.c
src/afs/SOLARIS/osi_inode.c
src/afs/SOLARIS/osi_vfsops.c
src/afs/SOLARIS/osi_vnodeops.c
src/afs/UKERNEL/afs_usrops.c
src/afs/UKERNEL/osi_prototypes.h
src/afs/UKERNEL/osi_vfsops.c
src/afs/VNOPS/afs_vnop_access.c
src/afs/VNOPS/afs_vnop_attrs.c
src/afs/VNOPS/afs_vnop_create.c
src/afs/VNOPS/afs_vnop_dirops.c
src/afs/VNOPS/afs_vnop_fid.c
src/afs/VNOPS/afs_vnop_flock.c
src/afs/VNOPS/afs_vnop_link.c
src/afs/VNOPS/afs_vnop_lookup.c
src/afs/VNOPS/afs_vnop_open.c
src/afs/VNOPS/afs_vnop_read.c
src/afs/VNOPS/afs_vnop_readdir.c
src/afs/VNOPS/afs_vnop_remove.c
src/afs/VNOPS/afs_vnop_rename.c
src/afs/VNOPS/afs_vnop_strategy.c
src/afs/VNOPS/afs_vnop_symlink.c
src/afs/VNOPS/afs_vnop_write.c
src/afs/afs_analyze.c
src/afs/afs_axscache.c
src/afs/afs_buffer.c
src/afs/afs_bypasscache.c
src/afs/afs_bypasscache.h
src/afs/afs_call.c
src/afs/afs_callback.c
src/afs/afs_cbqueue.c
src/afs/afs_chunkops.h
src/afs/afs_conn.c
src/afs/afs_daemons.c
src/afs/afs_dcache.c
src/afs/afs_error.c
src/afs/afs_fetchstore.c
src/afs/afs_icl.c
src/afs/afs_init.c
src/afs/afs_lock.c
src/afs/afs_mariner.c
src/afs/afs_memcache.c
src/afs/afs_nfsclnt.c
src/afs/afs_nfsdisp.c
src/afs/afs_osi.c
src/afs/afs_osi_alloc.c
src/afs/afs_osi_pag.c
src/afs/afs_osi_uio.c
src/afs/afs_osi_vget.c
src/afs/afs_osi_vm.c
src/afs/afs_pag_cred.c
src/afs/afs_pioctl.c
src/afs/afs_prototypes.h
src/afs/afs_segments.c
src/afs/afs_server.c
src/afs/afs_syscall.c
src/afs/afs_user.c
src/afs/afs_util.c
src/afs/afs_vcache.c
src/afs/afs_volume.c
src/afs/discon.h
src/afsweb/apache_afs_cache.c
src/afsweb/apache_afs_client.c
src/afsweb/apache_afs_utils.c
src/aklog/asetkey.c
src/aklog/klog.c
src/auth/authcon.c
src/auth/cellconfig.c
src/auth/cellconfig.p.h
src/auth/copyauth.c
src/auth/ktc.c
src/auth/setkey.c
src/auth/test/testcellconf.c
src/auth/userok.c
src/auth/writeconfig.c
src/bozo/bnode.c
src/bozo/bnode.p.h
src/bozo/bos.c
src/bozo/bos_util.c
src/bozo/bosoprocs.c
src/bozo/bosserver.c
src/bozo/cronbnodeops.c
src/bozo/ezbnodeops.c
src/bozo/fsbnodeops.c
src/bozo/smail-notifier.c
src/bozo/test/testproc.c
src/bucoord/btest.c
src/bucoord/bucoord_internal.h
src/bucoord/bucoord_prototypes.h
src/bucoord/config.c
src/bucoord/dsstub.c
src/bucoord/dsvs.c
src/bucoord/dump.c
src/bucoord/dump_sched.c
src/bucoord/main.c
src/bucoord/tape_hosts.c
src/bucoord/ttest.c
src/bucoord/ubik_db_if.c
src/bucoord/vol_sets.c
src/budb/server.c
src/butc/list.c
src/butc/lwps.c
src/butc/tcmain.c
src/butc/tdump.c
src/butc/test.c
src/cmd/cmd.c
src/cmd/cmd.p.h
src/cmd/test/ctest.c
src/cmd/test/dtest.c
src/cmd/test/itest.c
src/comerr/error_table.y
src/comerr/error_table_nt.c
src/comerr/et_lex.lex.l
src/comerr/et_lex.lex_nt.c
src/config/config.c
src/config/mc.c
src/des/cbc_encrypt.c
src/des/cksum.c
src/des/crypt.c
src/des/des.c
src/des/des_prototypes.h
src/des/enc.c
src/des/key_parity.c
src/des/key_sched.c
src/des/make_e.c
src/des/make_fp.c
src/des/make_ip.c
src/des/make_keyperm.c
src/des/make_odd.c
src/des/make_p_table.c
src/des/make_s_table.c
src/des/misc.c
src/des/new_rnd_key.c
src/des/pcbc_encrypt.c
src/des/quad_cksum.c
src/des/read_pssword.c
src/des/strng_to_key.c
src/des/test/testit.c
src/des/test/verify.c
src/des/util.c
src/dir/buffer.c
src/dir/dir.c
src/dir/dir.h
src/dir/salvage.c
src/dir/test/dtest.c
src/dir/test/physio.c
src/export/cfgafs.c
src/export/cfgexport.c
src/export/export.c
src/export/symtab.c
src/fsint/afsaux.c
src/fsprobe/fsprobe.c
src/fsprobe/fsprobe_test.c
src/gtx/cb_test.c
src/gtx/frame.c
src/gtx/gtxtest.c
src/gtx/input.c
src/gtx/keymap.c
src/gtx/object_test.c
src/gtx/objects.c
src/gtx/screen_test.c
src/gtx/textobject.c
src/gtx/windows.c
src/kauth/admin_tools.c
src/kauth/ka_util.c
src/kauth/kadatabase.c
src/kauth/kaprocs.c
src/kauth/kautils.c
src/kauth/kautils.p.h
src/kauth/kdb.c
src/kauth/kkids.c
src/kauth/klog.c
src/kauth/klogin.c
src/kauth/knfs.c
src/kauth/kpasswd.c
src/kauth/manyklog.c
src/kauth/read_passwd.c
src/kauth/test/multiklog.c
src/kauth/test/test_getticket.c
src/kauth/test/test_interim_ktc.c
src/kauth/test/test_rxkad_free.c
src/libacl/aclprocs.c
src/libacl/test/acltest.c
src/libadmin/client/afs_clientAdmin.c
src/libadmin/test/bos.c
src/libadmin/test/vos.c
src/libadmin/vos/afs_vosAdmin.c
src/libadmin/vos/vosutils.c
src/libadmin/vos/vsprocs.c
src/log/kseal.c
src/log/unlog.c
src/lwp/fasttime.c
src/lwp/iomgr.c
src/lwp/lock.c
src/lwp/lwp.c
src/lwp/lwp.h
src/lwp/lwp_nt.c
src/lwp/rw.c
src/lwp/test/test.c
src/lwp/test/testlwp.c
src/lwp/timer.c
src/lwp/timer.h
src/pam/afs_util.c
src/pam/afs_util.h
src/platform/SOLARIS/fs_conv_sol26.c
src/ptserver/db_verify.c
src/ptserver/pt_util.c
src/ptserver/ptclient.c
src/ptserver/ptprocs.c
src/ptserver/ptprototypes.h
src/ptserver/pts.c
src/ptserver/ptserver.c
src/ptserver/ptuser.c
src/ptserver/ptutils.c
src/ptserver/readgroup.c
src/ptserver/readpwd.c
src/ptserver/testpt.c
src/ptserver/ubik.c
src/ptserver/utils.c
src/rx/DARWIN/rx_knet.c
src/rx/FBSD/rx_knet.c
src/rx/HPUX/rx_knet.c
src/rx/IRIX/rx_knet.c
src/rx/SOLARIS/rx_knet.c
src/rx/bulk.example/bulk_io.c
src/rx/bulktest/bulk_io.c
src/rx/multi.example/sample_client.c
src/rx/rx.c
src/rx/rx_rdwr.c
src/rx/test/kctest.c
src/rx/test/kstest.c
src/rx/xdr_rx.c
src/rxdebug/rxdebug.c
src/rxgen/rpc_hout.c
src/rxgen/rpc_parse.c
src/rxkad/rxkad_common.c
src/rxkad/test/stress_c.c
src/rxkad/ticket5.c
src/scout/scout.c
src/sgistuff/herror.c
src/sgistuff/rcmd.c
src/sys/rmtsysc.c
src/sys/rmtsysnet.c
src/sys/rmtsyss.c
src/tests/dumptool.c
src/tsalvaged/salvsync-debug.c
src/ubik/beacon.c
src/ubik/phys.c
src/ubik/recovery.c
src/ubik/remote.c
src/ubik/ubik.c
src/ubik/ubik.p.h
src/ubik/ubikclient.c
src/ubik/ubikcmd.c
src/ubik/udebug.c
src/ubik/utst_client.c
src/ubik/utst_server.c
src/ubik/vote.c
src/update/client.c
src/update/server.c
src/update/utils.c
src/uss/uss.c
src/uss/uss_acl.c
src/uss/uss_common.c
src/uss/uss_fs.c
src/uss/uss_kauth.c
src/uss/uss_procs.c
src/uss/uss_ptserver.c
src/uss/uss_vol.c
src/util/afsutil_prototypes.h
src/util/hostparse.c
src/util/ktime.c
src/util/regex.c
src/util/remote.h
src/util/strlcat.c
src/util/strlcpy.c
src/util/volparse.c
src/venus/cacheout.c
src/venus/cmdebug.c
src/venus/dedebug.c
src/venus/fstrace.c
src/venus/kdump.c
src/venus/test/owntest.c
src/venus/twiddle.c
src/venus/whatfid.c
src/vfsck/dir.c
src/vfsck/inode.c
src/vfsck/main.c
src/vfsck/pass1.c
src/vfsck/pass1b.c
src/vfsck/pass2.c
src/vfsck/pass3.c
src/vfsck/pass4.c
src/vfsck/pass5.c
src/vfsck/setup.c
src/vfsck/ufs_subr.c
src/vfsck/utilities.c
src/viced/afsfileprocs.c
src/viced/callback.c
src/viced/fsprobe.c
src/viced/host.c
src/viced/host.h
src/viced/physio.c
src/viced/viced.c
src/vlserver/cnvldb.c
src/vlserver/sascnvldb.c
src/vlserver/vlclient.c
src/vlserver/vlprocs.c
src/vlserver/vlserver.c
src/vlserver/vlserver_internal.h
src/vlserver/vlutils.c
src/vol/clone.c
src/vol/fssync-debug.c
src/vol/fssync-server.c
src/vol/listinodes.c
src/vol/nuke.c
src/vol/partition.c
src/vol/partition.h
src/vol/purge.c
src/vol/salvaged.c
src/vol/salvager.c
src/vol/salvsync-server.c
src/vol/test/listVicepx.c
src/vol/vnode.c
src/vol/vnode.h
src/vol/vol-bless.c
src/vol/vol-info.c
src/vol/vol-salvage.c
src/vol/vol-salvage.h
src/vol/vol_prototypes.h
src/vol/volume.c
src/vol/volume.h
src/vol/vutil.c
src/volser/dumpstuff.c
src/volser/vol-dump.c
src/volser/volmain.c
src/volser/volprocs.c
src/volser/volser_prototypes.h
src/volser/voltrans.c
src/volser/vos.c
src/volser/vsprocs.c
src/volser/vsutils.c
src/xstat/xstat_cm.c
src/xstat/xstat_cm_test.c
src/xstat/xstat_fs.c
src/xstat/xstat_fs_test.c

index 7c42a586c94696c1d9cda5a05c03d693c2978945..6cd306d1dfefc6d9ce92828269847a5aece6acf0 100644 (file)
@@ -211,14 +211,14 @@ kmem_free(p, size)
 }
 
 VN_RELE(vp)
-     register struct vnode *vp;
+     struct vnode *vp;
 {
 
     VNOP_RELE(vp);
 }
 
 VN_HOLD(vp)
-     register struct vnode *vp;
+     struct vnode *vp;
 {
 
     VNOP_HOLD(vp);
@@ -293,14 +293,14 @@ struct k_var kvars[] = {
  */
 kluge_init()
 {
-    register struct k_func *kf;
-    register struct k_var *kv;
+    struct k_func *kf;
+    struct k_var *kv;
 #ifdef __64BIT__
-    register afs_uint64 toc;
+    afs_uint64 toc;
 #else
-    register afs_uint32 toc;
+    afs_uint32 toc;
 #endif
-    register err = 0;
+    int err = 0;
 
     toc = get_toc();
     for (kf = kfuncs; !err && kf->name; ++kf) {
index 410843b9e1117696e256e107ff75525decfbd634..37df3302bb96debb1e7cd4d3891e34c3dcab54fb 100644 (file)
@@ -27,7 +27,7 @@ void *
 osi_UFSOpen(afs_dcache_id_t *ainode)
 {
     struct inode *ip;
-    register struct osi_file *afile = NULL;
+    struct osi_file *afile = NULL;
     struct vnode *vp = NULL;
     extern int cacheDiskType;
     afs_int32 code = 0;
@@ -60,9 +60,9 @@ osi_UFSOpen(afs_dcache_id_t *ainode)
 }
 
 int
-afs_osi_Stat(register struct osi_file *afile, register struct osi_stat *astat)
+afs_osi_Stat(struct osi_file *afile, struct osi_stat *astat)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct vattr tvattr;
     AFS_STATCNT(osi_Stat);
     ObtainWriteLock(&afs_xosi, 320);
@@ -79,7 +79,7 @@ afs_osi_Stat(register struct osi_file *afile, register struct osi_stat *astat)
 }
 
 int
-osi_UFSClose(register struct osi_file *afile)
+osi_UFSClose(struct osi_file *afile)
 {
     AFS_STATCNT(osi_Close);
     if (afile->vnode) {
@@ -105,11 +105,11 @@ osi_UFSClose(register struct osi_file *afile)
 }
 
 int
-osi_UFSTruncate(register struct osi_file *afile, afs_int32 asize)
+osi_UFSTruncate(struct osi_file *afile, afs_int32 asize)
 {
     afs_ucred_t *oldCred;
     struct vattr tvattr;
-    register afs_int32 code;
+    afs_int32 code;
     struct osi_stat tstat;
     afs_int32 mode = FWRITE | FSYNC;
     AFS_STATCNT(osi_Truncate);
@@ -147,13 +147,13 @@ osi_DisableAtimes(struct vnode *avp)
 
 /* Generic read interface */
 int
-afs_osi_Read(register struct osi_file *afile, int offset, void *aptr,
+afs_osi_Read(struct osi_file *afile, int offset, void *aptr,
             afs_int32 asize)
 {
     afs_ucred_t *oldCred;
     unsigned int resid;
-    register afs_int32 code;
-    register afs_int32 cnt1 = 0;
+    afs_int32 code;
+    afs_int32 cnt1 = 0;
     AFS_STATCNT(osi_Read);
 
     /**
@@ -205,12 +205,12 @@ afs_osi_Read(register struct osi_file *afile, int offset, void *aptr,
 
 /* Generic write interface */
 int
-afs_osi_Write(register struct osi_file *afile, afs_int32 offset, void *aptr,
+afs_osi_Write(struct osi_file *afile, afs_int32 offset, void *aptr,
              afs_int32 asize)
 {
     afs_ucred_t *oldCred;
     unsigned int resid;
-    register afs_int32 code;
+    afs_int32 code;
     AFS_STATCNT(osi_Write);
     if (!afile)
        osi_Panic("afs_osi_Write called with null param");
@@ -254,7 +254,7 @@ afs_osi_Write(register struct osi_file *afile, afs_int32 offset, void *aptr,
     This routine written from the RT NFS port strategy routine.
     It has been generalized a bit, but should still be pretty clear. */
 int
-afs_osi_MapStrategy(int (*aproc) (), register struct buf *bp)
+afs_osi_MapStrategy(int (*aproc) (), struct buf *bp)
 {
     afs_int32 returnCode;
 
index a9215d3b7b3ee411990cea6110d301adfabe89b6..fd1421b8751c7265385ef5790dbab2d0f4a6a764 100644 (file)
@@ -165,7 +165,7 @@ igetinode(dev, vfsp, inode, vpp, perror)
      int *perror;
 {
     struct inode *ip;
-    register was_locked;
+    int was_locked;
     struct vfs *nvfsp = NULL;
     int code;
     *perror = 0;
@@ -257,9 +257,9 @@ igetinode(dev, vfsp, inode, vpp, perror)
 SYSENT(icreate, (dev, near_inode, param1, param2, param3, param4), (long dev, long near_inode, long param1, long param2, long param3, long param4))
 {
     struct inode *ip, *newip, *pip;
-    register int err, rval1, rc = 0;
+    int err, rval1, rc = 0;
     struct vnode *vp = NULL;
-    register struct vfs *vfsp;
+    struct vfs *vfsp;
     struct vfs *nvfsp = NULL;
     char error;
     ino_t ino = near_inode;
@@ -320,10 +320,10 @@ SYSENT(icreate, (dev, near_inode, param1, param2, param3, param4), (long dev, lo
 SYSENT(iopen, (dev, inode, usrmod),(int dev, int inode, int usrmod))
 {
     struct file *fp;
-    register struct inode *ip;
+    struct inode *ip;
     struct vnode *vp = NULL;
     extern struct fileops vnodefops;
-    register struct vfs *vfsp;
+    struct vfs *vfsp;
     int fd;
     char error;
     struct ucred *credp;
@@ -387,7 +387,7 @@ idec(dev, inode, inode_p1)
 
 SYSENT(iincdec, (dev, inode, inode_p1, amount),(int dev, int inode, int inode_p1, int amount))
 {
-    register struct inode *ip;
+    struct inode *ip;
     char error;
     struct vnode *vp = NULL;
     int dummy;
index 9961d02bc702f61830aad2ef3b86c040de4200b6..4994ac1b78633d18529f776de992e9f0519a43b5 100644 (file)
@@ -95,7 +95,7 @@ gop_rdwr(rw, vp, base, len, offset, segflg, unit, aresid)
 {
     struct uio uio_struct;
     struct iovec uiovector;
-    register int code;
+    int code;
 
     AFS_STATCNT(gop_rdwr);
     /* Set up the uio structure */
@@ -137,8 +137,8 @@ gop_rdwr(rw, vp, base, len, offset, segflg, unit, aresid)
 aix_gnode_rele(vp)
      struct vnode *vp;
 {
-    register struct vnode *tvp;
-    register struct vfs *vfsp = vp->v_vfsp;
+    struct vnode *tvp;
+    struct vfs *vfsp = vp->v_vfsp;
 
     /* Unlink the vnode from the list the vfs has hanging of it */
     tvp = vfsp->vfs_vnodes;
@@ -167,7 +167,7 @@ aix_gnode_rele(vp)
 
 afs_suser(void *credp)
 {
-    register rc;
+    int rc;
     char err;
 
     rc = suser(&err);
index 64ef2356b0f92ea71a6fbc82cb4ada57871c203f..27784677b4fe3a19e0e7229092026f829a233ca9 100644 (file)
@@ -58,14 +58,14 @@ extern void tstart(struct trb *);
 extern void i_enable(int);
 
 void
-timeout(register void (*func) (),      /* function to call at timeout */
-       register caddr_t arg,   /*   It's argument. */
-       register int ticks,     /* when to set timeout for */
-       register int type, register char *p1)
+timeout(void (*func) (),       /* function to call at timeout */
+       caddr_t arg,    /*   It's argument. */
+       int ticks,      /* when to set timeout for */
+       int type, char *p1)
 {
-    register int ipri;         /* caller's interrupt priority  */
-    register struct tos *tos;  /* tos to use for timeout       */
-    register struct trb *trb;  /* trb in the tos being used    */
+    int ipri;          /* caller's interrupt priority  */
+    struct tos *tos;   /* tos to use for timeout       */
+    struct trb *trb;   /* trb in the tos being used    */
     struct itimerstruc_t tv;   /* timeout interval             */
 
     tv.it_value.tv_sec = ticks / HZ;
@@ -135,11 +135,11 @@ timeout(register void (*func) (), /* function to call at timeout */
 
 
 void
-untimeout(register void (*func) (), register ulong arg)
+untimeout(void (*func) (), ulong arg)
 {
-    register int ipri;         /* caller's interrupt priority  */
-    register struct tos *tos;  /* tos to walk callout table    */
-    register struct trb *trb;  /* trb for this tos             */
+    int ipri;          /* caller's interrupt priority  */
+    struct tos *tos;   /* tos to walk callout table    */
+    struct trb *trb;   /* trb for this tos             */
 
   untimeout_retry:
 
@@ -173,7 +173,7 @@ untimeout(register void (*func) (), register ulong arg)
 static void
 timeout_end(struct trb *trb)
 {                              /* trb of the current timeout     */
-    register void (*func) ();  /* function to call at timeout  */
+    void (*func) ();   /* function to call at timeout  */
     int ipri;
     ipri = AFS_DISABLE_LOCK(INTMAX, &afs_callout_lock);
 
@@ -189,12 +189,12 @@ timeout_end(struct trb *trb)
 
 
 int
-timeoutcf(register int cocnt)
+timeoutcf(int cocnt)
 {                              /* # entries to change callout table by   */
-    register int ipri;         /* caller's interrupt priority  */
-    register int rv;           /* return value to the caller           */
-    register struct tos *tos;  /* tos to add to/remove from table    */
-    register struct trb *trb;  /* trb in the tos to be added/removed */
+    int ipri;          /* caller's interrupt priority  */
+    int rv;            /* return value to the caller           */
+    struct tos *tos;   /* tos to add to/remove from table    */
+    struct trb *trb;   /* trb in the tos to be added/removed */
 
     rv = 0;
 
index a3dd50f6802011f6e2b250b397531c86ecf72bb8..c24fc6edafe9765902cfb43182e4268399f196ae 100644 (file)
@@ -25,7 +25,7 @@
 extern struct afs_exporter *afs_nfsexporter;
 #endif
 
-#define AFS_VFSLOCK_DECL register int glockOwner = ISAFS_GLOCK()
+#define AFS_VFSLOCK_DECL int glockOwner = ISAFS_GLOCK()
 #define AFS_VFSLOCK()  if (!glockOwner) AFS_GLOCK()
 #define AFS_VFSUNLOCK() if (!glockOwner) AFS_GUNLOCK()
 
@@ -110,9 +110,9 @@ afs_unmount(struct vfs *afsp, int flag)
 static int
 afs_root_nolock(struct vfs *afsp, struct vnode **avpp)
 {
-    register afs_int32 code = 0;
+    afs_int32 code = 0;
     struct vrequest treq;
-    register struct vcache *tvp = 0;
+    struct vcache *tvp = 0;
 
     AFS_STATCNT(afs_root);
     if (afs_globalVp && (afs_globalVp->f.states & CStatd)) {
index ca1976fccd2a93ec309b33dc3123eaff3d7dda5e..ae027d713553637abc1f85af592972011c41ff44 100644 (file)
@@ -135,7 +135,7 @@ osi_UFSOpen(afs_dcache_id_t *ainode)
 {
     struct vnode *vp;
     struct vattr va;
-    register struct osi_file *afile = NULL;
+    struct osi_file *afile = NULL;
     extern int cacheDiskType;
     afs_int32 code = 0;
     int dummy;
@@ -193,9 +193,9 @@ osi_UFSOpen(afs_dcache_id_t *ainode)
 }
 
 int
-afs_osi_Stat(register struct osi_file *afile, register struct osi_stat *astat)
+afs_osi_Stat(struct osi_file *afile, struct osi_stat *astat)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct vattr tvattr;
     AFS_STATCNT(osi_Stat);
     ObtainWriteLock(&afs_xosi, 320);
@@ -223,7 +223,7 @@ afs_osi_Stat(register struct osi_file *afile, register struct osi_stat *astat)
 }
 
 int
-osi_UFSClose(register struct osi_file *afile)
+osi_UFSClose(struct osi_file *afile)
 {
     AFS_STATCNT(osi_Close);
     if (afile->vnode) {
@@ -239,11 +239,11 @@ osi_UFSClose(register struct osi_file *afile)
 }
 
 int
-osi_UFSTruncate(register struct osi_file *afile, afs_int32 asize)
+osi_UFSTruncate(struct osi_file *afile, afs_int32 asize)
 {
     afs_ucred_t *oldCred;
     struct vattr tvattr;
-    register afs_int32 code;
+    afs_int32 code;
     struct osi_stat tstat;
     AFS_STATCNT(osi_Truncate);
 
@@ -300,12 +300,12 @@ osi_DisableAtimes(struct vnode *avp)
 
 /* Generic read interface */
 int
-afs_osi_Read(register struct osi_file *afile, int offset, void *aptr,
+afs_osi_Read(struct osi_file *afile, int offset, void *aptr,
             afs_int32 asize)
 {
     afs_ucred_t *oldCred;
     afs_size_t resid;
-    register afs_int32 code;
+    afs_int32 code;
 #ifdef AFS_DARWIN80_ENV
     uio_t uio;
 #endif
@@ -351,12 +351,12 @@ afs_osi_Read(register struct osi_file *afile, int offset, void *aptr,
 
 /* Generic write interface */
 int
-afs_osi_Write(register struct osi_file *afile, afs_int32 offset, void *aptr,
+afs_osi_Write(struct osi_file *afile, afs_int32 offset, void *aptr,
              afs_int32 asize)
 {
     afs_ucred_t *oldCred;
     afs_size_t resid;
-    register afs_int32 code;
+    afs_int32 code;
 #ifdef AFS_DARWIN80_ENV
     uio_t uio;
 #endif
index 54895c40929f5068e9be564c719c09bedcc30c14..81f9dbfe5741a9eff9e4d3b8574d955b715a44c6 100644 (file)
@@ -63,7 +63,7 @@ igetinode(vfsp, dev, inode, vpp, va, perror)
 {
     vnode_t pvp, vp;
     extern struct osi_dev cacheDev;
-    register int code = 0;
+    int code = 0;
     
     *perror = 0;
     
@@ -116,12 +116,12 @@ getinode(fs, dev, inode, vpp, perror)
     *vpp = 0;
     *perror = 0;
     if (!fs) {
-       register struct ufsmount *ump;
+       struct ufsmount *ump;
 #ifdef VFSTOHFS
-       register struct hfsmount *hmp;
+       struct hfsmount *hmp;
 #endif
-       register struct vnode *vp;
-       register struct mount *mp;
+       struct vnode *vp;
+       struct mount *mp;
        extern struct mount *rootfs;
        if (mp = rootfs)
            do {
@@ -174,7 +174,7 @@ igetinode(vfsp, dev, inode, vpp, va, perror)
 {
     struct vnode *pvp, *vp;
     extern struct osi_dev cacheDev;
-    register int code = 0;
+    int code = 0;
 
     *perror = 0;
 
index aa5af700d0df011e1d62f1ad7374448df7deb107..84dd3cad8b2fc90c4207bffb78c0d8225fc8fe3b 100644 (file)
@@ -221,7 +221,7 @@ afs_root(struct mount *mp, struct vnode **vpp)
     void *mdata = vfs_fsprivate(mp);
     int error;
     struct vrequest treq;
-    register struct vcache *tvp = 0;
+    struct vcache *tvp = 0;
 #ifdef AFS_DARWIN80_ENV
     struct ucred *cr = vfs_context_ucred(ctx);
     int needref=0;
index fb9627b02354f3e3e389fb3dfebd0423643d5a20..e33514c1617e9c9ba99dc64e70f2a80631fab1c4 100644 (file)
@@ -281,7 +281,7 @@ afs_vop_lookup(ap)
     int error;
     struct vcache *vcp;
     struct vnode *vp, *dvp;
-    register int flags = ap->a_cnp->cn_flags;
+    int flags = ap->a_cnp->cn_flags;
     int lockparent;            /* 1 => lockparent flag is set */
     int wantparent;            /* 1 => wantparent or lockparent flag */
     struct proc *p;
@@ -402,7 +402,7 @@ afs_vop_create(ap)
 {
     int error = 0;
     struct vcache *vcp;
-    register struct vnode *dvp = ap->a_dvp;
+    struct vnode *dvp = ap->a_dvp;
     struct proc *p;
     GETNAME();
     p = vop_cn_proc;
@@ -829,7 +829,7 @@ afs_vop_pagein(ap)
                                 * int a_flags;
                                 * } */ *ap;
 {
-    register struct vnode *vp = ap->a_vp;
+    struct vnode *vp = ap->a_vp;
     upl_t pl = ap->a_pl;
     size_t size = ap->a_size;
     off_t f_offset = ap->a_f_offset;
@@ -974,7 +974,7 @@ afs_vop_pageout(ap)
                                 * int           a_flags
                                 * } */ *ap;
 {
-    register struct vnode *vp = ap->a_vp;
+    struct vnode *vp = ap->a_vp;
     upl_t pl = ap->a_pl;
     size_t size = ap->a_size;
     off_t f_offset = ap->a_f_offset;
@@ -1207,7 +1207,7 @@ afs_vop_fsync(ap)
 {
     int wait = ap->a_waitfor == MNT_WAIT;
     int error;
-    register struct vnode *vp = ap->a_vp;
+    struct vnode *vp = ap->a_vp;
     int haveGlock = ISAFS_GLOCK();
 
     /* afs_vop_lookup glocks, can call us through vinvalbuf from GetVCache */
@@ -1245,8 +1245,8 @@ afs_vop_remove(ap)
                                 * } */ *ap;
 {
     int error = 0;
-    register struct vnode *vp = ap->a_vp;
-    register struct vnode *dvp = ap->a_dvp;
+    struct vnode *vp = ap->a_vp;
+    struct vnode *dvp = ap->a_dvp;
 
 #ifdef AFS_DARWIN80_ENV
     if (ap->a_flags & VNODE_REMOVE_NODELETEBUSY) {
@@ -1310,8 +1310,8 @@ afs_vop_link(ap)
                                 * } */ *ap;
 {
     int error = 0;
-    register struct vnode *dvp = ap->a_tdvp;
-    register struct vnode *vp = ap->a_vp;
+    struct vnode *dvp = ap->a_tdvp;
+    struct vnode *vp = ap->a_vp;
     struct proc *p;
 
     GETNAME();
@@ -1362,9 +1362,9 @@ afs_vop_rename(ap)
     struct componentname *tcnp = ap->a_tcnp;
     char *tname;
     struct vnode *tvp = ap->a_tvp;
-    register struct vnode *tdvp = ap->a_tdvp;
+    struct vnode *tdvp = ap->a_tdvp;
     struct vnode *fvp = ap->a_fvp;
-    register struct vnode *fdvp = ap->a_fdvp;
+    struct vnode *fdvp = ap->a_fdvp;
     struct proc *p; 
 
     p = cn_proc(fcnp);
@@ -1562,8 +1562,8 @@ afs_vop_mkdir(ap)
                                 * struct vattr *a_vap;
                                 * } */ *ap;
 {
-    register struct vnode *dvp = ap->a_dvp;
-    register struct vattr *vap = ap->a_vap;
+    struct vnode *dvp = ap->a_dvp;
+    struct vattr *vap = ap->a_vap;
     int error = 0;
     struct vcache *vcp;
     struct proc *p;
@@ -1613,8 +1613,8 @@ afs_vop_rmdir(ap)
                                 * } */ *ap;
 {
     int error = 0;
-    register struct vnode *vp = ap->a_vp;
-    register struct vnode *dvp = ap->a_dvp;
+    struct vnode *vp = ap->a_vp;
+    struct vnode *dvp = ap->a_dvp;
 
     GETNAME();
     if (dvp == vp) {
@@ -1650,7 +1650,7 @@ afs_vop_symlink(ap)
                                 * char *a_target;
                                 * } */ *ap;
 {
-    register struct vnode *dvp = ap->a_dvp;
+    struct vnode *dvp = ap->a_dvp;
     int error = 0;
     /* NFS ignores a_vpp; so do we. */
 
@@ -1750,7 +1750,7 @@ afs_vop_inactive(ap)
                                 * struct proc *a_p;
                                 * } */ *ap;
 {
-    register struct vnode *vp = ap->a_vp;
+    struct vnode *vp = ap->a_vp;
     struct vcache *tvc = VTOAFS(vp);
 #ifndef AFS_DARWIN80_ENV
     if (prtactive && vp->v_usecount != 0)
@@ -1784,7 +1784,7 @@ afs_vop_reclaim(ap)
 {
     int error = 0;
     int sl, writelocked;
-    register struct vnode *vp = ap->a_vp;
+    struct vnode *vp = ap->a_vp;
     struct vcache *tvc = VTOAFS(vp);
 
     osi_Assert(!ISAFS_GLOCK());
@@ -1959,8 +1959,8 @@ afs_vop_lock(ap)
                                 * struct vnode *a_vp;
                                 * } */ *ap;
 {
-    register struct vnode *vp = ap->a_vp;
-    register struct vcache *avc = VTOAFS(vp);
+    struct vnode *vp = ap->a_vp;
+    struct vcache *avc = VTOAFS(vp);
 
     if (vp->v_tag == VT_NON)
        return (ENOENT);
@@ -2057,8 +2057,8 @@ afs_vop_print(ap)
                                 * struct vnode *a_vp;
                                 * } */ *ap;
 {
-    register struct vnode *vp = ap->a_vp;
-    register struct vcache *vc = VTOAFS(ap->a_vp);
+    struct vnode *vp = ap->a_vp;
+    struct vcache *vc = VTOAFS(ap->a_vp);
     int s = vc->f.states;
     printf("tag %d, fid: %ld.%x.%x.%x, opens %d, writers %d", vp->v_tag,
           vc->f.fid.Cell, vc->f.fid.Fid.Volume, vc->f.fid.Fid.Vnode,
index 394a45ccc6cdadb6bc707414b0d5477c8dba15d3..ecd5837afd16f538c967e9ac2a1bad0827b1235c 100644 (file)
@@ -59,9 +59,9 @@ osi_UFSOpen(afs_dcache_id_t *ainode)
 }
 
 int
-afs_osi_Stat(register struct osi_file *afile, register struct osi_stat *astat)
+afs_osi_Stat(struct osi_file *afile, struct osi_stat *astat)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct vattr tvattr;
     AFS_STATCNT(osi_Stat);
     ObtainWriteLock(&afs_xosi, 320);
@@ -86,7 +86,7 @@ afs_osi_Stat(register struct osi_file *afile, register struct osi_stat *astat)
 }
 
 int
-osi_UFSClose(register struct osi_file *afile)
+osi_UFSClose(struct osi_file *afile)
 {
     AFS_STATCNT(osi_Close);
     if (afile->vnode) {
@@ -98,11 +98,11 @@ osi_UFSClose(register struct osi_file *afile)
 }
 
 int
-osi_UFSTruncate(register struct osi_file *afile, afs_int32 asize)
+osi_UFSTruncate(struct osi_file *afile, afs_int32 asize)
 {
     struct vattr tvattr;
     struct vnode *vp;
-    register afs_int32 code, glocked;
+    afs_int32 code, glocked;
     AFS_STATCNT(osi_Truncate);
 
     ObtainWriteLock(&afs_xosi, 321);
@@ -155,11 +155,11 @@ osi_DisableAtimes(struct vnode *avp)
 
 /* Generic read interface */
 int
-afs_osi_Read(register struct osi_file *afile, int offset, void *aptr,
+afs_osi_Read(struct osi_file *afile, int offset, void *aptr,
             afs_int32 asize)
 {
     unsigned int resid;
-    register afs_int32 code;
+    afs_int32 code;
     AFS_STATCNT(osi_Read);
 
     /**
@@ -194,11 +194,11 @@ afs_osi_Read(register struct osi_file *afile, int offset, void *aptr,
 
 /* Generic write interface */
 int
-afs_osi_Write(register struct osi_file *afile, afs_int32 offset, void *aptr,
+afs_osi_Write(struct osi_file *afile, afs_int32 offset, void *aptr,
              afs_int32 asize)
 {
     unsigned int resid;
-    register afs_int32 code;
+    afs_int32 code;
     AFS_STATCNT(osi_Write);
     if (!afile)
        osi_Panic("afs_osi_Write called with null param");
@@ -229,7 +229,7 @@ afs_osi_Write(register struct osi_file *afile, afs_int32 offset, void *aptr,
     This routine written from the RT NFS port strategy routine.
     It has been generalized a bit, but should still be pretty clear. */
 int
-afs_osi_MapStrategy(int (*aproc) (), register struct buf *bp)
+afs_osi_MapStrategy(int (*aproc) (), struct buf *bp)
 {
     afs_int32 returnCode;
 
index 51078940f2a06663da4ea792debe482be596b62b..10e37fd2ed81cb98e8f5feec9bd65fb373ef7164 100644 (file)
@@ -45,8 +45,8 @@ getinode(fs, dev, inode, ipp, perror)
     *ipp = 0;
     *perror = 0;
     if (!fs) {
-       register struct ufsmount *ump;
-       register struct mount *mp;
+       struct ufsmount *ump;
+       struct mount *mp;
 
        mtx_lock(&mountlist_mtx);
        if ((mp = TAILQ_FIRST(&mountlist)) != NULL)
@@ -93,7 +93,7 @@ igetinode(vfsp, dev, inode, ipp, perror)
      int *perror;
 {
     struct inode *ip;
-    register int code = 0;
+    int code = 0;
 
     *perror = 0;
 
@@ -128,7 +128,7 @@ afs_syscall_icreate(dev, near_inode, param1, param2, param3, param4, retval)
 {
     int dummy, err = 0;
     struct inode *ip, *newip;
-    register int code;
+    int code;
     struct vnode *vp;
 
     AFS_STATCNT(afs_syscall_icreate);
@@ -207,7 +207,7 @@ afs_syscall_iopen(dev, inode, usrmod, retval)
     int dummy;
     int fd;
     extern struct fileops vnops;
-    register int code;
+    int code;
 
     AFS_STATCNT(afs_syscall_iopen);
 
@@ -248,7 +248,7 @@ afs_syscall_iincdec(dev, inode, inode_p1, amount)
 {
     int dummy;
     struct inode *ip;
-    register int code;
+    int code;
 
     if (!afs_suser(NULL))
        return (EPERM);
index df8df19f1b952880dd3bbf34ee5ee97c90f9d813..4dafff73059027dac1e24fdc3f43cba253ad65ff 100644 (file)
@@ -195,7 +195,7 @@ afs_root(struct mount *mp, struct vnode **vpp)
 {
     int error;
     struct vrequest treq;
-    register struct vcache *tvp = 0;
+    struct vcache *tvp = 0;
 #if !defined(AFS_FBSD53_ENV) || defined(AFS_FBSD80_ENV)
     struct thread *td = curthread;
 #endif
index 0e7a6d1c72b6642a3a218f5dc86d84adc1ca7fe4..6b9532f2923873dfd3057de5fa69ff2371510b41 100644 (file)
@@ -478,7 +478,7 @@ afs_vop_lookup(ap)
     int error;
     struct vcache *vcp;
     struct vnode *vp, *dvp;
-    register int flags = ap->a_cnp->cn_flags;
+    int flags = ap->a_cnp->cn_flags;
     int lockparent;            /* 1 => lockparent flag is set */
     int wantparent;            /* 1 => wantparent or lockparent flag */
     struct thread *p = ap->a_cnp->cn_thread;
@@ -572,7 +572,7 @@ afs_vop_create(ap)
 {
     int error = 0;
     struct vcache *vcp;
-    register struct vnode *dvp = ap->a_dvp;
+    struct vnode *dvp = ap->a_dvp;
     struct thread *p = ap->a_cnp->cn_thread;
     GETNAME();
 
@@ -1085,7 +1085,7 @@ afs_vop_fsync(ap)
                                 * } */ *ap;
 {
     int error;
-    register struct vnode *vp = ap->a_vp;
+    struct vnode *vp = ap->a_vp;
 
     AFS_GLOCK();
     /*vflushbuf(vp, wait); */
@@ -1110,8 +1110,8 @@ afs_vop_remove(ap)
                                 * } */ *ap;
 {
     int error = 0;
-    register struct vnode *vp = ap->a_vp;
-    register struct vnode *dvp = ap->a_dvp;
+    struct vnode *vp = ap->a_vp;
+    struct vnode *dvp = ap->a_dvp;
 
     GETNAME();
     AFS_GLOCK();
@@ -1131,8 +1131,8 @@ afs_vop_link(ap)
                                 * } */ *ap;
 {
     int error = 0;
-    register struct vnode *dvp = ap->a_tdvp;
-    register struct vnode *vp = ap->a_vp;
+    struct vnode *dvp = ap->a_tdvp;
+    struct vnode *vp = ap->a_vp;
     struct thread *p = ap->a_cnp->cn_thread;
 
     GETNAME();
@@ -1174,9 +1174,9 @@ afs_vop_rename(ap)
     struct componentname *tcnp = ap->a_tcnp;
     char *tname;
     struct vnode *tvp = ap->a_tvp;
-    register struct vnode *tdvp = ap->a_tdvp;
+    struct vnode *tdvp = ap->a_tdvp;
     struct vnode *fvp = ap->a_fvp;
-    register struct vnode *fdvp = ap->a_fdvp;
+    struct vnode *fdvp = ap->a_fdvp;
     struct thread *p = fcnp->cn_thread;
 
     /*
@@ -1275,8 +1275,8 @@ afs_vop_mkdir(ap)
                                 * struct vattr *a_vap;
                                 * } */ *ap;
 {
-    register struct vnode *dvp = ap->a_dvp;
-    register struct vattr *vap = ap->a_vap;
+    struct vnode *dvp = ap->a_dvp;
+    struct vattr *vap = ap->a_vap;
     int error = 0;
     struct vcache *vcp;
     struct thread *p = ap->a_cnp->cn_thread;
@@ -1311,7 +1311,7 @@ afs_vop_rmdir(ap)
                                 * } */ *ap;
 {
     int error = 0;
-    register struct vnode *dvp = ap->a_dvp;
+    struct vnode *dvp = ap->a_dvp;
 
     GETNAME();
     AFS_GLOCK();
@@ -1433,7 +1433,7 @@ afs_vop_inactive(ap)
                                 * struct thread *td;
                                 * } */ *ap;
 {
-    register struct vnode *vp = ap->a_vp;
+    struct vnode *vp = ap->a_vp;
 
     if (prtactive && vp->v_usecount != 0)
        vprint("afs_vop_inactive(): pushing active", vp);
@@ -1535,8 +1535,8 @@ afs_vop_print(ap)
                                 * struct vnode *a_vp;
                                 * } */ *ap;
 {
-    register struct vnode *vp = ap->a_vp;
-    register struct vcache *vc = VTOAFS(ap->a_vp);
+    struct vnode *vp = ap->a_vp;
+    struct vcache *vc = VTOAFS(ap->a_vp);
     int s = vc->f.states;
 
     printf("tag %s, fid: %d.%d.%d.%d, opens %d, writers %d", vp->v_tag,
index 1d2ae5c3acb9abaa290d7b43944b2470e073e301..1bba21f8d291052404cd8adb14d986ec788cf7ff 100644 (file)
@@ -28,7 +28,7 @@ void *
 osi_UFSOpen(afs_dcache_id_t *ainode)
 {
     struct inode *ip;
-    register struct osi_file *afile = NULL;
+    struct osi_file *afile = NULL;
     extern int cacheDiskType;
     afs_int32 code = 0;
     int dummy;
@@ -61,9 +61,9 @@ osi_UFSOpen(afs_dcache_id_t *ainode)
 }
 
 int
-afs_osi_Stat(register struct osi_file *afile, register struct osi_stat *astat)
+afs_osi_Stat(struct osi_file *afile, struct osi_stat *astat)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct vattr tvattr;
     AFS_STATCNT(osi_Stat);
     ObtainWriteLock(&afs_xosi, 320);
@@ -80,7 +80,7 @@ afs_osi_Stat(register struct osi_file *afile, register struct osi_stat *astat)
 }
 
 int
-osi_UFSClose(register struct osi_file *afile)
+osi_UFSClose(struct osi_file *afile)
 {
     AFS_STATCNT(osi_Close);
     if (afile->vnode) {
@@ -92,11 +92,11 @@ osi_UFSClose(register struct osi_file *afile)
 }
 
 int
-osi_UFSTruncate(register struct osi_file *afile, afs_int32 asize)
+osi_UFSTruncate(struct osi_file *afile, afs_int32 asize)
 {
     afs_ucred_t *oldCred;
     struct vattr tvattr;
-    register afs_int32 code;
+    afs_int32 code;
     struct osi_stat tstat;
     AFS_STATCNT(osi_Truncate);
 
@@ -133,13 +133,13 @@ osi_DisableAtimes(struct vnode *avp)
 
 /* Generic read interface */
 int
-afs_osi_Read(register struct osi_file *afile, int offset, void *aptr,
+afs_osi_Read(struct osi_file *afile, int offset, void *aptr,
             afs_int32 asize)
 {
     afs_ucred_t *oldCred;
     long resid;
-    register afs_int32 code;
-    register afs_int32 cnt1 = 0;
+    afs_int32 code;
+    afs_int32 cnt1 = 0;
     AFS_STATCNT(osi_Read);
 
     /**
@@ -184,12 +184,12 @@ afs_osi_Read(register struct osi_file *afile, int offset, void *aptr,
 
 /* Generic write interface */
 int
-afs_osi_Write(register struct osi_file *afile, afs_int32 offset, void *aptr,
+afs_osi_Write(struct osi_file *afile, afs_int32 offset, void *aptr,
              afs_int32 asize)
 {
     afs_ucred_t *oldCred;
     long resid;
-    register afs_int32 code;
+    afs_int32 code;
     AFS_STATCNT(osi_Write);
     if (!afile)
        osi_Panic("afs_osi_Write called with null param");
index a8ed8ebb1d9691aa71c47e839a33a95872db341f..554a30b6b0b48a32f37257782f9f1f0c0aee597a 100644 (file)
@@ -36,7 +36,7 @@
 void
 afs_osi_TraverseProcTable(void)
 {
-    register proc_t *p;
+    proc_t *p;
     int endchain = 0;
 
     MP_SPINLOCK(activeproc_lock);
index 3b70fc856f7a5746cd6368d4c26e136dbb602487..8d6d9dbd7f749c613f5cb7bbe54304a869ebf486 100644 (file)
@@ -122,7 +122,7 @@ afs_setgroups(struct ucred **cred, int ngroups, gid_t * gidset,
     struct ucred *newcr;
     ulong_t s;
 #if defined(AFS_HPUX110_ENV)
-    register ulong_t context;
+    ulong_t context;
 #endif
 
     AFS_STATCNT(afs_setgroups);
index 7716db02cde68823d6f4e385fc3b4f9e3f03aa82..abc62420fcabc5d10d03cb84c2d1e5b188a84055 100644 (file)
@@ -46,7 +46,7 @@ igetinode(struct vfs *vfsp, dev_t dev, ino_t inode, int *perror)
 {
     struct inode *pip, *ip;
     extern struct osi_dev cacheDev;
-    register int code = 0;
+    int code = 0;
 
     *perror = 0;
     AFS_STATCNT(igetinode);
@@ -125,7 +125,7 @@ afs_syscall_iopen(dev, inode, usrmod)
     struct vnode *vp = NULL;
     int dummy;
     extern struct fileops vnodefops;
-    register int code;
+    int code;
     int fd;
 
     AFS_STATCNT(afs_syscall_iopen);
@@ -187,7 +187,7 @@ afs_syscall_iincdec(dev, inode, inode_p1, amount)
 {
     int dummy;
     struct inode *ip;
-    register afs_int32 code;
+    afs_int32 code;
 
     if (!afs_suser(NULL)) {
        u.u_error = EPERM;
index 1d138fc3e4393861fd59d8d61d2cd4ed9335b072..fcf7c99fc4466ab815f2694671be3e7025616df9 100644 (file)
@@ -81,7 +81,7 @@ extern void afsHashRelease(tid_t key);
 #endif
 
 /* Uses splnet only in the SP case */
-#define SPLVAR      register ulong_t splvar
+#define SPLVAR      ulong_t splvar
 #define NETPRI      NET_SPLNET(splvar)
 #define USERPRI     NET_SPLX(splvar)
 
index 61eb55eb14f4a037bfeff96bae8df8537a3d5be7..395b3418e6a27825019e89991f65925d4bc94edb 100644 (file)
@@ -22,8 +22,8 @@ static char waitV;
 /* call procedure aproc with arock as an argument, in ams milliseconds */
 static int
 afs_osi_CallProc(aproc, arock, ams)
-     register void (*aproc) ();
-     register char *arock;
+     void (*aproc) ();
+     char *arock;
      afs_int32 ams;
 {
     int code;
@@ -43,8 +43,8 @@ afs_osi_CallProc(aproc, arock, ams)
 /* cancel a timeout, whether or not it has already occurred */
 static int
 afs_osi_CancelProc(aproc, arock)
-     register void (*aproc) ();
-     register char *arock;
+     void (*aproc) ();
+     char *arock;
 {
     int code = 0;
     AFS_STATCNT(osi_CancelProc);
index cdad352afabd29549f7d9af8eebcf25f9586c1e8..acb601bd3809bf984fa27288957a04db0d5e2126 100644 (file)
@@ -114,7 +114,7 @@ afs_root(struct vfs *afsp, struct vnode **avpp, char *unused1)
 {
     int code = 0;
     struct vrequest treq;
-    register struct vcache *tvp = 0;
+    struct vcache *tvp = 0;
     AFS_GLOCK();
     AFS_STATCNT(afs_root);
 
@@ -152,7 +152,7 @@ afs_root(struct vfs *afsp, struct vnode **avpp, char *unused1)
 }
 
 int
-afs_statfs(register struct vfs *afsp, struct k_statvfs *abp)
+afs_statfs(struct vfs *afsp, struct k_statvfs *abp)
 {
     AFS_GLOCK();
     AFS_STATCNT(afs_statfs);
@@ -251,7 +251,7 @@ b_sema_t afs_global_sema = { 0 };
 void
 osi_InitGlock()
 {
-    register ulong_t context;
+    ulong_t context;
 
     SPINLOCK_USAV(sched_lock, context);
     if (!afs_Starting) {
index a478fbcfbb470b7712b2d5c5ee6d3c183e52462a..a9114ef980a1f751e9cd3844e8b378113b221fd2 100644 (file)
@@ -69,11 +69,11 @@ extern int afs_close();
  */
 int
 m_cpytoc(m, off, len, cp)
-     register struct mbuf *m;
-     register int off, len;
-     register caddr_t cp;
+     struct mbuf *m;
+     int off, len;
+     caddr_t cp;
 {
-    register int ml;
+    int ml;
 
     if (m == NULL || off < 0 || len < 0 || cp == NULL)
        osi_Panic("m_cpytoc");
@@ -275,7 +275,7 @@ afs_brelse(vp, bp)
 
 
 afs_bmap(avc, abn, anvp, anbn)
-     register struct vcache *avc;
+     struct vcache *avc;
      kern_daddr_t abn, *anbn;
      struct vcache **anvp;
 {
@@ -288,7 +288,7 @@ afs_bmap(avc, abn, anvp, anbn)
 }
 
 afs_inactive(avc, acred)
-     register struct vcache *avc;
+     struct vcache *avc;
      afs_ucred_t *acred;
 {
     struct vnode *vp = AFSTOV(avc);
@@ -320,9 +320,9 @@ afs_inactive(avc, acred)
 
 
 int
-mp_afs_open(register struct vnode **avcp, int aflags, afs_ucred_t *acred)
+mp_afs_open(struct vnode **avcp, int aflags, afs_ucred_t *acred)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_open(avcp, aflags, acred);
@@ -331,9 +331,9 @@ mp_afs_open(register struct vnode **avcp, int aflags, afs_ucred_t *acred)
 }
 
 int
-mp_afs_close(register struct vnode *avcp, int aflags, afs_ucred_t *acred)
+mp_afs_close(struct vnode *avcp, int aflags, afs_ucred_t *acred)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_close(avcp, aflags, acred);
@@ -342,10 +342,10 @@ mp_afs_close(register struct vnode *avcp, int aflags, afs_ucred_t *acred)
 }
 
 int
-mp_afs_rdwr(register struct vnode *avcp, struct uio *uio, enum uio_rw arw,
+mp_afs_rdwr(struct vnode *avcp, struct uio *uio, enum uio_rw arw,
            int aio, afs_ucred_t *acred)
 {
-    register int code;
+    int code;
     long save_resid;
 
     AFS_GLOCK();
@@ -360,10 +360,10 @@ mp_afs_rdwr(register struct vnode *avcp, struct uio *uio, enum uio_rw arw,
 }
 
 int
-mp_afs_getattr(register struct vnode *avcp, struct vattr *attrs,
+mp_afs_getattr(struct vnode *avcp, struct vattr *attrs,
               afs_ucred_t *acred, enum vsync unused1)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_getattr(avcp, attrs, acred);
@@ -372,10 +372,10 @@ mp_afs_getattr(register struct vnode *avcp, struct vattr *attrs,
 }
 
 int
-mp_afs_setattr(register struct vnode *avcp, register struct vattr *attrs,
+mp_afs_setattr(struct vnode *avcp, struct vattr *attrs,
               afs_ucred_t *acred, int unused1)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_setattr(avcp, attrs, acred);
@@ -384,9 +384,9 @@ mp_afs_setattr(register struct vnode *avcp, register struct vattr *attrs,
 }
 
 int
-mp_afs_access(register struct vnode *avcp, int mode, afs_ucred_t *acred)
+mp_afs_access(struct vnode *avcp, int mode, afs_ucred_t *acred)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_access(avcp, mode, acred);
@@ -395,11 +395,11 @@ mp_afs_access(register struct vnode *avcp, int mode, afs_ucred_t *acred)
 }
 
 int
-mp_afs_lookup(register struct vnode *adp, char *aname,
-             register struct vnode **avcp, afs_ucred_t *acred,
+mp_afs_lookup(struct vnode *adp, char *aname,
+             struct vnode **avcp, afs_ucred_t *acred,
              struct vnode *unused1)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_lookup(adp, aname, avcp, acred);
@@ -408,11 +408,11 @@ mp_afs_lookup(register struct vnode *adp, char *aname,
 }
 
 int
-mp_afs_create(register struct vnode *adp, char *aname, struct vattr *attrs,
+mp_afs_create(struct vnode *adp, char *aname, struct vattr *attrs,
              enum vcexcl aexcl, int amode, struct vnode **avcp,
              afs_ucred_t *acred)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_create(adp, aname, attrs, aexcl, amode, avcp, acred);
@@ -422,10 +422,10 @@ mp_afs_create(register struct vnode *adp, char *aname, struct vattr *attrs,
 
 
 int
-mp_afs_remove(register struct vnode *adp, char *aname,
+mp_afs_remove(struct vnode *adp, char *aname,
              afs_ucred_t *acred)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_remove(adp, aname, acred);
@@ -434,10 +434,10 @@ mp_afs_remove(register struct vnode *adp, char *aname,
 }
 
 int
-mp_afs_link(register struct vnode *avc, register struct vnode *adp,
+mp_afs_link(struct vnode *avc, struct vnode *adp,
            char *aname, afs_ucred_t *acred)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_link(avc, adp, aname, acred);
@@ -446,11 +446,11 @@ mp_afs_link(register struct vnode *avc, register struct vnode *adp,
 }
 
 int
-mp_afs_rename(register struct vnode *aodp, char *aname1,
-             register struct vnode *andp, char *aname2,
+mp_afs_rename(struct vnode *aodp, char *aname1,
+             struct vnode *andp, char *aname2,
              afs_ucred_t *acred)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_rename(aodp, aname1, andp, aname2, acred);
@@ -459,10 +459,10 @@ mp_afs_rename(register struct vnode *aodp, char *aname1,
 }
 
 int
-mp_afs_mkdir(register struct vnode *adp, char *aname, struct vattr *attrs,
-            register struct vnode **avcp, afs_ucred_t *acred)
+mp_afs_mkdir(struct vnode *adp, char *aname, struct vattr *attrs,
+            struct vnode **avcp, afs_ucred_t *acred)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_mkdir(adp, aname, attrs, avcp, acred);
@@ -472,9 +472,9 @@ mp_afs_mkdir(register struct vnode *adp, char *aname, struct vattr *attrs,
 
 
 int
-mp_afs_rmdir(register struct vnode *adp, char *aname, afs_ucred_t *acred)
+mp_afs_rmdir(struct vnode *adp, char *aname, afs_ucred_t *acred)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_rmdir(adp, aname, acred);
@@ -484,10 +484,10 @@ mp_afs_rmdir(register struct vnode *adp, char *aname, afs_ucred_t *acred)
 
 
 int
-mp_afs_readdir(register struct vnode *avc, struct uio *auio,
+mp_afs_readdir(struct vnode *avc, struct uio *auio,
               afs_ucred_t *acred)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_readdir(avc, auio, acred);
@@ -496,10 +496,10 @@ mp_afs_readdir(register struct vnode *avc, struct uio *auio,
 }
 
 int
-mp_afs_symlink(register struct vnode *adp, char *aname, struct vattr *attrs,
+mp_afs_symlink(struct vnode *adp, char *aname, struct vattr *attrs,
               char *atargetName, afs_ucred_t *acred)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_symlink(adp, aname, attrs, atargetName, acred);
@@ -509,10 +509,10 @@ mp_afs_symlink(register struct vnode *adp, char *aname, struct vattr *attrs,
 
 
 int
-mp_afs_readlink(register struct vnode *avc, struct uio *auio,
+mp_afs_readlink(struct vnode *avc, struct uio *auio,
                afs_ucred_t *acred)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_readlink(avc, auio, acred);
@@ -521,9 +521,9 @@ mp_afs_readlink(register struct vnode *avc, struct uio *auio,
 }
 
 int
-mp_afs_fsync(register struct vnode *avc, afs_ucred_t *acred, int unused1)
+mp_afs_fsync(struct vnode *avc, afs_ucred_t *acred, int unused1)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_fsync(avc, acred);
@@ -532,10 +532,10 @@ mp_afs_fsync(register struct vnode *avc, afs_ucred_t *acred, int unused1)
 }
 
 int
-mp_afs_bread(register struct vnode *avc, kern_daddr_t lbn, struct buf **bpp,
+mp_afs_bread(struct vnode *avc, kern_daddr_t lbn, struct buf **bpp,
             struct vattr *unused1, struct ucred *unused2)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_bread(avc, lbn, bpp);
@@ -544,9 +544,9 @@ mp_afs_bread(register struct vnode *avc, kern_daddr_t lbn, struct buf **bpp,
 }
 
 int
-mp_afs_brelse(register struct vnode *avc, struct buf *bp)
+mp_afs_brelse(struct vnode *avc, struct buf *bp)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_brelse(avc, bp);
@@ -556,9 +556,9 @@ mp_afs_brelse(register struct vnode *avc, struct buf *bp)
 
 
 int
-mp_afs_inactive(register struct vnode *avc, afs_ucred_t *acred)
+mp_afs_inactive(struct vnode *avc, afs_ucred_t *acred)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_inactive(avc, acred);
@@ -571,7 +571,7 @@ mp_afs_lockctl(struct vnode *avc, struct flock *af, int cmd,
               afs_ucred_t *acred, struct file *unused1, off_t unused2,
               off_t unused3)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_lockctl(avc, af, cmd, acred);
@@ -582,7 +582,7 @@ mp_afs_lockctl(struct vnode *avc, struct flock *af, int cmd,
 int
 mp_afs_fid(struct vnode *avc, struct fid **fidpp)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_fid(avc, fidpp);
@@ -591,10 +591,10 @@ mp_afs_fid(struct vnode *avc, struct fid **fidpp)
 }
 
 int
-mp_afs_readdir2(register struct vnode *avc, struct uio *auio,
+mp_afs_readdir2(struct vnode *avc, struct uio *auio,
                afs_ucred_t *acred)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_readdir2(avc, auio, acred);
@@ -1566,7 +1566,7 @@ afs_pageout(vp, prp, start, end, flags)
         * if pageiodone() will not be called automatically.
         */
        if (!(bp->b_flags & B_CALL) && steal) {
-           register ulong_t context;
+           ulong_t context;
 
            SPINLOCK_USAV(pfdat_lock, context);
            parolemem += btorp(nbytes);
@@ -2513,13 +2513,13 @@ afsHashGarbageCollect()
 
 
 afs_hp_strategy(bp)
-     register struct buf *bp;
+     struct buf *bp;
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct uio tuio;
     struct iovec tiovec[1];
     extern caddr_t hdl_kmap_bp();
-    register struct kthread *t = u.u_kthreadp;
+    struct kthread *t = u.u_kthreadp;
 
     AFS_STATCNT(afs_hp_strategy);
     /*
index 32a4f44282d26359aa6f734ad3d08c21b5fe10c2..1800d759e2a1903e386192ced4ec25d9beecb6c9 100644 (file)
@@ -41,7 +41,7 @@ void *
 osi_UFSOpen(afs_dcache_id_t *ainode)
 {
     struct inode *ip;
-    register struct osi_file *afile = NULL;
+    struct osi_file *afile = NULL;
     extern int cacheDiskType;
     afs_int32 code = 0;
     int dummy;
@@ -66,9 +66,9 @@ osi_UFSOpen(afs_dcache_id_t *ainode)
 }
 
 int
-afs_osi_Stat(register struct osi_file *afile, register struct osi_stat *astat)
+afs_osi_Stat(struct osi_file *afile, struct osi_stat *astat)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct vattr tvattr;
     AFS_STATCNT(osi_Stat);
     ObtainWriteLock(&afs_xosi, 320);
@@ -86,7 +86,7 @@ afs_osi_Stat(register struct osi_file *afile, register struct osi_stat *astat)
 }
 
 int
-osi_UFSClose(register struct osi_file *afile)
+osi_UFSClose(struct osi_file *afile)
 {
     AFS_STATCNT(osi_Close);
     if (afile->vnode) {
@@ -98,11 +98,11 @@ osi_UFSClose(register struct osi_file *afile)
 }
 
 int
-osi_UFSTruncate(register struct osi_file *afile, afs_int32 asize)
+osi_UFSTruncate(struct osi_file *afile, afs_int32 asize)
 {
     afs_ucred_t *oldCred;
     struct vattr tvattr;
-    register afs_int32 code;
+    afs_int32 code;
     struct osi_stat tstat;
     mon_state_t ms;
     AFS_STATCNT(osi_Truncate);
@@ -127,13 +127,13 @@ osi_UFSTruncate(register struct osi_file *afile, afs_int32 asize)
 
 /* Generic read interface */
 int
-afs_osi_Read(register struct osi_file *afile, int offset, void *aptr,
+afs_osi_Read(struct osi_file *afile, int offset, void *aptr,
             afs_int32 asize)
 {
     afs_ucred_t *oldCred;
     ssize_t resid;
-    register afs_int32 code;
-    register afs_int32 cnt1 = 0;
+    afs_int32 code;
+    afs_int32 cnt1 = 0;
     AFS_STATCNT(osi_Read);
 
     /**
@@ -167,12 +167,12 @@ afs_osi_Read(register struct osi_file *afile, int offset, void *aptr,
 
 /* Generic write interface */
 int
-afs_osi_Write(register struct osi_file *afile, afs_int32 offset, void *aptr,
+afs_osi_Write(struct osi_file *afile, afs_int32 offset, void *aptr,
              afs_int32 asize)
 {
     afs_ucred_t *oldCred;
     ssize_t resid;
-    register afs_int32 code;
+    afs_int32 code;
     AFS_STATCNT(osi_Write);
     if (!afile)
        osi_Panic("afs_osi_Write called with null param");
@@ -204,7 +204,7 @@ afs_osi_Write(register struct osi_file *afile, afs_int32 offset, void *aptr,
     This routine written from the RT NFS port strategy routine.
     It has been generalized a bit, but should still be pretty clear. */
 int
-afs_osi_MapStrategy(int (*aproc) (), register struct buf *bp)
+afs_osi_MapStrategy(int (*aproc) (), struct buf *bp)
 {
     afs_int32 returnCode;
 
index 8605ced50b7248054bb912a72cac1231055f8541..ba18a6a318ddc09b07fe09a316a9e43429531cf7 100644 (file)
@@ -24,9 +24,9 @@
  * debugging routine - invoked by calling kp vnode xx
  */
 static void
-printflags(register unsigned int flags, register char **strings)
+printflags(unsigned int flags, char **strings)
 {
-    register int mask = 1;
+    int mask = 1;
 
     while (flags != 0) {
        if (mask & flags) {
@@ -104,7 +104,7 @@ int
 idbg_afsvfslist()
 {
     struct vcache *tvc;
-    register struct afs_q *tq;
+    struct afs_q *tq;
     struct afs_q *uq;
     afs_int32 nodeid;          /* what ls prints as 'inode' */
 
index ba6432bfbb66ac8e3fc576ab133ecdb1dc913fa4..4321a0526d3f9993d58e308cd69a2a4ac0cecbe2 100644 (file)
@@ -68,7 +68,7 @@ extern flid_t osi_flid;
 #undef AFS_MUTEX_ENTER
 #define AFS_MUTEX_ENTER(mp) \
   MACRO_BEGIN \
-    register struct kthread *_kthreadP; \
+    struct kthread *_kthreadP; \
     while(mutex_tryenter(mp) == 0) { \
       _kthreadP = (struct kthread*)mutex_owner(mp); \
       if (_kthreadP != NULL && _kthreadP->k_sonproc == CPU_NONE) { \
@@ -112,7 +112,7 @@ extern flid_t osi_flid;
 
 #define AFS_MUTEX_ENTER(mp) \
   MACRO_BEGIN \
-    register struct proc *_procP; \
+    struct proc *_procP; \
     while(mutex_tryenter(mp) == 0) { \
        _procP = mutex_owner(mp); \
        if (_procP != NULL && _procP->p_sonproc == CPU_NONE) { \
@@ -183,7 +183,7 @@ extern long afs_global_owner;
 #define AFS_GUNLOCK()
 #define ISAFS_GLOCK() 1
 
-#define SPLVAR      register int splvar
+#define SPLVAR      int splvar
 #define NETPRI      splvar=splnet()
 #define USERPRI     splx(splvar)
 
index 514dcf9f80b199638f46ecf407c61ffc9d52c981..d8bfda3274fe027c36578cec54aa03931905de96 100644 (file)
@@ -201,7 +201,7 @@ afs_unmount(OSI_VFS_ARG(afsp), flags, cr)
 {
     struct vcache *tvc;
     vnode_t *vp, *rootvp = NULL;
-    register struct afs_q *tq;
+    struct afs_q *tq;
     struct afs_q *uq;
     int error, fv_slept;
     OSI_VFS_CONVERT(afsp);
@@ -260,9 +260,9 @@ afs_root(OSI_VFS_ARG(afsp), avpp)
     OSI_VFS_DECL(afsp);
      struct vnode **avpp;
 {
-    register afs_int32 code = 0;
+    afs_int32 code = 0;
     struct vrequest treq;
-    register struct vcache *tvp = 0;
+    struct vcache *tvp = 0;
     OSI_VFS_CONVERT(afsp);
 
     AFS_STATCNT(afs_root);
@@ -367,7 +367,7 @@ afs_sync(OSI_VFS_DECL(afsp),
     struct vcache *tvc;
     struct vnode *vp;
     afs_uint32 lvcachegen;
-    register struct afs_q *tq;
+    struct afs_q *tq;
     struct afs_q *uq;
     int s;
     OSI_VFS_CONVERT(afsp);
@@ -511,8 +511,8 @@ afs_vget(OSI_VFS_DECL(afsp), vnode_t ** avcp, struct fid * fidp)
 {
     struct VenusFid vfid;
     struct vrequest treq;
-    register struct cell *tcell;
-    register afs_int32 code = 0;
+    struct cell *tcell;
+    afs_int32 code = 0;
     afs_int32 ret;
 
 #if defined(AFS_SGI64_ENV) && defined(CKPT) && !defined(_R5000_CVT_WAR)
index f90fd28f6a569198d68bdf6741f864f2fb882532..33d94e3d7ef8953c015c69c3147690ed71d86d13 100644 (file)
@@ -52,7 +52,7 @@ extern void afs_rwunlock(OSI_VN_DECL(vp), AFS_RWLOCK_T b);
 
 extern int afs_fid2();
 
-static int afsrwvp(register struct vcache *avc, register struct uio *uio,
+static int afsrwvp(struct vcache *avc, struct uio *uio,
                   enum uio_rw rw, int ioflag,
 #ifdef AFS_SGI64_ENV
                   struct cred *cr, struct flid *flp);
@@ -341,7 +341,7 @@ static int acchk = 0;
 static int acdrop = 0;
 
 static int
-afsrwvp(register struct vcache *avc, register struct uio *uio, enum uio_rw rw,
+afsrwvp(struct vcache *avc, struct uio *uio, enum uio_rw rw,
        int ioflag,
 #ifdef AFS_SGI64_ENV
        struct cred *cr, struct flid *flp)
@@ -349,7 +349,7 @@ afsrwvp(register struct vcache *avc, register struct uio *uio, enum uio_rw rw,
        struct cred *cr)
 #endif
 {
-    register struct vnode *vp = AFSTOV(avc);
+    struct vnode *vp = AFSTOV(avc);
     struct buf *bp;
     daddr_t bn;
     off_t acnt, cnt;
@@ -927,7 +927,7 @@ OSI_VC_DECL(avc);
 {
     OSI_VC_CONVERT(avc);
     struct vnode *vp = AFSTOV(avc);
-    register struct brequest *tb;
+    struct brequest *tb;
     struct vrequest treq;
     afs_int32 code;
 
index aed713e2c1f315d2d5c28b683549fada71fc1363..2602ec6375e58deb6bbe1940b578d6fb0f4d859d 100644 (file)
@@ -129,7 +129,7 @@ void osi_get_fh(struct dentry *dp, afs_ufs_dcache_id_t *ainode) {
 }
 
 int
-afs_osi_Stat(register struct osi_file *afile, register struct osi_stat *astat)
+afs_osi_Stat(struct osi_file *afile, struct osi_stat *astat)
 {
     AFS_STATCNT(osi_Stat);
     ObtainWriteLock(&afs_xosi, 320);
@@ -142,7 +142,7 @@ afs_osi_Stat(register struct osi_file *afile, register struct osi_stat *astat)
 }
 
 int
-osi_UFSClose(register struct osi_file *afile)
+osi_UFSClose(struct osi_file *afile)
 {
     AFS_STATCNT(osi_Close);
     if (afile) {
@@ -156,9 +156,9 @@ osi_UFSClose(register struct osi_file *afile)
 }
 
 int
-osi_UFSTruncate(register struct osi_file *afile, afs_int32 asize)
+osi_UFSTruncate(struct osi_file *afile, afs_int32 asize)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct osi_stat tstat;
     struct iattr newattrs;
     struct inode *inode = OSIFILE_INODE(afile);
@@ -200,7 +200,7 @@ osi_UFSTruncate(register struct osi_file *afile, afs_int32 asize)
 
 /* Generic read interface */
 int
-afs_osi_Read(register struct osi_file *afile, int offset, void *aptr,
+afs_osi_Read(struct osi_file *afile, int offset, void *aptr,
             afs_int32 asize)
 {
     struct uio auio;
@@ -239,7 +239,7 @@ afs_osi_Read(register struct osi_file *afile, int offset, void *aptr,
 
 /* Generic write interface */
 int
-afs_osi_Write(register struct osi_file *afile, afs_int32 offset, void *aptr,
+afs_osi_Write(struct osi_file *afile, afs_int32 offset, void *aptr,
              afs_int32 asize)
 {
     struct uio auio;
@@ -282,7 +282,7 @@ afs_osi_Write(register struct osi_file *afile, afs_int32 offset, void *aptr,
     This routine written from the RT NFS port strategy routine.
     It has been generalized a bit, but should still be pretty clear. */
 int
-afs_osi_MapStrategy(int (*aproc) (struct buf * bp), register struct buf *bp)
+afs_osi_MapStrategy(int (*aproc) (struct buf * bp), struct buf *bp)
 {
     afs_int32 returnCode;
 
index 36a00489a7177b1d56e1829aac3cbf4a3b109bfb..e511a92d314cd9c4f42554b5576ca9675eeabfcb 100644 (file)
@@ -152,9 +152,9 @@ afs_fill_super(struct super_block *sb, void *data, int silent)
 static int
 afs_root(struct super_block *afsp)
 {
-    register afs_int32 code = 0;
+    afs_int32 code = 0;
     struct vrequest treq;
-    register struct vcache *tvp = 0;
+    struct vcache *tvp = 0;
 
     AFS_STATCNT(afs_root);
     if (afs_globalVp && (afs_globalVp->f.states & CStatd)) {
index af0e24b20b1dbc9f7d40707a53f1c1c126eabbbf..2e4318e502c849fdbb9e519ef5baabb1f31cc57c 100644 (file)
@@ -186,7 +186,7 @@ afs_linux_readdir(struct file *fp, void *dirbuf, filldir_t filldir)
 {
     struct vcache *avc = VTOAFS(FILE_INODE(fp));
     struct vrequest treq;
-    register struct dcache *tdc;
+    struct dcache *tdc;
     int code;
     int offset;
     int dirpos;
index 21f5e19a5cb59452c545d2609c777affdf03d636..98f931edc3460309a37a83e0fd9aeca73087488b 100644 (file)
@@ -29,7 +29,7 @@ extern struct super_block *afs_cacheSBp;
 void *
 osi_UFSOpen(afs_dcache_id_t *ainode)
 {
-    register struct osi_file *afile = NULL;
+    struct osi_file *afile = NULL;
     extern int cacheDiskType;
     afs_int32 code = 0;
     struct inode *tip = NULL;
@@ -81,9 +81,9 @@ void osi_get_fh(struct dentry *dp, afs_ufs_dcache_id_t *ainode) {
 }
 
 int
-afs_osi_Stat(register struct osi_file *afile, register struct osi_stat *astat)
+afs_osi_Stat(struct osi_file *afile, struct osi_stat *astat)
 {
-    register afs_int32 code;
+    afs_int32 code;
     AFS_STATCNT(osi_Stat);
     ObtainWriteLock(&afs_xosi, 320);
     astat->size = i_size_read(OSIFILE_INODE(afile));
@@ -95,7 +95,7 @@ afs_osi_Stat(register struct osi_file *afile, register struct osi_stat *astat)
 }
 
 int
-osi_UFSClose(register struct osi_file *afile)
+osi_UFSClose(struct osi_file *afile)
 {
     AFS_STATCNT(osi_Close);
     if (afile) {
@@ -112,9 +112,9 @@ osi_UFSClose(register struct osi_file *afile)
 }
 
 int
-osi_UFSTruncate(register struct osi_file *afile, afs_int32 asize)
+osi_UFSTruncate(struct osi_file *afile, afs_int32 asize)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct osi_stat tstat;
     struct iattr newattrs;
     struct inode *inode = OSIFILE_INODE(afile);
@@ -183,7 +183,7 @@ osi_UFSTruncate(register struct osi_file *afile, afs_int32 asize)
 
 /* Generic read interface */
 int
-afs_osi_Read(register struct osi_file *afile, int offset, void *aptr,
+afs_osi_Read(struct osi_file *afile, int offset, void *aptr,
             afs_int32 asize)
 {
     struct uio auio;
@@ -222,7 +222,7 @@ afs_osi_Read(register struct osi_file *afile, int offset, void *aptr,
 
 /* Generic write interface */
 int
-afs_osi_Write(register struct osi_file *afile, afs_int32 offset, void *aptr,
+afs_osi_Write(struct osi_file *afile, afs_int32 offset, void *aptr,
              afs_int32 asize)
 {
     struct uio auio;
@@ -265,7 +265,7 @@ afs_osi_Write(register struct osi_file *afile, afs_int32 offset, void *aptr,
     This routine written from the RT NFS port strategy routine.
     It has been generalized a bit, but should still be pretty clear. */
 int
-afs_osi_MapStrategy(int (*aproc) (struct buf * bp), register struct buf *bp)
+afs_osi_MapStrategy(int (*aproc) (struct buf * bp), struct buf *bp)
 {
     afs_int32 returnCode;
 
index e50a217a682807f46badcd01125c558d5eca50d2..81aa3a019dabf27e916f130b555a9ed215c69d03 100644 (file)
@@ -130,9 +130,9 @@ afs_read_super(struct super_block *sb, void *data, int silent)
 static int
 afs_root(struct super_block *afsp)
 {
-    register afs_int32 code = 0;
+    afs_int32 code = 0;
     struct vrequest treq;
-    register struct vcache *tvp = 0;
+    struct vcache *tvp = 0;
 
     AFS_STATCNT(afs_root);
     if (afs_globalVp && (afs_globalVp->f.states & CStatd)) {
index 1a490f01fffe39dfa6b47e115211e1ada00a2079..fe4a026592e4826d5737def9b9e95f664ed71e2c 100644 (file)
@@ -221,7 +221,7 @@ afs_linux_readdir(struct file *fp, void *dirbuf, filldir_t filldir)
 {
     struct vcache *avc = VTOAFS(FILE_INODE(fp));
     struct vrequest treq;
-    register struct dcache *tdc;
+    struct dcache *tdc;
     int code;
     int offset;
     int dirpos;
index 805550293ce5843f5beefe1038a290ae35ca1a21..6e4704506b724b444ad5c4c02089868563dfa13c 100644 (file)
@@ -216,7 +216,7 @@ afs_start(mp, flags, p)
 
 int
 afs_mount(mp, path, data, ndp, p)
-     register struct mount *mp;
+     struct mount *mp;
      char *path;
      caddr_t data;
      struct nameidata *ndp;
index 04f4eb0ced93ea7dfeb63d765b03b1b0e4bc452f..d6985f18594722a04e3fa38f21a32f07a8609986 100644 (file)
@@ -145,7 +145,7 @@ void *
 osi_VxfsOpen(afs_dcache_id_t *ainode)
 {
     struct vnode *vp;
-    register struct osi_file *afile = NULL;
+    struct osi_file *afile = NULL;
     afs_int32 code = 0;
     int dummy;
     afile = (struct osi_file *)osi_AllocSmallSpace(sizeof(struct osi_file));
@@ -172,7 +172,7 @@ osi_UfsOpen(afs_dcache_id_t *ainode)
 #else
     struct inode *ip;
 #endif
-    register struct osi_file *afile = NULL;
+    struct osi_file *afile = NULL;
     afs_int32 code = 0;
     int dummy;
 #ifdef AFS_CACHE_VNODE_PATH
@@ -260,9 +260,9 @@ osi_UFSOpen(afs_dcache_id_t *ainode)
 }
 
 int
-afs_osi_Stat(register struct osi_file *afile, register struct osi_stat *astat)
+afs_osi_Stat(struct osi_file *afile, struct osi_stat *astat)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct vattr tvattr;
     AFS_STATCNT(osi_Stat);
     ObtainWriteLock(&afs_xosi, 320);
@@ -285,7 +285,7 @@ afs_osi_Stat(register struct osi_file *afile, register struct osi_stat *astat)
 }
 
 int
-osi_UFSClose(register struct osi_file *afile)
+osi_UFSClose(struct osi_file *afile)
 {
     AFS_STATCNT(osi_Close);
     if (afile->vnode) {
@@ -297,11 +297,11 @@ osi_UFSClose(register struct osi_file *afile)
 }
 
 int
-osi_UFSTruncate(register struct osi_file *afile, afs_int32 asize)
+osi_UFSTruncate(struct osi_file *afile, afs_int32 asize)
 {
     afs_ucred_t *oldCred;
     struct vattr tvattr;
-    register afs_int32 code;
+    afs_int32 code;
     struct osi_stat tstat;
     AFS_STATCNT(osi_Truncate);
 
@@ -351,7 +351,7 @@ osi_DisableAtimes(struct vnode *avp)
 
 /* Generic read interface */
 int
-afs_osi_Read(register struct osi_file *afile, int offset, void *aptr,
+afs_osi_Read(struct osi_file *afile, int offset, void *aptr,
             afs_int32 asize)
 {
     afs_ucred_t *oldCred;
@@ -360,8 +360,8 @@ afs_osi_Read(register struct osi_file *afile, int offset, void *aptr,
 #else
     int resid;
 #endif
-    register afs_int32 code;
-    register afs_int32 cnt1 = 0;
+    afs_int32 code;
+    afs_int32 cnt1 = 0;
     AFS_STATCNT(osi_Read);
 
     /**
@@ -396,7 +396,7 @@ afs_osi_Read(register struct osi_file *afile, int offset, void *aptr,
 
 /* Generic write interface */
 int
-afs_osi_Write(register struct osi_file *afile, afs_int32 offset, void *aptr,
+afs_osi_Write(struct osi_file *afile, afs_int32 offset, void *aptr,
              afs_int32 asize)
 {
     afs_ucred_t *oldCred;
@@ -405,7 +405,7 @@ afs_osi_Write(register struct osi_file *afile, afs_int32 offset, void *aptr,
 #else
     int resid;
 #endif
-    register afs_int32 code;
+    afs_int32 code;
     AFS_STATCNT(osi_Write);
     if (!afile)
        osi_Panic("afs_osi_Write called with null param");
@@ -434,7 +434,7 @@ afs_osi_Write(register struct osi_file *afile, afs_int32 offset, void *aptr,
     This routine written from the RT NFS port strategy routine.
     It has been generalized a bit, but should still be pretty clear. */
 int
-afs_osi_MapStrategy(int (*aproc) (), register struct buf *bp)
+afs_osi_MapStrategy(int (*aproc) (), struct buf *bp)
 {
     afs_int32 returnCode;
 
index 0c1a60826b39191f3db41d1c5e3b22e3d7eb9a38..d4959f8cd1cde48edef96fb6b2ff28797ff1e2a0 100644 (file)
@@ -43,7 +43,7 @@ getinode(vfsp, dev, inode, ipp, credp, perror)
      int *perror;
 {
     struct inode *ip;
-    register afs_int32 code;
+    afs_int32 code;
     struct vnode *vp;
     struct fs *fs;
     struct inode *pip;
@@ -91,7 +91,7 @@ igetinode(vfsp, dev, inode, ipp, credp, perror)
 {
     struct inode *pip, *ip;
     extern struct osi_dev cacheDev;
-    register int code = 0;
+    int code = 0;
 
     *perror = 0;
 
@@ -150,7 +150,7 @@ afs_syscall_icreate(dev, near_inode, param1, param2, param3, param4, rvp,
 {
     int dummy, err = 0;
     struct inode *ip, *newip;
-    register int code;
+    int code;
     dev_t newdev;
     struct ufsvfs *ufsvfsp;
 
@@ -247,7 +247,7 @@ afs_syscall_iopen(dev, inode, usrmod, rvp, credp)
     struct vnode *vp = NULL;
     int dummy;
     int fd;
-    register int code;
+    int code;
     dev_t newdev;
 
     AFS_STATCNT(afs_syscall_iopen);
@@ -320,7 +320,7 @@ afs_syscall_iincdec(dev, inode, inode_p1, amount, rvp, credp)
 {
     int dummy;
     struct inode *ip;
-    register afs_int32 code;
+    afs_int32 code;
     dev_t newdev;
 
     if (!afs_osi_suser(credp))
index 9a3e08bc6f9c6d582fdbe5eda8ae339cb21d9ff8..782f5fcd23c23b6f29cfee488a6d138dda175281 100644 (file)
@@ -148,9 +148,9 @@ afs_freevfs(struct vfs *afsp)
 int
 afs_root(struct vfs *afsp, struct vnode **avpp)
 {
-    register afs_int32 code = 0;
+    afs_int32 code = 0;
     struct vrequest treq;
-    register struct vcache *tvp = 0;
+    struct vcache *tvp = 0;
     struct vcache *gvp;
     struct proc *proc = ttoproc(curthread);
     struct vnode *vp = afsp->vfs_vnodecovered;
index 4c88297b85a24243458fce10d6119d1b32aabc9e..cfd112419f042209723f3caa42dc4719f1239db6 100644 (file)
@@ -83,7 +83,7 @@ int afs_dump(), afs_cmp(), afs_realvp(), afs_GetOnePage();
 int afs_pvn_vptrunc;
 
 int
-afs_addmap(register struct vnode *avp, offset_t offset, struct as *asp, 
+afs_addmap(struct vnode *avp, offset_t offset, struct as *asp, 
           caddr_t addr, int length, int prot, int maxprot, int flags, 
           afs_ucred_t *credp)
 {
@@ -92,7 +92,7 @@ afs_addmap(register struct vnode *avp, offset_t offset, struct as *asp,
 }
 
 int
-afs_delmap(register struct vnode *avp, offset_t offset, struct as *asp, 
+afs_delmap(struct vnode *avp, offset_t offset, struct as *asp, 
           caddr_t addr, int length, int prot, int maxprot, int flags, 
           afs_ucred_t *credp)
 {
@@ -102,15 +102,15 @@ afs_delmap(register struct vnode *avp, offset_t offset, struct as *asp,
 
 #ifdef AFS_SUN510_ENV
 int
-afs_vmread(register struct vnode *avp, struct uio *auio, int ioflag, 
+afs_vmread(struct vnode *avp, struct uio *auio, int ioflag, 
           afs_ucred_t *acred, caller_context_t *ct)
 #else
 int
-afs_vmread(register struct vnode *avp, struct uio *auio, int ioflag, 
+afs_vmread(struct vnode *avp, struct uio *auio, int ioflag, 
           afs_ucred_t *acred)
 #endif
 {
-    register int code;
+    int code;
 
     if (!RW_READ_HELD(&(VTOAFS(avp))->rwlock))
        osi_Panic("afs_vmread: !rwlock");
@@ -123,15 +123,15 @@ afs_vmread(register struct vnode *avp, struct uio *auio, int ioflag,
 
 #ifdef AFS_SUN510_ENV
 int
-afs_vmwrite(register struct vnode *avp, struct uio *auio, int ioflag, 
+afs_vmwrite(struct vnode *avp, struct uio *auio, int ioflag, 
            afs_ucred_t *acred, caller_context_t *ct)
 #else
 int
-afs_vmwrite(register struct vnode *avp, struct uio *auio, int ioflag, 
+afs_vmwrite(struct vnode *avp, struct uio *auio, int ioflag, 
            afs_ucred_t *acred)
 #endif
 {
-    register int code;
+    int code;
 
     if (!RW_WRITE_HELD(&(VTOAFS(avp))->rwlock))
        osi_Panic("afs_vmwrite: !rwlock");
@@ -146,7 +146,7 @@ afs_getpage(struct vnode *vp, offset_t off, u_int len, u_int *protp,
            struct page *pl[], u_int plsz, struct seg *seg, caddr_t addr, 
            enum seg_rw rw, afs_ucred_t *acred)
 {
-    register afs_int32 code = 0;
+    afs_int32 code = 0;
     AFS_STATCNT(afs_getpage);
 
     if (vp->v_flag & VNOMAP)   /* File doesn't allow mapping */
@@ -194,13 +194,13 @@ afs_GetOnePage(struct vnode *vp, u_int off, u_int alen, u_int *protp,
               enum seg_rw rw, afs_ucred_t *acred)
 #endif
 {
-    register struct page *page;
-    register afs_int32 code = 0;
+    struct page *page;
+    afs_int32 code = 0;
     u_int len;
     struct buf *buf;
     afs_int32 tlen;
-    register struct vcache *avc;
-    register struct dcache *tdc;
+    struct vcache *avc;
+    struct dcache *tdc;
     int i, s, pexists;
     int slot;
     afs_size_t offset, nlen = 0;
@@ -646,21 +646,21 @@ afs_putapage(struct vnode *vp, struct page *pages, u_int * offp,
 }
 
 int
-afs_nfsrdwr(register struct vcache *avc, struct uio *auio, enum uio_rw arw,
+afs_nfsrdwr(struct vcache *avc, struct uio *auio, enum uio_rw arw,
            int ioflag, afs_ucred_t *acred)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 code2;
     int counter;
     afs_int32 mode, sflags;
-    register char *data;
+    char *data;
     struct dcache *dcp, *dcp_newpage;
     afs_size_t fileBase, size;
     afs_size_t pageBase;
-    register afs_int32 tsize;
-    register afs_int32 pageOffset, extraResid = 0;
-    register afs_size_t origLength;    /* length when reading/writing started */
-    register long appendLength;        /* length when this call will finish */
+    afs_int32 tsize;
+    afs_int32 pageOffset, extraResid = 0;
+    afs_size_t origLength;     /* length when reading/writing started */
+    long appendLength; /* length when this call will finish */
     int created;               /* created pages instead of faulting them */
     int lockCode;
     int didFakeOpen, eof;
@@ -1013,9 +1013,9 @@ int
 afs_map(struct vnode *vp, offset_t off, struct as *as, caddr_t *addr, u_int len, u_char prot, u_char maxprot, u_int flags, afs_ucred_t *cred)
 {
     struct segvn_crargs crargs;
-    register afs_int32 code;
+    afs_int32 code;
     struct vrequest treq;
-    register struct vcache *avc = VTOAFS(vp);
+    struct vcache *avc = VTOAFS(vp);
 
     AFS_STATCNT(afs_map);
 
@@ -1103,10 +1103,10 @@ afs_map(struct vnode *vp, offset_t off, struct as *as, caddr_t *addr, u_int len,
 int
 #ifdef AFS_SUN511_ENV
 afs_pathconf(struct vnode *vp, int cmd, u_long *outdatap,
-            register afs_ucred_t *credp, caller_context_t *ct)
+            afs_ucred_t *credp, caller_context_t *ct)
 #else
 afs_pathconf(struct vnode *vp, int cmd, u_long *outdatap,
-            register afs_ucred_t *credp)
+            afs_ucred_t *credp)
 #endif /* AFS_SUN511_ENV */
 {
     AFS_STATCNT(afs_cntl);
@@ -1168,7 +1168,7 @@ afs_rwunlock(struct vnode *vnp, int wlock)
 int
 afs_seek(struct vnode *vnp, offset_t ooff, offset_t *noffp)
 {
-    register int code = 0;
+    int code = 0;
 
 #ifndef AFS_64BIT_CLIENT
 # define __MAXOFF_T MAXOFF_T
@@ -1193,7 +1193,7 @@ afs_frlock(struct vnode *vnp, int cmd, struct flock *ap, int flag,
           offset_t off, afs_ucred_t *credp)
 #endif
 {
-    register afs_int32 code = 0;
+    afs_int32 code = 0;
     /*
      * Implement based on afs_lockctl
      */
@@ -1238,7 +1238,7 @@ afs_space(struct vnode *vnp, int cmd, struct flock *ap, int flag,
          offset_t off, afs_ucred_t *credp)
 #endif
 {
-    register afs_int32 code = EINVAL;
+    afs_int32 code = EINVAL;
     struct vattr vattr;
 
     if ((cmd == F_FREESP)
@@ -1345,60 +1345,60 @@ afs_getsecattr(struct vnode *vp, vsecattr_t *vsecattr, int flag, struct cred *cr
 #endif
 
 #ifdef AFS_GLOBAL_SUNLOCK
-extern int gafs_open(register struct vcache **avcp, afs_int32 aflags, 
+extern int gafs_open(struct vcache **avcp, afs_int32 aflags, 
                     afs_ucred_t *acred);
-extern int gafs_close(register struct vcache *avc, afs_int32 aflags, 
+extern int gafs_close(struct vcache *avc, afs_int32 aflags, 
                      int count, offset_t offset, afs_ucred_t *acred);
 extern int afs_ioctl(struct vnode *vnp, int com, int arg, int flag, 
                     cred_t *credp, int *rvalp);
-extern int gafs_access(register struct vcache *avc, register afs_int32 amode,
+extern int gafs_access(struct vcache *avc, afs_int32 amode,
                       int flags, afs_ucred_t *acred);
-extern int gafs_getattr(register struct vcache *avc, 
-                       register struct vattr *attrs, int flags, 
+extern int gafs_getattr(struct vcache *avc, 
+                       struct vattr *attrs, int flags, 
                        afs_ucred_t *acred);
-extern int gafs_setattr(register struct vcache *avc, 
-                       register struct vattr *attrs, int flags, 
+extern int gafs_setattr(struct vcache *avc, 
+                       struct vattr *attrs, int flags, 
                        afs_ucred_t *acred);
-extern int gafs_lookup(register struct vcache *adp, char *aname, 
-                      register struct vcache **avcp, struct pathname *pnp,
+extern int gafs_lookup(struct vcache *adp, char *aname, 
+                      struct vcache **avcp, struct pathname *pnp,
                       int flags, struct vnode *rdir, afs_ucred_t *acred);
-extern int gafs_remove(register struct vcache *adp, char *aname, 
+extern int gafs_remove(struct vcache *adp, char *aname, 
                       afs_ucred_t *acred);
-extern int gafs_link(register struct vcache *adp, register struct vcache *avc,
+extern int gafs_link(struct vcache *adp, struct vcache *avc,
                     char *aname, afs_ucred_t *acred);
-extern int gafs_rename(register struct vcache *aodp, char *aname1,
-                      register struct vcache *andp, char *aname2,
+extern int gafs_rename(struct vcache *aodp, char *aname1,
+                      struct vcache *andp, char *aname2,
                       afs_ucred_t *acred);
-extern int gafs_symlink(register struct vcache *adp, char *aname, 
-                       struct vattr *attrs, register char *atargetName, 
+extern int gafs_symlink(struct vcache *adp, char *aname, 
+                       struct vattr *attrs, char *atargetName, 
                        afs_ucred_t *acred);
-extern int gafs_rmdir(register struct vcache *adp, char *aname, 
+extern int gafs_rmdir(struct vcache *adp, char *aname, 
                      struct vnode *cdirp, afs_ucred_t *acred);
-extern int gafs_mkdir(register struct vcache *adp, char *aname, 
-                     struct vattr *attrs, register struct vcache **avcp, 
+extern int gafs_mkdir(struct vcache *adp, char *aname, 
+                     struct vattr *attrs, struct vcache **avcp, 
                      afs_ucred_t *acred);
 extern int
 #ifdef  AFS_SUN53_ENV
-gafs_fsync(register struct vcache *avc, int flag, afs_ucred_t *acred);
+gafs_fsync(struct vcache *avc, int flag, afs_ucred_t *acred);
 #else
-gafs_fsync(register struct vcache *avc, afs_ucred_t *acred);
+gafs_fsync(struct vcache *avc, afs_ucred_t *acred);
 #endif
-extern int gafs_readlink(register struct vcache *avc, struct uio *auio, 
+extern int gafs_readlink(struct vcache *avc, struct uio *auio, 
                         afs_ucred_t *acred);
-extern int gafs_readdir(register struct vcache *avc, struct uio *auio,
+extern int gafs_readdir(struct vcache *avc, struct uio *auio,
                        afs_ucred_t *acred, int *eofp);
-extern void gafs_inactive(register struct vcache *avc, 
+extern void gafs_inactive(struct vcache *avc, 
                          afs_ucred_t *acred);
 extern int gafs_fid(struct vcache *avc, struct fid **fidpp);
-extern int gafs_create(register struct vcache *adp, char *aname, 
+extern int gafs_create(struct vcache *adp, char *aname, 
                       struct vattr *attrs, enum vcexcl aexcl, int amode, 
                       struct vcache **avcp, afs_ucred_t *acred);
 #ifdef AFS_SUN511_ENV
 extern int afs_pathconf(struct vnode *vp, int cmd, u_long *outdatap,
-                       register afs_ucred_t *credp, caller_context_t *ct);
+                       afs_ucred_t *credp, caller_context_t *ct);
 #else
 extern int afs_pathconf(struct vnode *vp, int cmd, u_long *outdatap,
-                       register afs_ucred_t *credp);
+                       afs_ucred_t *credp);
 #endif /* AFS_SUN511_ENV */
 
 #if defined(AFS_SUN511_ENV)
@@ -1553,10 +1553,10 @@ struct vnodeops *afs_ops = &Afs_vnodeops;
 #endif
 
 int
-gafs_open(register struct vcache **avcp, afs_int32 aflags, 
+gafs_open(struct vcache **avcp, afs_int32 aflags, 
          afs_ucred_t *acred)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_open(avcp, aflags, acred);
@@ -1565,10 +1565,10 @@ gafs_open(register struct vcache **avcp, afs_int32 aflags,
 }
 
 int
-gafs_close(register struct vcache *avc, afs_int32 aflags, int count, 
+gafs_close(struct vcache *avc, afs_int32 aflags, int count, 
           offset_t offset, afs_ucred_t *acred)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_close(avc, aflags, count, offset, acred);
@@ -1577,10 +1577,10 @@ gafs_close(register struct vcache *avc, afs_int32 aflags, int count,
 }
 
 int
-gafs_getattr(register struct vcache *avc, register struct vattr *attrs, 
+gafs_getattr(struct vcache *avc, struct vattr *attrs, 
             int flags, afs_ucred_t *acred)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_getattr(avc, attrs, flags, acred);
@@ -1590,10 +1590,10 @@ gafs_getattr(register struct vcache *avc, register struct vattr *attrs,
 
 
 int
-gafs_setattr(register struct vcache *avc, register struct vattr *attrs, 
+gafs_setattr(struct vcache *avc, struct vattr *attrs, 
             int flags, afs_ucred_t *acred)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_setattr(avc, attrs, flags, acred);
@@ -1603,10 +1603,10 @@ gafs_setattr(register struct vcache *avc, register struct vattr *attrs,
 
 
 int
-gafs_access(register struct vcache *avc, register afs_int32 amode, int flags, 
+gafs_access(struct vcache *avc, afs_int32 amode, int flags, 
            afs_ucred_t *acred)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_access(avc, amode, flags, acred);
@@ -1616,11 +1616,11 @@ gafs_access(register struct vcache *avc, register afs_int32 amode, int flags,
 
 
 int
-gafs_lookup(register struct vcache *adp, char *aname, 
-           register struct vcache **avcp, struct pathname *pnp, int flags, 
+gafs_lookup(struct vcache *adp, char *aname, 
+           struct vcache **avcp, struct pathname *pnp, int flags, 
            struct vnode *rdir, afs_ucred_t *acred)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_lookup(adp, aname, avcp, pnp, flags, rdir, acred);
@@ -1630,11 +1630,11 @@ gafs_lookup(register struct vcache *adp, char *aname,
 
 
 int
-gafs_create(register struct vcache *adp, char *aname, struct vattr *attrs, 
+gafs_create(struct vcache *adp, char *aname, struct vattr *attrs, 
            enum vcexcl aexcl, int amode, struct vcache **avcp, 
            afs_ucred_t *acred)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_create(adp, aname, attrs, aexcl, amode, avcp, acred);
@@ -1643,9 +1643,9 @@ gafs_create(register struct vcache *adp, char *aname, struct vattr *attrs,
 }
 
 int
-gafs_remove(register struct vcache *adp, char *aname, afs_ucred_t *acred)
+gafs_remove(struct vcache *adp, char *aname, afs_ucred_t *acred)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_remove(adp, aname, acred);
@@ -1654,10 +1654,10 @@ gafs_remove(register struct vcache *adp, char *aname, afs_ucred_t *acred)
 }
 
 int
-gafs_link(register struct vcache *adp, register struct vcache *avc, 
+gafs_link(struct vcache *adp, struct vcache *avc, 
          char *aname, afs_ucred_t *acred)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_link(adp, avc, aname, acred);
@@ -1666,11 +1666,11 @@ gafs_link(register struct vcache *adp, register struct vcache *avc,
 }
 
 int
-gafs_rename(register struct vcache *aodp, char *aname1, 
-           register struct vcache *andp, char *aname2, 
+gafs_rename(struct vcache *aodp, char *aname1, 
+           struct vcache *andp, char *aname2, 
            afs_ucred_t *acred)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_rename(aodp, aname1, andp, aname2, acred);
@@ -1699,10 +1699,10 @@ gafs_rename(register struct vcache *aodp, char *aname1,
 }
 
 int
-gafs_mkdir(register struct vcache *adp, char *aname, struct vattr *attrs, 
-          register struct vcache **avcp, afs_ucred_t *acred)
+gafs_mkdir(struct vcache *adp, char *aname, struct vattr *attrs, 
+          struct vcache **avcp, afs_ucred_t *acred)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_mkdir(adp, aname, attrs, avcp, acred);
@@ -1711,10 +1711,10 @@ gafs_mkdir(register struct vcache *adp, char *aname, struct vattr *attrs,
 }
 
 int
-gafs_rmdir(register struct vcache *adp, char *aname, struct vnode *cdirp, 
+gafs_rmdir(struct vcache *adp, char *aname, struct vnode *cdirp, 
           afs_ucred_t *acred)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_rmdir(adp, aname, cdirp, acred);
@@ -1724,10 +1724,10 @@ gafs_rmdir(register struct vcache *adp, char *aname, struct vnode *cdirp,
 
 
 int
-gafs_readdir(register struct vcache *avc, struct uio *auio,
+gafs_readdir(struct vcache *avc, struct uio *auio,
             afs_ucred_t *acred, int *eofp)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_readdir(avc, auio, acred, eofp);
@@ -1736,10 +1736,10 @@ gafs_readdir(register struct vcache *avc, struct uio *auio,
 }
 
 int
-gafs_symlink(register struct vcache *adp, char *aname, struct vattr *attrs,
-            register char *atargetName, afs_ucred_t *acred)
+gafs_symlink(struct vcache *adp, char *aname, struct vattr *attrs,
+            char *atargetName, afs_ucred_t *acred)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_symlink(adp, aname, attrs, atargetName, acred);
@@ -1749,9 +1749,9 @@ gafs_symlink(register struct vcache *adp, char *aname, struct vattr *attrs,
 
 
 int
-gafs_readlink(register struct vcache *avc, struct uio *auio, afs_ucred_t *acred)
+gafs_readlink(struct vcache *avc, struct uio *auio, afs_ucred_t *acred)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_readlink(avc, auio, acred);
@@ -1761,12 +1761,12 @@ gafs_readlink(register struct vcache *avc, struct uio *auio, afs_ucred_t *acred)
 
 int
 #ifdef AFS_SUN53_ENV
-gafs_fsync(register struct vcache *avc, int flag, afs_ucred_t *acred)
+gafs_fsync(struct vcache *avc, int flag, afs_ucred_t *acred)
 #else
-gafs_fsync(register struct vcache *avc, afs_ucred_t *acred)
+gafs_fsync(struct vcache *avc, afs_ucred_t *acred)
 #endif
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
 #ifdef AFS_SUN53_ENV
@@ -1828,7 +1828,7 @@ afs_inactive(struct vcache *avc, afs_ucred_t *acred)
 }
 
 void
-gafs_inactive(register struct vcache *avc, afs_ucred_t *acred)
+gafs_inactive(struct vcache *avc, afs_ucred_t *acred)
 {
     AFS_GLOCK();
     (void)afs_inactive(avc, acred);
@@ -1839,7 +1839,7 @@ gafs_inactive(register struct vcache *avc, afs_ucred_t *acred)
 int
 gafs_fid(struct vcache *avc, struct fid **fidpp)
 {
-    register int code;
+    int code;
 
     AFS_GLOCK();
     code = afs_fid(avc, fidpp);
index bd1d6ab282bd4dc6e53926252c92bc70c2d5c962..f647133191a56d1083329ede61a49418f9fda11b 100644 (file)
@@ -978,7 +978,7 @@ afs_osi_MapStrategy(int (*aproc) (struct usr_buf *), struct usr_buf *bp)
 }
 
 void
-osi_FlushPages(register struct vcache *avc, afs_ucred_t *credp)
+osi_FlushPages(struct vcache *avc, afs_ucred_t *credp)
 {
     ObtainSharedLock(&avc->lock, 555);
     if ((hcmp((avc->f.m.DataVersion), (avc->mapDV)) <= 0)
@@ -993,7 +993,7 @@ osi_FlushPages(register struct vcache *avc, afs_ucred_t *credp)
 }
 
 void
-osi_FlushText_really(register struct vcache *vp)
+osi_FlushText_really(struct vcache *vp)
 {
     if (hcmp(vp->f.m.DataVersion, vp->flushDV) > 0) {
        hset(vp->flushDV, vp->f.m.DataVersion);
index ffc3e7a72e0a44364dc004e2f249f5b62a7f4d8e..762ff6d6baa5d929d6214afa82152c48c2cae5bd 100644 (file)
@@ -19,7 +19,7 @@ extern int afs_mount(struct vfs *afsp, char *path, void *data);
 extern int afs_unmount(struct vfs *afsp);
 extern int afs_root(OSI_VFS_DECL(afsp), struct vnode **avpp);
 extern int afs_sync(struct vfs *afsp);
-extern int afs_statfs(register struct vfs *afsp, struct statfs *abp);
+extern int afs_statfs(struct vfs *afsp, struct statfs *abp);
 extern int afs_mountroot(void);
 extern int afs_swapvp(void);
 
index 1fd680327876998894e8f92fbd5243f2cb0bb6e2..d3baa8c98dffe0efddeb70c04397ea4fb25847b6 100644 (file)
@@ -60,9 +60,9 @@ afs_unmount(struct vfs *afsp)
 int
 afs_root(OSI_VFS_DECL(afsp), struct vnode **avpp)
 {
-    register afs_int32 code = 0;
+    afs_int32 code = 0;
     struct vrequest treq;
-    register struct vcache *tvp = 0;
+    struct vcache *tvp = 0;
     OSI_VFS_CONVERT(afsp);
 
     AFS_STATCNT(afs_root);
@@ -105,7 +105,7 @@ afs_sync(struct vfs *afsp)
 }
 
 int
-afs_statfs(register struct vfs *afsp, struct statfs *abp)
+afs_statfs(struct vfs *afsp, struct statfs *abp)
 {
     AFS_STATCNT(afs_statfs);
     abp->f_type = 0;
index 1b8d0f8faab6bc50b40ca8f20d4fee23b164513c..eabcfebe2b0dbb48dde7abd87f3c7d343a75c28b 100644 (file)
@@ -51,8 +51,8 @@ static char fileModeMap[8] = {
 
 /* avc must be held.  Returns bit map of mode bits.  Ignores file mode bits */
 afs_int32
-afs_GetAccessBits(register struct vcache *avc, register afs_int32 arights,
-                 register struct vrequest *areq)
+afs_GetAccessBits(struct vcache *avc, afs_int32 arights,
+                 struct vrequest *areq)
 {
     AFS_STATCNT(afs_GetAccessBits);
     /* see if anyuser has the required access bits */
@@ -110,11 +110,11 @@ int
 afs_AccessOK(struct vcache *avc, afs_int32 arights, struct vrequest *areq,
             afs_int32 check_mode_bits)
 {
-    register struct vcache *tvc;
+    struct vcache *tvc;
     struct VenusFid dirFid;
-    register afs_int32 mask;
+    afs_int32 mask;
     afs_int32 dirBits;
-    register afs_int32 fileBits;
+    afs_int32 fileBits;
 
     AFS_STATCNT(afs_AccessOK);
 
@@ -190,15 +190,15 @@ afs_AccessOK(struct vcache *avc, afs_int32 arights, struct vrequest *areq,
 
 #if defined(AFS_SUN5_ENV) || (defined(AFS_SGI_ENV) && !defined(AFS_SGI65_ENV))
 int
-afs_access(OSI_VC_DECL(avc), register afs_int32 amode, int flags,
+afs_access(OSI_VC_DECL(avc), afs_int32 amode, int flags,
           afs_ucred_t *acred)
 #else
 int
-afs_access(OSI_VC_DECL(avc), register afs_int32 amode,
+afs_access(OSI_VC_DECL(avc), afs_int32 amode,
           afs_ucred_t *acred)
 #endif
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct vrequest treq;
     struct afs_fakestat_state fakestate;
     OSI_VC_CONVERT(avc);
@@ -338,10 +338,10 @@ afs_access(OSI_VC_DECL(avc), register afs_int32 amode,
  * This function is just an interface to afs_GetAccessBits
  */
 int
-afs_getRights(OSI_VC_DECL(avc), register afs_int32 arights,
+afs_getRights(OSI_VC_DECL(avc), afs_int32 arights,
              afs_ucred_t *acred)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct vrequest treq;
     OSI_VC_CONVERT(avc);
 
index 02338c800320e48aac61c33461a2edf44850d70a..f5ac4941c9c08157c23199fbe568f5fee23132dc 100644 (file)
@@ -41,10 +41,10 @@ extern struct vfs *afs_globalVFS;
 
 /* copy out attributes from cache entry */
 int
-afs_CopyOutAttrs(register struct vcache *avc, register struct vattr *attrs)
+afs_CopyOutAttrs(struct vcache *avc, struct vattr *attrs)
 {
-    register struct volume *tvp;
-    register struct cell *tcell;
+    struct volume *tvp;
+    struct cell *tcell;
     int fakedir = 0;
 
     AFS_STATCNT(afs_CopyOutAttrs);
@@ -268,7 +268,7 @@ afs_getattr(OSI_VC_DECL(avc), struct vattr *attrs, afs_ucred_t *acred)
                }
            }
            if ((au = afs_FindUser(treq.uid, -1, READ_LOCK))) {
-               register struct afs_exporter *exporter = au->exporter;
+               struct afs_exporter *exporter = au->exporter;
 
                if (exporter && !(afs_nfsexporter->exp_states & EXP_UNIXMODE)) {
                    unsigned int ubits;
@@ -336,10 +336,10 @@ afs_getattr(OSI_VC_DECL(avc), struct vattr *attrs, afs_ucred_t *acred)
 
 /* convert a Unix request into a status store request */
 int
-afs_VAttrToAS(register struct vcache *avc, register struct vattr *av,
-             register struct AFSStoreStatus *as)
+afs_VAttrToAS(struct vcache *avc, struct vattr *av,
+             struct AFSStoreStatus *as)
 {
-    register int mask;
+    int mask;
     mask = 0;
     AFS_STATCNT(afs_VAttrToAS);
 #if     defined(AFS_DARWIN80_ENV)
@@ -434,17 +434,17 @@ afs_VAttrToAS(register struct vcache *avc, register struct vattr *av,
  */
 #if defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV)
 int
-afs_setattr(OSI_VC_DECL(avc), register struct vattr *attrs, int flags,
+afs_setattr(OSI_VC_DECL(avc), struct vattr *attrs, int flags,
            afs_ucred_t *acred)
 #else
 int
-afs_setattr(OSI_VC_DECL(avc), register struct vattr *attrs,
+afs_setattr(OSI_VC_DECL(avc), struct vattr *attrs,
            afs_ucred_t *acred)
 #endif
 {
     struct vrequest treq;
     struct AFSStoreStatus astat;
-    register afs_int32 code;
+    afs_int32 code;
     struct afs_fakestat_state fakestate;
     OSI_VC_CONVERT(avc);
 
index f0d17c44394c737dc32f3f39bccc3f0f301d9374..e598007a4be49f3c3201455c7e2f63c48a19eb44 100644 (file)
@@ -42,8 +42,8 @@ afs_create(OSI_VC_DECL(adp), char *aname, struct vattr *attrs,
 {
     afs_int32 origCBs, origZaps, finalZaps;
     struct vrequest treq;
-    register afs_int32 code;
-    register struct afs_conn *tc;
+    afs_int32 code;
+    struct afs_conn *tc;
     struct VenusFid newFid;
     struct AFSStoreStatus InStatus;
     struct AFSFetchStatus OutFidStatus, OutDirStatus;
@@ -510,10 +510,10 @@ afs_create(OSI_VC_DECL(adp), char *aname, struct vattr *attrs,
  * and dcache entry write-locked.
  */
 int
-afs_LocalHero(register struct vcache *avc, register struct dcache *adc,
-             register AFSFetchStatus * astat, register int aincr)
+afs_LocalHero(struct vcache *avc, struct dcache *adc,
+             AFSFetchStatus * astat, int aincr)
 {
-    register afs_int32 ok;
+    afs_int32 ok;
     afs_hyper_t avers;
 
     AFS_STATCNT(afs_LocalHero);
index 1b7f1c040b7fac260bcf1d08767bc2f3032ccfb2..4e5140f3588ffbf578856e62c7ae6d216d26fa57 100644 (file)
@@ -35,16 +35,16 @@ extern afs_rwlock_t afs_xcbhash;
 
 int
 afs_mkdir(OSI_VC_DECL(adp), char *aname, struct vattr *attrs, 
-     register struct vcache **avcp, afs_ucred_t *acred)
+     struct vcache **avcp, afs_ucred_t *acred)
 {
     struct vrequest treq;
-    register afs_int32 code;
-    register struct afs_conn *tc;
+    afs_int32 code;
+    struct afs_conn *tc;
     struct VenusFid newFid;
-    register struct dcache *tdc;
+    struct dcache *tdc;
     struct dcache *new_dc;
     afs_size_t offset, len;
-    register struct vcache *tvc;
+    struct vcache *tvc;
     struct AFSStoreStatus InStatus;
     struct AFSFetchStatus OutFidStatus, OutDirStatus;
     struct AFSCallBack CallBack;
@@ -255,10 +255,10 @@ afs_rmdir(OSI_VC_DECL(adp), char *aname, afs_ucred_t *acred)
 #endif
 {
     struct vrequest treq;
-    register struct dcache *tdc;
-    register struct vcache *tvc = NULL;
-    register afs_int32 code;
-    register struct afs_conn *tc;
+    struct dcache *tdc;
+    struct vcache *tvc = NULL;
+    afs_int32 code;
+    struct afs_conn *tc;
     afs_size_t offset, len;
     struct AFSFetchStatus OutDirStatus;
     struct AFSVolSync tsync;
index cbf96beca862d5b372139c2aeb660f857594c9d1..8dc51506aae3cacd3d4a6582f11ab57fe6b8dc0e 100644 (file)
@@ -76,7 +76,7 @@ afs_fid(OSI_VC_DECL(avc), struct fid **fidpp)
 {
     struct SmallFid Sfid;
     long addr[2];
-    register struct cell *tcell;
+    struct cell *tcell;
     extern struct vcache *afs_globalVp;
     int SizeOfSmallFid = SIZEOF_SMALLFID;
     int rootvp = 0;
index f91678237a3170f4eacda2553eacec09b69a880f..d7698f8418d34e65f1ed892597af77ea7b5bde04 100644 (file)
 
 
 /* Static prototypes */
-static int HandleGetLock(register struct vcache *avc,
-                        register struct AFS_FLOCK *af,
-                        register struct vrequest *areq, int clid);
+static int HandleGetLock(struct vcache *avc,
+                        struct AFS_FLOCK *af,
+                        struct vrequest *areq, int clid);
 static int GetFlockCount(struct vcache *avc, struct vrequest *areq);
 static int lockIdcmp2(struct AFS_FLOCK *flock1, struct vcache *vp,
-                     register struct SimpleLocks *alp, int onlymine,
+                     struct SimpleLocks *alp, int onlymine,
                      int clid);
 static void DoLockWarning(afs_ucred_t * acred);
 
@@ -178,11 +178,11 @@ lockIdSet(struct AFS_FLOCK *flock, struct SimpleLocks *slp, int clid)
 
 static int
 lockIdcmp2(struct AFS_FLOCK *flock1, struct vcache *vp,
-          register struct SimpleLocks *alp, int onlymine, int clid)
+          struct SimpleLocks *alp, int onlymine, int clid)
 {
-    register struct SimpleLocks *slp;
+    struct SimpleLocks *slp;
 #if    defined(AFS_SUN5_ENV)
-    register proc_t *procp = ttoproc(curthread);
+    proc_t *procp = ttoproc(curthread);
 #else
 #if !defined(AFS_AIX41_ENV) && !defined(AFS_LINUX20_ENV) && !defined(AFS_SGI65_ENV) && !defined(AFS_DARWIN_ENV) && !defined(AFS_XBSD_ENV)
 #ifdef AFS_SGI64_ENV
@@ -251,7 +251,7 @@ lockIdcmp2(struct AFS_FLOCK *flock1, struct vcache *vp,
 */
 /* clid - nonzero on sgi sunos osf1 only */
 int
-HandleFlock(register struct vcache *avc, int acom, struct vrequest *areq,
+HandleFlock(struct vcache *avc, int acom, struct vrequest *areq,
            pid_t clid, int onlymine)
 {
     struct afs_conn *tc;
@@ -504,7 +504,7 @@ static afs_int32 lastWarnPid = 0;
 static void
 DoLockWarning(afs_ucred_t * acred)
 {
-    register afs_int32 now;
+    afs_int32 now;
     pid_t pid = MyPidxx2Pid(MyPidxx);
     char *procname;
 
@@ -639,10 +639,10 @@ done:
  *       PID has the file read locked.
  */
 static int
-HandleGetLock(register struct vcache *avc, register struct AFS_FLOCK *af,
-             register struct vrequest *areq, int clid)
+HandleGetLock(struct vcache *avc, struct AFS_FLOCK *af,
+             struct vrequest *areq, int clid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct AFS_FLOCK flock;
 
     lockIdSet(&flock, NULL, clid);
@@ -838,8 +838,8 @@ HandleGetLock(register struct vcache *avc, register struct AFS_FLOCK *af,
 static int
 GetFlockCount(struct vcache *avc, struct vrequest *areq)
 {
-    register struct afs_conn *tc;
-    register afs_int32 code;
+    struct afs_conn *tc;
+    afs_int32 code;
     struct AFSFetchStatus OutStatus;
     struct AFSCallBack CallBack;
     struct AFSVolSync tsync;
index 4bba2133779d5e4c59abcd7a846382da1cecc7e0..50b69a973e2ff47f44f11843cfb233dddf75cc7c 100644 (file)
@@ -39,9 +39,9 @@ afs_link(struct vcache *avc, OSI_VC_DECL(adp), char *aname,
 #endif
 {
     struct vrequest treq;
-    register struct dcache *tdc;
-    register afs_int32 code;
-    register struct afs_conn *tc;
+    struct dcache *tdc;
+    afs_int32 code;
+    struct afs_conn *tc;
     afs_size_t offset, len;
     struct AFSFetchStatus OutFidStatus, OutDirStatus;
     struct AFSVolSync tsync;
index 4604397f8d435f40e8c1307a0c273e75a8af1c28..bd415f29133cdddc752198a430cb2afdce815736 100644 (file)
@@ -50,7 +50,7 @@ int afs_fakestat_enable = 0;  /* 1: fakestat-all, 2: fakestat-crosscell */
  */
 static int
 EvalMountData(char type, char *data, afs_uint32 states, afs_uint32 cellnum,
-              struct volume **avolpp, register struct vrequest *areq,
+              struct volume **avolpp, struct vrequest *areq,
              afs_uint32 *acellidxp, afs_uint32 *avolnump,
              afs_uint32 *avnoidp, afs_uint32 *auniqp)
 {
@@ -271,8 +271,8 @@ done:
 }
 
 int
-EvalMountPoint(register struct vcache *avc, struct vcache *advc,
-              struct volume **avolpp, register struct vrequest *areq)
+EvalMountPoint(struct vcache *avc, struct vcache *advc,
+              struct volume **avolpp, struct vrequest *areq)
 {
     afs_int32 code;
     afs_uint32 avnoid, auniq;
@@ -503,9 +503,9 @@ afs_PutFakeStat(struct afs_fakestat_state *state)
 }
 
 int
-afs_ENameOK(register char *aname)
+afs_ENameOK(char *aname)
 {
-    register int tlen;
+    int tlen;
 
     AFS_STATCNT(ENameOK);
     tlen = strlen(aname);
@@ -515,11 +515,11 @@ afs_ENameOK(register char *aname)
 }
 
 static int
-afs_getsysname(register struct vrequest *areq, register struct vcache *adp,
-              register char *bufp, int *num, char **sysnamelist[])
+afs_getsysname(struct vrequest *areq, struct vcache *adp,
+              char *bufp, int *num, char **sysnamelist[])
 {
-    register struct unixuser *au;
-    register afs_int32 error;
+    struct unixuser *au;
+    afs_int32 error;
 
     AFS_STATCNT(getsysname);
 
@@ -546,7 +546,7 @@ afs_getsysname(register struct vrequest *areq, register struct vcache *adp,
 }
 
 void
-Check_AtSys(register struct vcache *avc, const char *aname,
+Check_AtSys(struct vcache *avc, const char *aname,
            struct sysname_info *state, struct vrequest *areq)
 {
     int num = 0;
@@ -567,7 +567,7 @@ Check_AtSys(register struct vcache *avc, const char *aname,
 }
 
 int
-Next_AtSys(register struct vcache *avc, struct vrequest *areq,
+Next_AtSys(struct vcache *avc, struct vrequest *areq,
           struct sysname_info *state)
 {
     int num = afs_sysnamecount;
@@ -578,7 +578,7 @@ Next_AtSys(register struct vcache *avc, struct vrequest *areq,
 
     /* Check for the initial state of aname != "@sys" in Check_AtSys */
     if (state->offset == -1 && state->allocked == 0) {
-       register char *tname;
+       char *tname;
 
        /* Check for .*@sys */
        for (tname = state->name; *tname; tname++)
@@ -598,8 +598,8 @@ Next_AtSys(register struct vcache *avc, struct vrequest *areq,
        } else
            return 0;           /* .*@sys doesn't match either */
     } else {
-       register struct unixuser *au;
-       register afs_int32 error;
+       struct unixuser *au;
+       afs_int32 error;
 
        *sysnamelist = afs_sysnamelist;
 
@@ -1316,9 +1316,9 @@ afs_lookup(OSI_VC_DECL(adp), char *aname, struct vcache **avcp, afs_ucred_t *acr
 {
     struct vrequest treq;
     char *tname = NULL;
-    register struct vcache *tvc = 0;
-    register afs_int32 code;
-    register afs_int32 bulkcode = 0;
+    struct vcache *tvc = 0;
+    afs_int32 code;
+    afs_int32 bulkcode = 0;
     int pass = 0, hit = 0;
     int force_eval = afs_fakestat_enable ? 0 : 1;
     long dirCookie;
@@ -1553,7 +1553,7 @@ afs_lookup(OSI_VC_DECL(adp), char *aname, struct vcache **avcp, afs_ucred_t *acr
     }
 
     {                          /* sub-block just to reduce stack usage */
-       register struct dcache *tdc;
+       struct dcache *tdc;
        afs_size_t dirOffset, dirLen;
        struct VenusFid tfid;
 
index 9e7cb7ff763286faf65aecef44e230a0315ec562..d5d54ce33d3d90489b91f89669eced86f00faefe 100644 (file)
@@ -39,7 +39,7 @@ afs_open(bhv_desc_t * bhv, struct vcache **avcp, afs_int32 aflags,
 afs_open(struct vcache **avcp, afs_int32 aflags, afs_ucred_t *acred)
 #endif
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct vrequest treq;
     struct vcache *tvc;
     int writing;
@@ -166,7 +166,7 @@ afs_open(struct vcache **avcp, afs_int32 aflags, afs_ucred_t *acred)
     ReleaseReadLock(&tvc->lock);
     if ((afs_preCache != 0) && (writing == 0) && (vType(tvc) != VDIR) && 
        (!afs_BBusy())) {
-       register struct dcache *tdc;
+       struct dcache *tdc;
        afs_size_t offset, len;
 
        tdc = afs_GetDCache(tvc, 0, &treq, &offset, &len, 1);
index 267c875f2398d8f2e50ca29509ee6ef273978df1..acd02bfbdef31e28c601405a521e18152dc28053 100644 (file)
@@ -42,7 +42,7 @@ void afs_PrefetchChunk(struct vcache *avc, struct dcache *adc,
                       afs_ucred_t *acred, struct vrequest *areq);
 
 int
-afs_MemRead(register struct vcache *avc, struct uio *auio,
+afs_MemRead(struct vcache *avc, struct uio *auio,
            afs_ucred_t *acred, daddr_t albn, struct buf **abpp,
            int noLock)
 {
@@ -418,7 +418,7 @@ void
 afs_PrefetchChunk(struct vcache *avc, struct dcache *adc,
                  afs_ucred_t *acred, struct vrequest *areq)
 {
-    register struct dcache *tdc;
+    struct dcache *tdc;
     afs_size_t offset;
     afs_size_t j1, j2;         /* junk vbls for GetDCache to trash */
 
@@ -486,7 +486,7 @@ afs_PrefetchChunk(struct vcache *avc, struct dcache *adc,
 }
 
 int
-afs_UFSRead(register struct vcache *avc, struct uio *auio,
+afs_UFSRead(struct vcache *avc, struct uio *auio,
            afs_ucred_t *acred, daddr_t albn, struct buf **abpp,
            int noLock)
 {
index 4e00dfda4b2a399e7f5c64ed186df8a43ffa766b..1c494bd9a306514249b68ae6b76de03397142abd 100644 (file)
 int
 BlobScan(struct dcache * afile, afs_int32 ablob)
 {
-    register afs_int32 relativeBlob;
+    afs_int32 relativeBlob;
     afs_int32 pageBlob;
-    register struct PageHeader *tpe;
-    register afs_int32 i;
+    struct PageHeader *tpe;
+    afs_int32 i;
 
     AFS_STATCNT(BlobScan);
     /* advance ablob over free and header blobs */
@@ -582,7 +582,7 @@ afs_readdir(OSI_VC_DECL(avc), struct uio *auio, afs_ucred_t *acred)
 #endif
 {
     struct vrequest treq;
-    register struct dcache *tdc;
+    struct dcache *tdc;
     afs_size_t origOffset, tlen;
     afs_int32 len;
     int code = 0;
@@ -927,7 +927,7 @@ int
 afs1_readdir(struct vcache *avc, struct uio *auio, afs_ucred_t *acred)
 {
     struct vrequest treq;
-    register struct dcache *tdc;
+    struct dcache *tdc;
     afs_size_t origOffset, len;
     int code = 0;
     struct DirEntry *ode = 0, *nde = 0;
index 55363cd36e891be848a12ab79cca9ae68a08350e..7b679b361fc588608f78e4abc119e696ecb2b955 100644 (file)
@@ -32,10 +32,10 @@ extern afs_rwlock_t afs_xcbhash;
 
 
 static void
-FetchWholeEnchilada(register struct vcache *avc, struct vrequest *areq)
+FetchWholeEnchilada(struct vcache *avc, struct vrequest *areq)
 {
-    register afs_int32 nextChunk;
-    register struct dcache *tdc;
+    afs_int32 nextChunk;
+    struct dcache *tdc;
     afs_size_t pos, offset, len;
 
     AFS_STATCNT(FetchWholeEnchilada);
@@ -53,12 +53,12 @@ FetchWholeEnchilada(register struct vcache *avc, struct vrequest *areq)
 }
 
 int
-afsremove(register struct vcache *adp, register struct dcache *tdc,
-         register struct vcache *tvc, char *aname, afs_ucred_t *acred,
+afsremove(struct vcache *adp, struct dcache *tdc,
+         struct vcache *tvc, char *aname, afs_ucred_t *acred,
          struct vrequest *treqp)
 {
-    register afs_int32 code = 0;
-    register struct afs_conn *tc;
+    afs_int32 code = 0;
+    struct afs_conn *tc;
     struct AFSFetchStatus OutDirStatus;
     struct AFSVolSync tsync;
     XSTATS_DECLS;
@@ -175,10 +175,10 @@ int
 afs_remove(OSI_VC_DECL(adp), char *aname, afs_ucred_t *acred)
 {
     struct vrequest treq;
-    register struct dcache *tdc;
+    struct dcache *tdc;
     struct VenusFid unlinkFid;
-    register afs_int32 code;
-    register struct vcache *tvc;
+    afs_int32 code;
+    struct vcache *tvc;
     afs_size_t offset, len;
     struct afs_fakestat_state fakestate;
     OSI_VC_CONVERT(adp);
@@ -396,14 +396,14 @@ afs_remove(OSI_VC_DECL(adp), char *aname, afs_ucred_t *acred)
  * CAUTION -- may be called with avc unheld. */
 
 int
-afs_remunlink(register struct vcache *avc, register int doit)
+afs_remunlink(struct vcache *avc, int doit)
 {
     afs_ucred_t *cred;
     char *unlname;
     struct vcache *adp;
     struct vrequest treq;
     struct VenusFid dirFid;
-    register struct dcache *tdc;
+    struct dcache *tdc;
     afs_int32 code = 0;
 
     if (NBObtainWriteLock(&avc->lock, 423))
index c36c5765d74272545d1c916edad5ad14d8f18f79..45aaefa2222ee3d99378dea5261bd20a6ea4cfca 100644 (file)
@@ -34,8 +34,8 @@ int
 afsrename(struct vcache *aodp, char *aname1, struct vcache *andp,
          char *aname2, afs_ucred_t *acred, struct vrequest *areq)
 {
-    register struct afs_conn *tc;
-    register afs_int32 code = 0;
+    struct afs_conn *tc;
+    afs_int32 code = 0;
     afs_int32 returnCode;
     int oneDir, doLocally;
     afs_size_t offset, len;
@@ -445,7 +445,7 @@ afs_rename(OSI_VC_DECL(aodp), char *aname1, struct vcache *andp, char *aname2, s
 afs_rename(OSI_VC_DECL(aodp), char *aname1, struct vcache *andp, char *aname2, afs_ucred_t *acred)
 #endif
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct afs_fakestat_state ofakestate;
     struct afs_fakestat_state nfakestate;
     struct vrequest treq;
index d860352cc1774316ad23f22f7d3539bbce4f3d4f..eed0e136a57e9c29d2ce9b13716d9f4640de2bdb 100644 (file)
 
 
 #if defined(AFS_SUN5_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
-int afs_ustrategy(register struct buf *abp, afs_ucred_t *credp)
+int afs_ustrategy(struct buf *abp, afs_ucred_t *credp)
 #else
-int afs_ustrategy(register struct buf *abp)
+int afs_ustrategy(struct buf *abp)
 #endif
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct uio tuio;
     struct iovec tiovec[1];
-    register struct vcache *tvc = VTOAFS(abp->b_vp);
-    register afs_int32 len = abp->b_bcount;
+    struct vcache *tvc = VTOAFS(abp->b_vp);
+    afs_int32 len = abp->b_bcount;
 #ifdef AFS_AIX41_ENV
     struct ucred *credp;
 #elif defined(UKERNEL)
index 73292f830072791529bd7cb2a7fd36f17a514478..73f208670be9c4055c060030449aa8bbc91f8667 100644 (file)
@@ -295,13 +295,13 @@ afs_symlink(OSI_VC_DECL(adp), char *aname, struct vattr *attrs,
 }
 
 int
-afs_MemHandleLink(register struct vcache *avc, struct vrequest *areq)
+afs_MemHandleLink(struct vcache *avc, struct vrequest *areq)
 {
-    register struct dcache *tdc;
-    register char *tp, *rbuf;
+    struct dcache *tdc;
+    char *tp, *rbuf;
     afs_size_t offset, len;
     afs_int32 tlen, alen;
-    register afs_int32 code;
+    afs_int32 code;
 
     AFS_STATCNT(afs_MemHandleLink);
     /* two different formats, one for links protected 644, have a "." at
@@ -345,14 +345,14 @@ afs_MemHandleLink(register struct vcache *avc, struct vrequest *areq)
 }
 
 int
-afs_UFSHandleLink(register struct vcache *avc, struct vrequest *areq)
+afs_UFSHandleLink(struct vcache *avc, struct vrequest *areq)
 {
-    register struct dcache *tdc;
-    register char *tp, *rbuf;
+    struct dcache *tdc;
+    char *tp, *rbuf;
     void *tfile;
     afs_size_t offset, len;
     afs_int32 tlen, alen;
-    register afs_int32 code;
+    afs_int32 code;
 
     /* two different formats, one for links protected 644, have a "." at the
      * end of the file name, which we turn into a null.  Others, protected
@@ -403,9 +403,9 @@ afs_UFSHandleLink(register struct vcache *avc, struct vrequest *areq)
 int
 afs_readlink(OSI_VC_DECL(avc), struct uio *auio, afs_ucred_t *acred)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct vrequest treq;
-    register char *tp;
+    char *tp;
     struct afs_fakestat_state fakestat;
     OSI_VC_CONVERT(avc);
 
index 651f8ecad9d78443ad1319a369124beedba3d402..49367b37b6284876dedcd070e468d8a09d6d476d 100644 (file)
@@ -36,8 +36,8 @@ extern unsigned char *afs_indexFlags;
  * avc->lock must be write-locked.
  */
 int
-afs_StoreOnLastReference(register struct vcache *avc,
-                        register struct vrequest *treq)
+afs_StoreOnLastReference(struct vcache *avc,
+                        struct vrequest *treq)
 {
     int code = 0;
 
@@ -95,7 +95,7 @@ afs_StoreOnLastReference(register struct vcache *avc,
 }
 
 int
-afs_MemWrite(register struct vcache *avc, struct uio *auio, int aio,
+afs_MemWrite(struct vcache *avc, struct uio *auio, int aio,
             afs_ucred_t *acred, int noLock)
 {
     afs_size_t totalLength;
@@ -105,7 +105,7 @@ afs_MemWrite(register struct vcache *avc, struct uio *auio, int aio,
     afs_int32 tlen, trimlen;
     afs_int32 startDate;
     afs_int32 max;
-    register struct dcache *tdc;
+    struct dcache *tdc;
 #ifdef _HIGHC_
     volatile
 #endif
@@ -117,7 +117,7 @@ afs_MemWrite(register struct vcache *avc, struct uio *auio, int aio,
     struct uio *tuiop = &tuio;
     struct iovec *tvec;                /* again, should have define */
 #endif
-    register afs_int32 code;
+    afs_int32 code;
     struct vrequest treq;
 
     AFS_STATCNT(afs_MemWrite);
@@ -305,7 +305,7 @@ afs_MemWrite(register struct vcache *avc, struct uio *auio, int aio,
 
 /* called on writes */
 int
-afs_UFSWrite(register struct vcache *avc, struct uio *auio, int aio,
+afs_UFSWrite(struct vcache *avc, struct uio *auio, int aio,
             afs_ucred_t *acred, int noLock)
 {
     afs_size_t totalLength;
@@ -316,7 +316,7 @@ afs_UFSWrite(register struct vcache *avc, struct uio *auio, int aio,
     afs_int32 trimlen;
     afs_int32 startDate;
     afs_int32 max;
-    register struct dcache *tdc;
+    struct dcache *tdc;
 #ifdef _HIGHC_
     volatile
 #endif
@@ -329,7 +329,7 @@ afs_UFSWrite(register struct vcache *avc, struct uio *auio, int aio,
     struct iovec *tvec;                /* again, should have define */
 #endif
     struct osi_file *tfile;
-    register afs_int32 code;
+    afs_int32 code;
     struct vrequest treq;
 
     AFS_STATCNT(afs_UFSWrite);
@@ -630,9 +630,9 @@ afs_UFSWrite(register struct vcache *avc, struct uio *auio, int aio,
 
 /* do partial write if we're low on unmodified chunks */
 int
-afs_DoPartialWrite(register struct vcache *avc, struct vrequest *areq)
+afs_DoPartialWrite(struct vcache *avc, struct vrequest *areq)
 {
-    register afs_int32 code;
+    afs_int32 code;
 
     if (afs_stats_cmperf.cacheCurrDirtyChunks <=
        afs_stats_cmperf.cacheMaxDirtyChunks
@@ -668,8 +668,8 @@ afs_close(OSI_VC_DECL(avc), afs_int32 aflags, int count, offset_t offset,
 afs_close(OSI_VC_DECL(avc), afs_int32 aflags, afs_ucred_t *acred)
 #endif
 {
-    register afs_int32 code;
-    register struct brequest *tb;
+    afs_int32 code;
+    struct brequest *tb;
     struct vrequest treq;
 #ifdef AFS_SGI65_ENV
     struct flid flid;
@@ -836,7 +836,7 @@ afs_fsync(OSI_VC_DECL(avc), int flag, afs_ucred_t *acred
 afs_fsync(OSI_VC_DECL(avc), afs_ucred_t *acred)
 #endif 
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct vrequest treq;
     OSI_VC_CONVERT(avc);
 
index 7ca849fcd5f5b57e6d195c17fa3fd40ef4892dca..5846c76dc5cc6ffc5f503a399554fd7333d7da21 100644 (file)
@@ -305,8 +305,8 @@ afs_BlackListOnce(struct vrequest *areq, struct VenusFid *afid,
  *     if this is a temporary or permanent error.
  *------------------------------------------------------------------------*/
 int
-afs_Analyze(register struct afs_conn *aconn, afs_int32 acode,
-           struct VenusFid *afid, register struct vrequest *areq, int op,
+afs_Analyze(struct afs_conn *aconn, afs_int32 acode,
+           struct VenusFid *afid, struct vrequest *areq, int op,
            afs_int32 locktype, struct cell *cellp)
 {
     afs_int32 i;
index 7c5633576c104e6b79f090100f47da5aded27828..539070f002808af71b719bef4931bd391c25810b 100644 (file)
@@ -32,7 +32,7 @@ afs_rwlock_t afs_xaxs;
 struct axscache *
 afs_SlowFindAxs(struct axscache **cachep, afs_int32 id)
 {
-    register struct axscache *i, *j;
+    struct axscache *i, *j;
 
     j = (*cachep);
     i = j->next;
index 14f3454912a3aa6e1793dda9817f4f32ebba3522..f21608783096e6421c4d1217eceb1ef61c7d065f 100644 (file)
@@ -101,15 +101,15 @@ static afs_int32 timecounter;
 
 /* Prototypes for static routines */
 static struct buffer *afs_newslot(struct dcache *adc, afs_int32 apage,
-                                 register struct buffer *lp);
+                                 struct buffer *lp);
 
 static int dinit_flag = 0;
 void
 DInit(int abuffers)
 {
     /* Initialize the venus buffer system. */
-    register int i;
-    register struct buffer *tb;
+    int i;
+    struct buffer *tb;
 
     AFS_STATCNT(DInit);
     if (dinit_flag)
@@ -145,10 +145,10 @@ DInit(int abuffers)
 }
 
 void *
-DRead(register struct dcache *adc, register int page)
+DRead(struct dcache *adc, int page)
 {
     /* Read a page from the disk. */
-    register struct buffer *tb, *tb2;
+    struct buffer *tb, *tb2;
     struct osi_file *tfile;
     int code;
 
@@ -174,7 +174,7 @@ DRead(register struct dcache *adc, register int page)
            ReleaseWriteLock(&tb->lock);
            return tb->data;
        } else {
-           register struct buffer **bufhead;
+           struct buffer **bufhead;
            bufhead = &(phTable[pHash(adc->index, page)]);
            while ((tb2 = tb->hashNext)) {
                if (bufmatch(tb2)) {
@@ -245,10 +245,10 @@ DRead(register struct dcache *adc, register int page)
 }
 
 static void
-FixupBucket(register struct buffer *ap)
+FixupBucket(struct buffer *ap)
 {
-    register struct buffer **lp, *tp;
-    register int i;
+    struct buffer **lp, *tp;
+    int i;
     /* first try to get it out of its current hash bucket, in which it
      * might not be */
     AFS_STATCNT(FixupBucket);
@@ -270,12 +270,12 @@ FixupBucket(register struct buffer *ap)
 
 /* lp is pointer to a fairly-old buffer */
 static struct buffer *
-afs_newslot(struct dcache *adc, afs_int32 apage, register struct buffer *lp)
+afs_newslot(struct dcache *adc, afs_int32 apage, struct buffer *lp)
 {
     /* Find a usable buffer slot */
-    register afs_int32 i;
+    afs_int32 i;
     afs_int32 lt = 0;
-    register struct buffer *tp;
+    struct buffer *tp;
     struct osi_file *tfile;
 
     AFS_STATCNT(afs_newslot);
@@ -379,9 +379,9 @@ DRelease(void *loc, int flag)
 {
     /* Release a buffer, specifying whether or not the buffer has been
      * modified by the locker. */
-    register struct buffer *bp = (struct buffer *)loc;
-    register int index;
-    register struct buffer *tp;
+    struct buffer *bp = (struct buffer *)loc;
+    int index;
+    struct buffer *tp;
 
     AFS_STATCNT(DRelease);
     if (!bp)
@@ -407,11 +407,11 @@ DRelease(void *loc, int flag)
 }
 
 int
-DVOffset(register void *ap)
+DVOffset(void *ap)
 {
     /* Return the byte within a file represented by a buffer pointer. */
-    register int index;
-    register struct buffer *tp;
+    int index;
+    struct buffer *tp;
     AFS_STATCNT(DVOffset);
     /* look for buffer by scanning Unix buffers for appropriate address */
     /* see comment in DRelease about the meaning of ap/bp */
@@ -444,9 +444,9 @@ DVOffset(register void *ap)
 void
 DZap(struct dcache *adc)
 {
-    register int i;
+    int i;
     /* Destroy all buffers pertaining to a particular fid. */
-    register struct buffer *tb;
+    struct buffer *tb;
 
     AFS_STATCNT(DZap);
     ObtainReadLock(&afs_bufferLock);
@@ -504,8 +504,8 @@ void
 DFlush(void)
 {
     /* Flush all the modified buffers. */
-    register int i;
-    register struct buffer *tb;
+    int i;
+    struct buffer *tb;
 
     AFS_STATCNT(DFlush);
     tb = Buffers;
@@ -538,10 +538,10 @@ DFlush(void)
 }
 
 void *
-DNew(register struct dcache *adc, register int page)
+DNew(struct dcache *adc, int page)
 {
     /* Same as read, only do *not* even try to read the page, since it probably doesn't exist. */
-    register struct buffer *tb;
+    struct buffer *tb;
     AFS_STATCNT(DNew);
     ObtainWriteLock(&afs_bufferLock, 264);
     if ((tb = afs_newslot(adc, page, NULL)) == 0) {
@@ -567,7 +567,7 @@ DNew(register struct dcache *adc, register int page)
 void
 shutdown_bufferpackage(void)
 {
-    register struct buffer *tp;
+    struct buffer *tp;
     int i;
 
     AFS_STATCNT(shutdown_bufferpackage);
index dbda01b07fa26b0388f797b4d794a2f4ab8021a2..e5f2487776c2c4b00925126908f6b948b1edc91c 100644 (file)
@@ -131,8 +131,8 @@ extern afs_rwlock_t afs_xcbhash;
  * times we go back and forth from caching to bypass.
  */
 void
-afs_TransitionToBypass(register struct vcache *avc,
-                      register afs_ucred_t *acred, int aflags)
+afs_TransitionToBypass(struct vcache *avc,
+                      afs_ucred_t *acred, int aflags)
 {
 
     afs_int32 code;
@@ -210,8 +210,8 @@ done:
  * the number of times we go back and forth from caching to bypass.
  */
 void
-afs_TransitionToCaching(register struct vcache *avc,
-                       register afs_ucred_t *acred,
+afs_TransitionToCaching(struct vcache *avc,
+                       afs_ucred_t *acred,
                        int aflags)
 {
     int resetDesire = 0;
@@ -301,9 +301,9 @@ afs_TransitionToCaching(register struct vcache *avc,
 
 /* no-cache prefetch routine */
 static afs_int32
-afs_NoCacheFetchProc(register struct rx_call *acall, 
-                     register struct vcache *avc, 
-                                        register uio_t *auio, 
+afs_NoCacheFetchProc(struct rx_call *acall, 
+                     struct vcache *avc, 
+                                        uio_t *auio, 
                      afs_int32 release_pages,
                     afs_int32 size)
 {
@@ -464,8 +464,8 @@ done:
 
 /* dispatch a no-cache read request */
 afs_int32
-afs_ReadNoCache(register struct vcache *avc, 
-               register struct nocache_read_request *bparms,
+afs_ReadNoCache(struct vcache *avc, 
+               struct nocache_read_request *bparms,
                afs_ucred_t *acred)
 {
     afs_int32 code;
@@ -542,9 +542,9 @@ cleanup:
 
 /* Cannot have static linkage--called from BPrefetch (afs_daemons) */
 afs_int32
-afs_PrefetchNoCache(register struct vcache *avc, 
-                   register afs_ucred_t *acred,
-                   register struct nocache_read_request *bparms)
+afs_PrefetchNoCache(struct vcache *avc, 
+                   afs_ucred_t *acred,
+                   struct nocache_read_request *bparms)
 {
     uio_t *auio;
     struct iovec *iovecp;
@@ -554,7 +554,7 @@ afs_PrefetchNoCache(register struct vcache *avc,
     afs_int32 length_hi, bytes, locked;
 #endif
        
-    register struct afs_conn *tc;
+    struct afs_conn *tc;
     afs_int32 i;
     struct rx_call *tcall;
     struct tlocal1 {
index 2c69218b8986379f4214036eb691fc9da2c083e4..ddc9a4a4475fc1ecc9948debe8b6a3e01f05a57f 100644 (file)
@@ -112,8 +112,8 @@ extern int cache_bypass_prefetch;
 extern int cache_bypass_strategy;
 extern int cache_bypass_threshold;
 
-void afs_TransitionToBypass(register struct vcache *, register afs_ucred_t *, int);
-void afs_TransitionToCaching(register struct vcache *, register afs_ucred_t *, int);
+void afs_TransitionToBypass(struct vcache *, afs_ucred_t *, int);
+void afs_TransitionToCaching(struct vcache *, afs_ucred_t *, int);
 
 /* Cache strategy permits vnode transition between caching and no-cache--
  * currently, this means LARGE_FILES_BYPASS_CACHE.  Currently, no pioctl permits
@@ -139,12 +139,12 @@ void afs_TransitionToCaching(register struct vcache *, register afs_ucred_t *, i
 
 /* dispatch a no-cache read request */
 afs_int32
-afs_ReadNoCache(register struct vcache *avc, register struct nocache_read_request *bparms, 
+afs_ReadNoCache(struct vcache *avc, struct nocache_read_request *bparms, 
                afs_ucred_t *acred);
 
 /* no-cache prefetch routine */
 afs_int32
-afs_PrefetchNoCache(register struct vcache *avc, register afs_ucred_t *acred,
+afs_PrefetchNoCache(struct vcache *avc, afs_ucred_t *acred,
                        struct nocache_read_request *bparms);
 
 
index bcdd5ad2c37dc0dced66730d1a80136625e89103..c00931dec11f1fa13d5a80a015babff30537f8da 100644 (file)
@@ -1194,7 +1194,7 @@ afs_syscall_call(long parm, long parm2, long parm3,
 int
 afs_CheckInit(void)
 {
-    register int code = 0;
+    int code = 0;
 
     AFS_STATCNT(afs_CheckInit);
     if (afs_initState <= 100)
index aab781566e077f3adff39f9c4ec88c44d57b9e18..bdfb4084e05116291451171a57f9212ce4aae9f0 100644 (file)
@@ -101,8 +101,8 @@ SRXAFSCB_GetCE(struct rx_call *a_call, afs_int32 a_index,
               struct AFSDBCacheEntry *a_result)
 {
 
-    register int i;            /*Loop variable */
-    register struct vcache *tvc;       /*Ptr to current cache entry */
+    int i;             /*Loop variable */
+    struct vcache *tvc;        /*Ptr to current cache entry */
     int code;                  /*Return code */
     XSTATS_DECLS;
 
@@ -187,8 +187,8 @@ int
 SRXAFSCB_GetCE64(struct rx_call *a_call, afs_int32 a_index,
                 struct AFSDBCacheEntry64 *a_result)
 {
-    register int i;            /*Loop variable */
-    register struct vcache *tvc;       /*Ptr to current cache entry */
+    int i;             /*Loop variable */
+    struct vcache *tvc;        /*Ptr to current cache entry */
     int code;                  /*Return code */
     XSTATS_DECLS;
 
@@ -404,11 +404,11 @@ Appears to need to be called with GLOCK held, as the icl_Event4 stuff asserts ot
  *------------------------------------------------------------------------*/
 
 static int
-ClearCallBack(register struct rx_connection *a_conn,
-             register struct AFSFid *a_fid)
+ClearCallBack(struct rx_connection *a_conn,
+             struct AFSFid *a_fid)
 {
-    register struct vcache *tvc;
-    register int i;
+    struct vcache *tvc;
+    int i;
     struct VenusFid localFid;
     struct volume *tv;
 #ifdef AFS_DARWIN80_ENV
@@ -637,12 +637,12 @@ loop2:
  *------------------------------------------------------------------------*/
 
 int
-SRXAFSCB_CallBack(struct rx_call *a_call, register struct AFSCBFids *a_fids,
+SRXAFSCB_CallBack(struct rx_call *a_call, struct AFSCBFids *a_fids,
                  struct AFSCBs *a_callbacks)
 {
-    register int i;            /*Loop variable */
+    int i;             /*Loop variable */
     struct AFSFid *tfid;       /*Ptr to current fid */
-    register struct rx_connection *tconn;      /*Call's connection */
+    struct rx_connection *tconn;       /*Call's connection */
     int code = 0;
     XSTATS_DECLS;
 
@@ -734,10 +734,10 @@ SRXAFSCB_Probe(struct rx_call *a_call)
 int
 SRXAFSCB_InitCallBackState(struct rx_call *a_call)
 {
-    register int i;
-    register struct vcache *tvc;
-    register struct rx_connection *tconn;
-    register struct rx_peer *peer;
+    int i;
+    struct vcache *tvc;
+    struct rx_connection *tconn;
+    struct rx_peer *peer;
     struct server *ts;
     int code = 0;
     XSTATS_DECLS;
@@ -780,8 +780,8 @@ SRXAFSCB_InitCallBackState(struct rx_call *a_call)
 
        /* find any volumes residing on this server and flush their state */
        {
-           register struct volume *tv;
-           register int j;
+           struct volume *tv;
+           int j;
 
            for (i = 0; i < NVOLS; i++)
                for (tv = afs_volumes[i]; tv; tv = tv->next) {
@@ -875,7 +875,7 @@ SRXAFSCB_GetXStats(struct rx_call *a_call, afs_int32 a_clientVersionNum,
                   afs_int32 a_collectionNumber, afs_int32 * a_srvVersionNumP,
                   afs_int32 * a_timeP, AFSCB_CollData * a_dataP)
 {
-    register int code;         /*Return value */
+    int code;          /*Return value */
     afs_int32 *dataBuffP;      /*Ptr to data to be returned */
     afs_int32 dataBytes;       /*Bytes in data buffer */
     XSTATS_DECLS;
@@ -1736,8 +1736,8 @@ SRXAFSCB_GetDE(struct rx_call *a_call, afs_int32 a_index, afs_int32 *addr,
 { /*SRXAFSCB_GetDE*/
     int code = 0;                              /*Return code*/
 #if 0 && defined(AFS_LINUX24_ENV)
-    register int i;                    /*Loop variable*/
-    register struct vcache *tvc = afs_globalVp;
+    int i;                     /*Loop variable*/
+    struct vcache *tvc = afs_globalVp;
     struct dentry *dentry;
     struct list_head *cur, *head = &(AFSTOI(tvc))->i_dentry;
 
index fe49cc7bd7d4b0e8afd96b2eb2d77e23dc2a755f..ccc5743f81b91bd2d64f4bf38e07bfa84e658737 100644 (file)
@@ -188,11 +188,11 @@ void
 afs_CheckCallbacks(unsigned int secs)
 {
     struct vcache *tvc;
-    register struct afs_q *tq;
+    struct afs_q *tq;
     struct afs_q *uq;
     afs_uint32 now;
     struct volume *tvp;
-    register int safety;
+    int safety;
 
     ObtainWriteLock(&afs_xcbhash, 85); /* pretty likely I'm going to remove something */
     now = osi_Time();
@@ -296,8 +296,8 @@ afs_CheckCallbacks(unsigned int secs)
 void
 afs_FlushCBs(void)
 {
-    register int i;
-    register struct vcache *tvc;
+    int i;
+    struct vcache *tvc;
 
     ObtainWriteLock(&afs_xcbhash, 86); /* pretty likely I'm going to remove something */
 
@@ -326,8 +326,8 @@ afs_FlushCBs(void)
 void
 afs_FlushServerCBs(struct server *srvp)
 {
-    register int i;
-    register struct vcache *tvc;
+    int i;
+    struct vcache *tvc;
 
     ObtainWriteLock(&afs_xcbhash, 86); /* pretty likely I'm going to remove something */
 
@@ -356,7 +356,7 @@ afs_FlushServerCBs(struct server *srvp)
 void
 afs_InitCBQueue(int doLockInit)
 {
-    register int i;
+    int i;
 
     memset(cbHashT, 0, CBHTSIZE * sizeof(struct bucket));
     for (i = 0; i < CBHTSIZE; i++) {
index 06f265bec566de187cc5b0caa7f79537c19691cc..ffd05ffc9fc2aaee256e786fcb81b7dfbb041224 100644 (file)
@@ -58,15 +58,15 @@ struct afs_cacheOps {
     int (*fwrite) (struct osi_file * fp, afs_int32 offset, void *buf,
                   afs_int32 len);
     int (*close) (struct osi_file * fp);
-    int (*vread) (register struct vcache * avc, struct uio * auio,
+    int (*vread) (struct vcache * avc, struct uio * auio,
                  afs_ucred_t * acred, daddr_t albn, struct buf ** abpp,
                  int noLock);
-    int (*vwrite) (register struct vcache * avc, struct uio * auio, int aio,
+    int (*vwrite) (struct vcache * avc, struct uio * auio, int aio,
                   afs_ucred_t * acred, int noLock);
-    struct dcache *(*GetDSlot) (register afs_int32 aslot,
-                               register struct dcache * tmpdc);
+    struct dcache *(*GetDSlot) (afs_int32 aslot,
+                               struct dcache * tmpdc);
     struct volume *(*GetVolSlot) (void);
-    int (*HandleLink) (register struct vcache * avc, struct vrequest * areq);
+    int (*HandleLink) (struct vcache * avc, struct vrequest * areq);
 };
 
 /* Ideally we should have used consistent naming - like COP_OPEN, COP_TRUNCATE, etc. */
index 4788d09609d65fb38bd703f81ba0e8742d00855c..9ac103aafa5d129320a109e025ac1a2468a62a8f 100644 (file)
@@ -100,7 +100,7 @@ afs_pickSecurityObject(struct afs_conn *conn, int *secLevel)
  * @return The conn struct, or NULL.
  */
 struct afs_conn *
-afs_Conn(register struct VenusFid *afid, register struct vrequest *areq,
+afs_Conn(struct VenusFid *afid, struct vrequest *areq,
         afs_int32 locktype)
 {
     u_short fsport = AFS_FSPORT;
@@ -393,12 +393,12 @@ afs_ConnByHost(struct server *aserver, unsigned short aport, afs_int32 acell,
  */
 struct afs_conn *
 afs_ConnByMHosts(struct server *ahosts[], unsigned short aport,
-                afs_int32 acell, register struct vrequest *areq,
+                afs_int32 acell, struct vrequest *areq,
                 afs_int32 locktype)
 {
-    register afs_int32 i;
-    register struct afs_conn *tconn;
-    register struct server *ts;
+    afs_int32 i;
+    struct afs_conn *tconn;
+    struct server *ts;
 
     /* try to find any connection from the set */
     AFS_STATCNT(afs_ConnByMHosts);
@@ -421,7 +421,7 @@ afs_ConnByMHosts(struct server *ahosts[], unsigned short aport,
  * @param locktype
  */
 void
-afs_PutConn(register struct afs_conn *ac, afs_int32 locktype)
+afs_PutConn(struct afs_conn *ac, afs_int32 locktype)
 {
     AFS_STATCNT(afs_PutConn);
     ac->refCount--;
index 84f596e7e8f9934a621e7829b6a478de18fab1d7..be5b8ded2190e74b0f5b72552a5628026c351c1a 100644 (file)
@@ -437,9 +437,9 @@ afs_CheckRootVolume(void)
 
 /* ptr_parm 0 is the pathname, size_parm 0 to the fetch is the chunk number */
 static void
-BPath(register struct brequest *ab)
+BPath(struct brequest *ab)
 {
-    register struct dcache *tdc = NULL;
+    struct dcache *tdc = NULL;
     struct vcache *tvc = NULL;
     struct vnode *tvn = NULL;
 #ifdef AFS_LINUX22_ENV
@@ -494,10 +494,10 @@ BPath(register struct brequest *ab)
  * size_parm 1 is true iff we should release the dcache entry here.
  */
 static void
-BPrefetch(register struct brequest *ab)
+BPrefetch(struct brequest *ab)
 {
-    register struct dcache *tdc;
-    register struct vcache *tvc;
+    struct dcache *tdc;
+    struct vcache *tvc;
     afs_size_t offset, len, abyte, totallen = 0;
     struct vrequest treq;
 
@@ -535,7 +535,7 @@ BPrefetch(register struct brequest *ab)
 
 #if defined(AFS_CACHE_BYPASS)
 static void
-BPrefetchNoCache(register struct brequest *ab)
+BPrefetchNoCache(struct brequest *ab)
 {
     struct vrequest treq;
     afs_size_t len;
@@ -551,10 +551,10 @@ BPrefetchNoCache(register struct brequest *ab)
 #endif
 
 static void
-BStore(register struct brequest *ab)
+BStore(struct brequest *ab)
 {
-    register struct vcache *tvc;
-    register afs_int32 code;
+    struct vcache *tvc;
+    afs_int32 code;
     struct vrequest treq;
 #if defined(AFS_SGI_ENV)
     struct cred *tmpcred;
@@ -601,7 +601,7 @@ BStore(register struct brequest *ab)
 
 /* release a held request buffer */
 void
-afs_BRelease(register struct brequest *ab)
+afs_BRelease(struct brequest *ab)
 {
 
     AFS_STATCNT(afs_BRelease);
@@ -625,13 +625,13 @@ afs_BBusy(void)
 }
 
 struct brequest *
-afs_BQueue(register short aopcode, register struct vcache *avc,
+afs_BQueue(short aopcode, struct vcache *avc,
           afs_int32 dontwait, afs_int32 ause, afs_ucred_t *acred,
           afs_size_t asparm0, afs_size_t asparm1, void *apparm0,
           void *apparm1, void *apparm2)
 {
-    register int i;
-    register struct brequest *tb;
+    int i;
+    struct brequest *tb;
 
     AFS_STATCNT(afs_BQueue);
     ObtainWriteLock(&afs_xbrs, 296);
index e37c81215d6be5e38b9ab7d56e11c3872ff67438..2f5410720b0aa52ee8ceb34bfafaffd3cfdb62f7 100644 (file)
@@ -309,8 +309,8 @@ afs_DCWhichBucket(afs_int32 phase, afs_int32 bucket)
  */
 
 void
-afs_StoreWarn(register afs_int32 acode, afs_int32 avolume,
-             register afs_int32 aflags)
+afs_StoreWarn(afs_int32 acode, afs_int32 avolume,
+             afs_int32 aflags)
 {
     static char problem_fmt[] =
        "afs: failed to store file in volume %d (%s)\n";
@@ -500,9 +500,9 @@ afs_CacheTruncateDaemon(void)
  */
 
 void
-afs_AdjustSize(register struct dcache *adc, register afs_int32 newSize)
+afs_AdjustSize(struct dcache *adc, afs_int32 newSize)
 {
-    register afs_int32 oldSize;
+    afs_int32 oldSize;
 
     AFS_STATCNT(afs_AdjustSize);
 
@@ -555,7 +555,7 @@ afs_GetDownD(int anumber, int *aneedSpace, afs_int32 buckethint)
     afs_int32 i, j;
     afs_hyper_t vtime;
     int skip, phase;
-    register struct vcache *tvc;
+    struct vcache *tvc;
     afs_uint32 victims[MAXATONCE];
     struct dcache *victimDCs[MAXATONCE];
     afs_hyper_t victimTimes[MAXATONCE];        /* youngest (largest LRU time) first */
@@ -957,7 +957,7 @@ afs_HashOutDCache(struct dcache *adc, int zap)
  *     (in write mode).
  */
 void
-afs_FlushDCache(register struct dcache *adc)
+afs_FlushDCache(struct dcache *adc)
 {
     AFS_STATCNT(afs_FlushDCache);
     /*
@@ -998,7 +998,7 @@ afs_FlushDCache(register struct dcache *adc)
  * \note Environment: called with afs_xdcache lock write-locked.
  */
 static void
-afs_FreeDCache(register struct dcache *adc)
+afs_FreeDCache(struct dcache *adc)
 {
     /* Thread on free list, update free list count and mark entry as
      * freed in its indexFlags element.  Also, ensure DCache entry gets
@@ -1037,9 +1037,9 @@ afs_FreeDCache(register struct dcache *adc)
  */
 
 static void
-afs_DiscardDCache(register struct dcache *adc)
+afs_DiscardDCache(struct dcache *adc)
 {
-    register afs_int32 size;
+    afs_int32 size;
 
     AFS_STATCNT(afs_DiscardDCache);
 
@@ -1073,9 +1073,9 @@ afs_DiscardDCache(register struct dcache *adc)
 static void
 afs_FreeDiscardedDCache(void)
 {
-    register struct dcache *tdc;
-    register struct osi_file *tfile;
-    register afs_int32 size;
+    struct dcache *tdc;
+    struct osi_file *tfile;
+    afs_int32 size;
 
     AFS_STATCNT(afs_FreeDiscardedDCache);
 
@@ -1260,7 +1260,7 @@ afs_RefDCache(struct dcache *adc)
  *     Nothing interesting.
  */
 int
-afs_PutDCache(register struct dcache *adc)
+afs_PutDCache(struct dcache *adc)
 {
     AFS_STATCNT(afs_PutDCache);
     ObtainWriteLock(&adc->tlock, 276);
@@ -1286,11 +1286,11 @@ afs_PutDCache(register struct dcache *adc)
  *     Both pvnLock and lock are write held.
  */
 void
-afs_TryToSmush(register struct vcache *avc, afs_ucred_t *acred, int sync)
+afs_TryToSmush(struct vcache *avc, afs_ucred_t *acred, int sync)
 {
-    register struct dcache *tdc;
-    register int index;
-    register int i;
+    struct dcache *tdc;
+    int index;
+    int i;
     AFS_STATCNT(afs_TryToSmush);
     afs_Trace2(afs_iclSetp, CM_TRACE_TRYTOSMUSH, ICL_TYPE_POINTER, avc,
               ICL_TYPE_OFFSET, ICL_HANDLE_OFFSET(avc->f.m.Length));
@@ -1439,11 +1439,11 @@ afs_DCacheMissingChunks(struct vcache *avc)
  */
 
 struct dcache *
-afs_FindDCache(register struct vcache *avc, afs_size_t abyte)
+afs_FindDCache(struct vcache *avc, afs_size_t abyte)
 {
     afs_int32 chunk;
-    register afs_int32 i, index;
-    register struct dcache *tdc = NULL;
+    afs_int32 i, index;
+    struct dcache *tdc = NULL;
 
     AFS_STATCNT(afs_FindDCache);
     chunk = AFS_CHUNK(abyte);
@@ -1618,13 +1618,13 @@ updateV2DC(int lockVc, struct vcache *v, struct dcache *d, int src)
 
 /* avc - Write-locked unless aflags & 1 */
 struct dcache *
-afs_GetDCache(register struct vcache *avc, afs_size_t abyte,
-             register struct vrequest *areq, afs_size_t * aoffset,
+afs_GetDCache(struct vcache *avc, afs_size_t abyte,
+             struct vrequest *areq, afs_size_t * aoffset,
              afs_size_t * alen, int aflags)
 {
-    register afs_int32 i, code, shortcut;
+    afs_int32 i, code, shortcut;
 #if    defined(AFS_AIX32_ENV) || defined(AFS_SGI_ENV)
-    register afs_int32 adjustsize = 0;
+    afs_int32 adjustsize = 0;
 #endif
     int setLocks;
     afs_int32 index;
@@ -1634,9 +1634,9 @@ afs_GetDCache(register struct vcache *avc, afs_size_t abyte,
     afs_size_t Position = 0;
     afs_int32 size, tlen;      /* size of segment to transfer */
     struct afs_FetchOutput *tsmall = 0;
-    register struct dcache *tdc;
-    register struct osi_file *file;
-    register struct afs_conn *tc;
+    struct dcache *tdc;
+    struct osi_file *file;
+    struct afs_conn *tc;
     int downDCount = 0;
     struct server *newCallback = NULL;
     char setNewCallback;
@@ -2477,8 +2477,8 @@ afs_GetDCache(register struct vcache *avc, afs_size_t abyte,
 void
 afs_WriteThroughDSlots(void)
 {
-    register struct dcache *tdc;
-    register afs_int32 i, touchedit = 0;
+    struct dcache *tdc;
+    afs_int32 i, touchedit = 0;
 
     struct afs_q DirtyQ, *tq;
 
@@ -2570,9 +2570,9 @@ afs_WriteThroughDSlots(void)
  */
 
 struct dcache *
-afs_MemGetDSlot(register afs_int32 aslot, register struct dcache *tmpdc)
+afs_MemGetDSlot(afs_int32 aslot, struct dcache *tmpdc)
 {
-    register struct dcache *tdc;
+    struct dcache *tdc;
     int existing = 0;
 
     AFS_STATCNT(afs_MemGetDSlot);
@@ -2660,10 +2660,10 @@ unsigned int last_error = 0, lasterrtime = 0;
  *     afs_xdcache lock write-locked.
  */
 struct dcache *
-afs_UFSGetDSlot(register afs_int32 aslot, register struct dcache *tmpdc)
+afs_UFSGetDSlot(afs_int32 aslot, struct dcache *tmpdc)
 {
-    register afs_int32 code;
-    register struct dcache *tdc;
+    afs_int32 code;
+    struct dcache *tdc;
     int existing = 0;
     int entryok;
 
@@ -2794,9 +2794,9 @@ afs_UFSGetDSlot(register afs_int32 aslot, register struct dcache *tmpdc)
  */
 
 int
-afs_WriteDCache(register struct dcache *adc, int atime)
+afs_WriteDCache(struct dcache *adc, int atime)
 {
-    register afs_int32 code;
+    afs_int32 code;
 
     if (cacheDiskType == AFS_FCACHE_TYPE_MEM)
        return 0;
@@ -2830,10 +2830,10 @@ afs_WriteDCache(register struct dcache *adc, int atime)
  *     Nothing interesting.
  */
 int
-afs_wakeup(register struct vcache *avc)
+afs_wakeup(struct vcache *avc)
 {
-    register int i;
-    register struct brequest *tb;
+    int i;
+    struct brequest *tb;
     tb = afs_brs;
     AFS_STATCNT(afs_wakeup);
     for (i = 0; i < NBRS; i++, tb++) {
@@ -2878,12 +2878,12 @@ afs_wakeup(register struct vcache *avc)
 int
 afs_InitCacheFile(char *afile, ino_t ainode)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 index;
     int fileIsBad;
     struct osi_file *tfile;
     struct osi_stat tstat;
-    register struct dcache *tdc;
+    struct dcache *tdc;
 
     AFS_STATCNT(afs_InitCacheFile);
     index = afs_stats_cmperf.cacheNumEntries;
@@ -3016,7 +3016,7 @@ afs_InitCacheFile(char *afile, ino_t ainode)
 void
 afs_dcacheInit(int afiles, int ablocks, int aDentries, int achunk, int aflags)
 {
-    register struct dcache *tdp;
+    struct dcache *tdp;
     int i;
     int code;
 
index 49f7d9990047fdc489ae4dabe8de59a8713ffbb2..53f9fa1558c4aa7f983521bb269149ed18933ac3 100644 (file)
@@ -205,7 +205,7 @@ et_to_sys_error(afs_int32 in)
 }
 
 void
-afs_CopyError(register struct vrequest *afrom, register struct vrequest *ato)
+afs_CopyError(struct vrequest *afrom, struct vrequest *ato)
 {
     int i = 0;
     AFS_STATCNT(afs_CopyError);
@@ -232,7 +232,7 @@ afs_CopyError(register struct vrequest *afrom, register struct vrequest *ato)
 }
 
 void
-afs_FinalizeReq(register struct vrequest *areq)
+afs_FinalizeReq(struct vrequest *areq)
 {
     int i = 0;
     AFS_STATCNT(afs_FinalizeReq);
index ffe6f1c47b1d333c1340236d55f4506097e2dc0e..5dcbc1a8bfd1a5e8078d62dae9ff937ed6cd8ccd 100644 (file)
@@ -19,7 +19,6 @@
 #undef kmem_free
 #undef mem_alloc
 #undef mem_free
-#undef register
 #endif /* AFS_ALPHA_ENV */
 #include "afsincludes.h"       /* Afs-based standard headers */
 #include "afs/afs_stats.h"     /* statistics */
index 4eaaee2996a9f87d09e8826fcfc4a49f96a0efd1..1310ce862133df0661a4b1d2a50e8e0457f81ba0 100644 (file)
@@ -126,7 +126,7 @@ Afscall_icl(long opcode, long p1, long p2, long p3, long p4, long *retval)
 #endif
 {
     afs_int32 *lp, elts, flags;
-    register afs_int32 code;
+    afs_int32 code;
     struct afs_icl_log *logp;
     struct afs_icl_set *setp;
 #if defined(AFS_SGI61_ENV) || defined(AFS_SUN57_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
@@ -397,12 +397,12 @@ afs_lock_t afs_icl_lock;
 
 /* exported routine: a 4 parameter event */
 int
-afs_icl_Event4(register struct afs_icl_set *setp, afs_int32 eventID,
+afs_icl_Event4(struct afs_icl_set *setp, afs_int32 eventID,
               afs_int32 lAndT, long p1, long p2, long p3, long p4)
 {
     afs_int32 mask;
-    register int i;
-    register afs_int32 tmask;
+    int i;
+    afs_int32 tmask;
     int ix;
 
     /* If things aren't init'ed yet (or the set is inactive), don't panic */
@@ -433,21 +433,21 @@ afs_icl_Event4(register struct afs_icl_set *setp, afs_int32 eventID,
  * Otherwise, could call afs_icl_Event4 directly.
  */
 int
-afs_icl_Event3(register struct afs_icl_set *setp, afs_int32 eventID,
+afs_icl_Event3(struct afs_icl_set *setp, afs_int32 eventID,
               afs_int32 lAndT, long p1, long p2, long p3)
 {
     return afs_icl_Event4(setp, eventID, lAndT, p1, p2, p3, (long)0);
 }
 
 int
-afs_icl_Event2(register struct afs_icl_set *setp, afs_int32 eventID,
+afs_icl_Event2(struct afs_icl_set *setp, afs_int32 eventID,
               afs_int32 lAndT, long p1, long p2)
 {
     return afs_icl_Event4(setp, eventID, lAndT, p1, p2, (long)0, (long)0);
 }
 
 int
-afs_icl_Event1(register struct afs_icl_set *setp, afs_int32 eventID,
+afs_icl_Event1(struct afs_icl_set *setp, afs_int32 eventID,
               afs_int32 lAndT, long p1)
 {
     return afs_icl_Event4(setp, eventID, lAndT, p1, (long)0, (long)0,
@@ -455,7 +455,7 @@ afs_icl_Event1(register struct afs_icl_set *setp, afs_int32 eventID,
 }
 
 int
-afs_icl_Event0(register struct afs_icl_set *setp, afs_int32 eventID,
+afs_icl_Event0(struct afs_icl_set *setp, afs_int32 eventID,
               afs_int32 lAndT)
 {
     return afs_icl_Event4(setp, eventID, lAndT, (long)0, (long)0, (long)0,
@@ -471,9 +471,9 @@ struct afs_icl_log *afs_icl_allLogs = 0;
  * Log must be write-locked.
  */
 static void
-afs_icl_GetLogSpace(register struct afs_icl_log *logp, afs_int32 minSpace)
+afs_icl_GetLogSpace(struct afs_icl_log *logp, afs_int32 minSpace)
 {
-    register unsigned int tsize;
+    unsigned int tsize;
 
     while (logp->logSize - logp->logElements <= minSpace) {
        /* eat a record */
@@ -496,7 +496,7 @@ afs_icl_AppendString(struct afs_icl_log *logp, char *astr)
 {
     char *op;                  /* ptr to char to write */
     int tc;
-    register int bib;          /* bytes in buffer */
+    int bib;           /* bytes in buffer */
 
     bib = 0;
     op = (char *)&(logp->datap[logp->firstFree]);
@@ -609,11 +609,11 @@ afs_icl_AppendOne(struct afs_icl_log *logp, int type, long parm)
  */
 
 void
-afs_icl_AppendRecord(register struct afs_icl_log *logp, afs_int32 op,
+afs_icl_AppendRecord(struct afs_icl_log *logp, afs_int32 op,
                     afs_int32 types, long p1, long p2, long p3, long p4)
 {
     int rsize;                 /* record size in longs */
-    register int tsize;                /* temp size */
+    int tsize;         /* temp size */
     osi_timeval_t tv;
     int t1, t2, t3, t4;
 
@@ -724,7 +724,7 @@ int
 afs_icl_CreateLogWithFlags(char *name, afs_int32 logSize, afs_uint32 flags,
                           struct afs_icl_log **outLogpp)
 {
-    register struct afs_icl_log *logp;
+    struct afs_icl_log *logp;
 
     /* add into global list under lock */
     ObtainWriteLock(&afs_icl_lock, 183);
@@ -775,7 +775,7 @@ afs_icl_CreateLogWithFlags(char *name, afs_int32 logSize, afs_uint32 flags,
  * find the record with cookie value cookie.
  */
 int
-afs_icl_CopyOut(register struct afs_icl_log *logp, afs_int32 * bufferp,
+afs_icl_CopyOut(struct afs_icl_log *logp, afs_int32 * bufferp,
                afs_int32 * bufSizep, afs_uint32 * cookiep,
                afs_int32 * flagsp)
 {
@@ -905,7 +905,7 @@ afs_icl_GetLogParms(struct afs_icl_log *logp, afs_int32 * maxSizep,
 
 /* hold and release logs */
 int
-afs_icl_LogHold(register struct afs_icl_log *logp)
+afs_icl_LogHold(struct afs_icl_log *logp)
 {
     ObtainWriteLock(&afs_icl_lock, 187);
     logp->refCount++;
@@ -915,7 +915,7 @@ afs_icl_LogHold(register struct afs_icl_log *logp)
 
 /* hold and release logs, called with lock already held */
 int
-afs_icl_LogHoldNL(register struct afs_icl_log *logp)
+afs_icl_LogHoldNL(struct afs_icl_log *logp)
 {
     logp->refCount++;
     return 0;
@@ -923,7 +923,7 @@ afs_icl_LogHoldNL(register struct afs_icl_log *logp)
 
 /* keep track of how many sets believe the log itself is allocated */
 int
-afs_icl_LogUse(register struct afs_icl_log *logp)
+afs_icl_LogUse(struct afs_icl_log *logp)
 {
     ObtainWriteLock(&logp->lock, 188);
     if (logp->setCount == 0) {
@@ -945,7 +945,7 @@ afs_icl_LogUse(register struct afs_icl_log *logp)
 
 /* decrement the number of real users of the log, free if possible */
 int
-afs_icl_LogFreeUse(register struct afs_icl_log *logp)
+afs_icl_LogFreeUse(struct afs_icl_log *logp)
 {
     ObtainWriteLock(&logp->lock, 189);
     if (--logp->setCount == 0) {
@@ -964,7 +964,7 @@ afs_icl_LogFreeUse(register struct afs_icl_log *logp)
 
 /* set the size of the log to 'logSize' */
 int
-afs_icl_LogSetSize(register struct afs_icl_log *logp, afs_int32 logSize)
+afs_icl_LogSetSize(struct afs_icl_log *logp, afs_int32 logSize)
 {
     ObtainWriteLock(&logp->lock, 190);
     if (!logp->datap) {
@@ -994,9 +994,9 @@ afs_icl_LogSetSize(register struct afs_icl_log *logp, afs_int32 logSize)
 
 /* free a log.  Called with afs_icl_lock locked. */
 int
-afs_icl_ZapLog(register struct afs_icl_log *logp)
+afs_icl_ZapLog(struct afs_icl_log *logp)
 {
-    register struct afs_icl_log **lpp, *tp;
+    struct afs_icl_log **lpp, *tp;
 
     for (lpp = &afs_icl_allLogs, tp = *lpp; tp; lpp = &tp->nextp, tp = *lpp) {
        if (tp == logp) {
@@ -1016,7 +1016,7 @@ afs_icl_ZapLog(register struct afs_icl_log *logp)
 
 /* do the release, watching for deleted entries */
 int
-afs_icl_LogRele(register struct afs_icl_log *logp)
+afs_icl_LogRele(struct afs_icl_log *logp)
 {
     ObtainWriteLock(&afs_icl_lock, 191);
     if (--logp->refCount == 0 && (logp->states & ICL_LOGF_DELETED)) {
@@ -1028,7 +1028,7 @@ afs_icl_LogRele(register struct afs_icl_log *logp)
 
 /* do the release, watching for deleted entries, log already held */
 int
-afs_icl_LogReleNL(register struct afs_icl_log *logp)
+afs_icl_LogReleNL(struct afs_icl_log *logp)
 {
     if (--logp->refCount == 0 && (logp->states & ICL_LOGF_DELETED)) {
        afs_icl_ZapLog(logp);   /* destroys logp's lock! */
@@ -1038,7 +1038,7 @@ afs_icl_LogReleNL(register struct afs_icl_log *logp)
 
 /* zero out the log */
 int
-afs_icl_ZeroLog(register struct afs_icl_log *logp)
+afs_icl_ZeroLog(struct afs_icl_log *logp)
 {
     ObtainWriteLock(&logp->lock, 192);
     logp->firstUsed = logp->firstFree = 0;
@@ -1050,7 +1050,7 @@ afs_icl_ZeroLog(register struct afs_icl_log *logp)
 
 /* free a log entry, and drop its reference count */
 int
-afs_icl_LogFree(register struct afs_icl_log *logp)
+afs_icl_LogFree(struct afs_icl_log *logp)
 {
     ObtainWriteLock(&logp->lock, 193);
     logp->states |= ICL_LOGF_DELETED;
@@ -1063,7 +1063,7 @@ afs_icl_LogFree(register struct afs_icl_log *logp)
 struct afs_icl_log *
 afs_icl_FindLog(char *name)
 {
-    register struct afs_icl_log *tp;
+    struct afs_icl_log *tp;
     ObtainWriteLock(&afs_icl_lock, 194);
     for (tp = afs_icl_allLogs; tp; tp = tp->nextp) {
        if (strcmp(tp->name, name) == 0) {
@@ -1081,8 +1081,8 @@ afs_icl_EnumerateLogs(int (*aproc)
                        (char *name, char *arock, struct afs_icl_log * tp),
                      char *arock)
 {
-    register struct afs_icl_log *tp;
-    register afs_int32 code;
+    struct afs_icl_log *tp;
+    afs_int32 code;
 
     code = 0;
     ObtainWriteLock(&afs_icl_lock, 195);
@@ -1124,8 +1124,8 @@ afs_icl_CreateSetWithFlags(char *name, struct afs_icl_log *baseLogp,
                           struct afs_icl_log *fatalLogp, afs_uint32 flags,
                           struct afs_icl_set **outSetpp)
 {
-    register struct afs_icl_set *setp;
-    register int i;
+    struct afs_icl_set *setp;
+    int i;
     afs_int32 states = ICL_DEFAULT_SET_STATES;
 
     ObtainWriteLock(&afs_icl_lock, 197);
@@ -1243,7 +1243,7 @@ afs_icl_GetEnable(struct afs_icl_set *setp, afs_int32 eventID, int *getValuep)
 
 /* hold and release event sets */
 int
-afs_icl_SetHold(register struct afs_icl_set *setp)
+afs_icl_SetHold(struct afs_icl_set *setp)
 {
     ObtainWriteLock(&afs_icl_lock, 201);
     setp->refCount++;
@@ -1253,11 +1253,11 @@ afs_icl_SetHold(register struct afs_icl_set *setp)
 
 /* free a set.  Called with afs_icl_lock locked */
 int
-afs_icl_ZapSet(register struct afs_icl_set *setp)
+afs_icl_ZapSet(struct afs_icl_set *setp)
 {
-    register struct afs_icl_set **lpp, *tp;
+    struct afs_icl_set **lpp, *tp;
     int i;
-    register struct afs_icl_log *tlp;
+    struct afs_icl_log *tlp;
 
     for (lpp = &afs_icl_allSets, tp = *lpp; tp; lpp = &tp->nextp, tp = *lpp) {
        if (tp == setp) {
@@ -1281,7 +1281,7 @@ afs_icl_ZapSet(register struct afs_icl_set *setp)
 
 /* do the release, watching for deleted entries */
 int
-afs_icl_SetRele(register struct afs_icl_set *setp)
+afs_icl_SetRele(struct afs_icl_set *setp)
 {
     ObtainWriteLock(&afs_icl_lock, 202);
     if (--setp->refCount == 0 && (setp->states & ICL_SETF_DELETED)) {
@@ -1293,7 +1293,7 @@ afs_icl_SetRele(register struct afs_icl_set *setp)
 
 /* free a set entry, dropping its reference count */
 int
-afs_icl_SetFree(register struct afs_icl_set *setp)
+afs_icl_SetFree(struct afs_icl_set *setp)
 {
     ObtainWriteLock(&setp->lock, 203);
     setp->states |= ICL_SETF_DELETED;
@@ -1306,7 +1306,7 @@ afs_icl_SetFree(register struct afs_icl_set *setp)
 struct afs_icl_set *
 afs_icl_FindSet(char *name)
 {
-    register struct afs_icl_set *tp;
+    struct afs_icl_set *tp;
     ObtainWriteLock(&afs_icl_lock, 204);
     for (tp = afs_icl_allSets; tp; tp = tp->nextp) {
        if (strcmp(tp->name, name) == 0) {
@@ -1323,7 +1323,7 @@ afs_icl_FindSet(char *name)
 int
 afs_icl_ZeroSet(struct afs_icl_set *setp)
 {
-    register int i;
+    int i;
     int code = 0;
     int tcode;
     struct afs_icl_log *logp;
@@ -1348,8 +1348,8 @@ afs_icl_EnumerateSets(int (*aproc)
                        (char *name, char *arock, struct afs_icl_log * tp),
                      char *arock)
 {
-    register struct afs_icl_set *tp, *np;
-    register afs_int32 code;
+    struct afs_icl_set *tp, *np;
+    afs_int32 code;
 
     code = 0;
     ObtainWriteLock(&afs_icl_lock, 205);
@@ -1371,7 +1371,7 @@ afs_icl_EnumerateSets(int (*aproc)
 int
 afs_icl_AddLogToSet(struct afs_icl_set *setp, struct afs_icl_log *newlogp)
 {
-    register int i;
+    int i;
     int code = -1;
 
     ObtainWriteLock(&setp->lock, 207);
index 1d35f459f945bf829c7ccc8e2f0359a2558ee48f..bc55c2506660409aa9838cd2aadba9aa2a1e4053 100644 (file)
@@ -100,8 +100,8 @@ afs_CacheInit(afs_int32 astatSize, afs_int32 afiles, afs_int32 ablocks,
              afs_int32 aflags, afs_int32 ninodes, afs_int32 nusers,
              afs_int32 dynamic_vcaches)
 {
-    register afs_int32 i;
-    register struct volume *tv;
+    afs_int32 i;
+    struct volume *tv;
 
     AFS_STATCNT(afs_CacheInit);
     /*
@@ -208,7 +208,7 @@ afs_CacheInit(afs_int32 astatSize, afs_int32 afiles, afs_int32 ablocks,
 void
 afs_ComputeCacheParms(void)
 {
-    register afs_int32 i;
+    afs_int32 i;
     afs_int32 afs_maxCacheDirty;
 
     /*
@@ -360,11 +360,11 @@ afs_InitVolumeInfo(char *afile)
  *
  */
 int
-afs_InitCacheInfo(register char *afile)
+afs_InitCacheInfo(char *afile)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct osi_stat tstat;
-    register struct osi_file *tfile;
+    struct osi_file *tfile;
     struct afs_fheader theader;
 #ifndef AFS_LINUX22_ENV
     struct vnode *filevp;
@@ -511,7 +511,7 @@ int afs_resourceinit_flag = 0;
 int
 afs_ResourceInit(int preallocs)
 {
-    register afs_int32 i;
+    afs_int32 i;
     static struct rx_securityClass *secobj;
 
     AFS_STATCNT(afs_ResourceInit);
index d227d536be9a92b412614088e94498825ee87188..773e87b02412ad2927cb049c4c49a0a6551b8c9a 100644 (file)
@@ -37,7 +37,7 @@ void Lock_ReleaseR(struct afs_lock *lock);
 void Lock_ReleaseW(struct afs_lock *lock);
 
 void
-Lock_Init(register struct afs_lock *lock)
+Lock_Init(struct afs_lock *lock)
 {
 
     AFS_STATCNT(Lock_Init);
@@ -55,7 +55,7 @@ Lock_Init(register struct afs_lock *lock)
 }
 \f
 void
-ObtainLock(register struct afs_lock *lock, int how,
+ObtainLock(struct afs_lock *lock, int how,
           unsigned int src_indicator)
 {
     switch (how) {
@@ -92,7 +92,7 @@ ObtainLock(register struct afs_lock *lock, int how,
 }
 
 void
-ReleaseLock(register struct afs_lock *lock, int how)
+ReleaseLock(struct afs_lock *lock, int how)
 {
     if (how == READ_LOCK) {
        if (!--lock->readers_reading && lock->wait_states) {
@@ -120,7 +120,7 @@ ReleaseLock(register struct afs_lock *lock, int how)
 }
 
 void
-Afs_Lock_Obtain(register struct afs_lock *lock, int how)
+Afs_Lock_Obtain(struct afs_lock *lock, int how)
 {
     osi_timeval_t tt1, tt2, et;
     afs_uint32 us;
@@ -189,7 +189,7 @@ Afs_Lock_Obtain(register struct afs_lock *lock, int how)
 
 /* release a lock, giving preference to new readers */
 void
-Afs_Lock_ReleaseR(register struct afs_lock *lock)
+Afs_Lock_ReleaseR(struct afs_lock *lock)
 {
     AFS_STATCNT(Lock_ReleaseR);
     AFS_ASSERT_GLOCK();
@@ -204,7 +204,7 @@ Afs_Lock_ReleaseR(register struct afs_lock *lock)
 
 /* release a lock, giving preference to new writers */
 void
-Afs_Lock_ReleaseW(register struct afs_lock *lock)
+Afs_Lock_ReleaseW(struct afs_lock *lock)
 {
     AFS_STATCNT(Lock_ReleaseW);
     AFS_ASSERT_GLOCK();
@@ -219,7 +219,7 @@ Afs_Lock_ReleaseW(register struct afs_lock *lock)
 
 /*
 Wait for some change in the lock status.
-void Lock_Wait(register struct afs_lock *lock)
+void Lock_Wait(struct afs_lock *lock)
 {
     AFS_STATCNT(Lock_Wait);
     if (lock->readers_reading || lock->excl_locked) return 1;
@@ -235,7 +235,7 @@ void Lock_Wait(register struct afs_lock *lock)
 
 /* release a write lock and sleep on an address, atomically */
 void
-afs_osi_SleepR(register char *addr, register struct afs_lock *alock)
+afs_osi_SleepR(char *addr, struct afs_lock *alock)
 {
     AFS_STATCNT(osi_SleepR);
     ReleaseReadLock(alock);
@@ -244,7 +244,7 @@ afs_osi_SleepR(register char *addr, register struct afs_lock *alock)
 
 /* release a write lock and sleep on an address, atomically */
 void
-afs_osi_SleepW(register char *addr, register struct afs_lock *alock)
+afs_osi_SleepW(char *addr, struct afs_lock *alock)
 {
     AFS_STATCNT(osi_SleepW);
     ReleaseWriteLock(alock);
@@ -253,7 +253,7 @@ afs_osi_SleepW(register char *addr, register struct afs_lock *alock)
 
 /* release a write lock and sleep on an address, atomically */
 void
-afs_osi_SleepS(register char *addr, register struct afs_lock *alock)
+afs_osi_SleepS(char *addr, struct afs_lock *alock)
 {
     AFS_STATCNT(osi_SleepS);
     ReleaseSharedLock(alock);
index 6912eeda83aec6e84435c92c281998c96e608e87..15d8520db5ff184e410ef6ed6274bfcaac317cc0 100644 (file)
@@ -36,10 +36,10 @@ afs_int32 afs_mariner = 0;
 afs_int32 afs_marinerHost = 0;
 
 int
-afs_AddMarinerName(register char *aname, register struct vcache *avc)
+afs_AddMarinerName(char *aname, struct vcache *avc)
 {
-    register int i;
-    register char *tp;
+    int i;
+    char *tp;
 
     AFS_STATCNT(afs_AddMarinerName);
     i = marinerPtr++;
@@ -55,9 +55,9 @@ afs_AddMarinerName(register char *aname, register struct vcache *avc)
 }
 
 char *
-afs_GetMariner(register struct vcache *avc)
+afs_GetMariner(struct vcache *avc)
 {
-    register int i;
+    int i;
     AFS_STATCNT(afs_GetMariner);
     for (i = 0; i < NMAR; i++) {
        if (marinerVCs[i] == avc) {
@@ -68,17 +68,17 @@ afs_GetMariner(register struct vcache *avc)
 }
 
 void
-afs_MarinerLogFetch(register struct vcache *avc, register afs_int32 off,
-                   register afs_int32 bytes, register afs_int32 idx)
+afs_MarinerLogFetch(struct vcache *avc, afs_int32 off,
+                   afs_int32 bytes, afs_int32 idx)
 {
     afs_MarinerLog("fetch$Fetching", avc);
 }                              /*afs_MarinerLogFetch */
 
 void
-afs_MarinerLog(register char *astring, register struct vcache *avc)
+afs_MarinerLog(char *astring, struct vcache *avc)
 {
     struct sockaddr_in taddr;
-    register char *tp, *tp1, *buf;
+    char *tp, *tp1, *buf;
     struct iovec dvec;
 
     AFS_STATCNT(afs_MarinerLog);
index 91d283996efd35959e49dbe8c552080febda55c0..f17529cb7dee70f491f71575751e4b53bb107ee9 100644 (file)
@@ -90,10 +90,10 @@ afs_MemCacheOpen(afs_dcache_id_t *ainode)
  * this routine simulates a read in the Memory Cache 
  */
 int
-afs_MemReadBlk(register struct osi_file *fP, int offset, void *dest,
+afs_MemReadBlk(struct osi_file *fP, int offset, void *dest,
               int size)
 {
-    register struct memCacheEntry *mceP = (struct memCacheEntry *)fP;
+    struct memCacheEntry *mceP = (struct memCacheEntry *)fP;
     int bytesRead;
 
     ObtainReadLock(&mceP->afs_memLock);
@@ -120,7 +120,7 @@ afs_MemReadBlk(register struct osi_file *fP, int offset, void *dest,
  * this routine simulates a readv in the Memory Cache 
  */
 int
-afs_MemReadvBlk(register struct memCacheEntry *mceP, int offset,
+afs_MemReadvBlk(struct memCacheEntry *mceP, int offset,
                struct iovec *iov, int nio, int size)
 {
     int i;
@@ -156,7 +156,7 @@ afs_MemReadvBlk(register struct memCacheEntry *mceP, int offset,
 int
 afs_MemReadUIO(afs_dcache_id_t *ainode, struct uio *uioP)
 {
-    register struct memCacheEntry *mceP =
+    struct memCacheEntry *mceP =
        (struct memCacheEntry *)afs_MemCacheOpen(ainode);
     int length = mceP->size - AFS_UIO_OFFSET(uioP);
     afs_int32 code;
@@ -170,10 +170,10 @@ afs_MemReadUIO(afs_dcache_id_t *ainode, struct uio *uioP)
 }
 
 int
-afs_MemWriteBlk(register struct osi_file *fP, int offset, void *src,
+afs_MemWriteBlk(struct osi_file *fP, int offset, void *src,
                int size)
 {
-    register struct memCacheEntry *mceP = (struct memCacheEntry *)fP;
+    struct memCacheEntry *mceP = (struct memCacheEntry *)fP;
     struct iovec tiov;
 
     tiov.iov_base = src;
@@ -183,7 +183,7 @@ afs_MemWriteBlk(register struct osi_file *fP, int offset, void *src,
 
 /*XXX: this extends a block arbitrarily to support big directories */
 int
-afs_MemWritevBlk(register struct memCacheEntry *mceP, int offset,
+afs_MemWritevBlk(struct memCacheEntry *mceP, int offset,
                 struct iovec *iov, int nio, int size)
 {
     int i;
@@ -230,7 +230,7 @@ afs_MemWritevBlk(register struct memCacheEntry *mceP, int offset,
 int
 afs_MemWriteUIO(afs_dcache_id_t *ainode, struct uio *uioP)
 {
-    register struct memCacheEntry *mceP =
+    struct memCacheEntry *mceP =
        (struct memCacheEntry *)afs_MemCacheOpen(ainode);
     afs_int32 code;
 
@@ -268,9 +268,9 @@ afs_MemWriteUIO(afs_dcache_id_t *ainode, struct uio *uioP)
 }
 
 int
-afs_MemCacheTruncate(register struct osi_file *fP, int size)
+afs_MemCacheTruncate(struct osi_file *fP, int size)
 {
-    register struct memCacheEntry *mceP = (struct memCacheEntry *)fP;
+    struct memCacheEntry *mceP = (struct memCacheEntry *)fP;
     AFS_STATCNT(afs_MemCacheTruncate);
 
     ObtainWriteLock(&mceP->afs_memLock, 313);
@@ -300,7 +300,7 @@ afs_MemCacheTruncate(register struct osi_file *fP, int size)
 void
 shutdown_memcache(void)
 {
-    register int index;
+    int index;
 
     if (cacheDiskType != AFS_FCACHE_TYPE_MEM)
        return;
index 3abc98212f890627443864fc68fd3fcc00b1f3c0..0f151e1600eb4cb91d32e59199c438cf48756f23 100644 (file)
@@ -47,10 +47,10 @@ extern struct afs_exporter *afs_nfsexporter;
 /* Creates an nfsclientpag structure for the (uid, host) pair if one doesn't 
  * exist. RefCount is incremented and it's time stamped. */
 static struct nfsclientpag *
-afs_GetNfsClientPag(register afs_int32 uid, register afs_uint32 host)
+afs_GetNfsClientPag(afs_int32 uid, afs_uint32 host)
 {
-    register struct nfsclientpag *np;
-    register afs_int32 i, now;
+    struct nfsclientpag *np;
+    afs_int32 i, now;
 
 #if defined(AFS_SGIMP_ENV)
     osi_Assert(ISAFS_GLOCK());
@@ -95,7 +95,7 @@ afs_GetNfsClientPag(register afs_int32 uid, register afs_uint32 host)
 It's also called whenever a unixuser structure belonging to the remote user associated with the nfsclientpag structure, np, is garbage collected. */
 void
 afs_PutNfsClientPag(np)
-     register struct nfsclientpag *np;
+     struct nfsclientpag *np;
 {
 #if defined(AFS_SGIMP_ENV)
     osi_Assert(ISAFS_GLOCK());
@@ -111,8 +111,8 @@ afs_PutNfsClientPag(np)
 static struct nfsclientpag *
 afs_FindNfsClientPag(afs_int32 uid, afs_uint32 host, afs_int32 pag)
 {
-    register struct nfsclientpag *np;
-    register afs_int32 i;
+    struct nfsclientpag *np;
+    afs_int32 i;
 
 #if defined(AFS_SGIMP_ENV)
     osi_Assert(ISAFS_GLOCK());
@@ -178,9 +178,9 @@ afs_nfsclient_reqhandler(struct afs_exporter *exporter,
                         afs_uint32 host, afs_int32 *pagparam,
                         struct afs_exporter **outexporter)
 {
-    register struct nfsclientpag *np, *tnp;
+    struct nfsclientpag *np, *tnp;
     extern struct unixuser *afs_FindUser(), *afs_GetUser();
-    register struct unixuser *au = 0;
+    struct unixuser *au = 0;
     afs_int32 uid, pag, code = 0;
 
     AFS_ASSERT_GLOCK();
@@ -417,7 +417,7 @@ done:
 /* It's called whenever a new unixuser structure is created for the remote
  * user associated with the nfsclientpag structure, np */
 void
-afs_nfsclient_hold(register struct nfsclientpag *np)
+afs_nfsclient_hold(struct nfsclientpag *np)
 {
 #if defined(AFS_SGIMP_ENV)
     osi_Assert(ISAFS_GLOCK());
@@ -429,7 +429,7 @@ afs_nfsclient_hold(register struct nfsclientpag *np)
 
 /* check if this exporter corresponds to the specified host */
 int
-afs_nfsclient_checkhost(register struct nfsclientpag *np, afs_uint32 host)
+afs_nfsclient_checkhost(struct nfsclientpag *np, afs_uint32 host)
 {
     if (np->type != EXP_NFS)
        return 0;
@@ -439,7 +439,7 @@ afs_nfsclient_checkhost(register struct nfsclientpag *np, afs_uint32 host)
 
 /* get the host for this exporter, or 0 if there is an error */
 afs_uint32
-afs_nfsclient_gethost(register struct nfsclientpag *np)
+afs_nfsclient_gethost(struct nfsclientpag *np)
 {
     if (np->type != EXP_NFS)
        return 0;
@@ -451,11 +451,11 @@ afs_nfsclient_gethost(register struct nfsclientpag *np)
  * user (inname contains the new sysname). In all cases, outname returns
  * the current sysname value for this remote user */
 int 
-afs_nfsclient_sysname(register struct nfsclientpag *np, char *inname, 
+afs_nfsclient_sysname(struct nfsclientpag *np, char *inname, 
                      char ***outname, int *num, int allpags)
 {
-    register struct nfsclientpag *tnp;
-    register afs_int32 i;
+    struct nfsclientpag *tnp;
+    afs_int32 i;
     char *cp;
     int count, t;
 #if defined(AFS_SGIMP_ENV)
@@ -506,11 +506,11 @@ afs_nfsclient_sysname(register struct nfsclientpag *np, char *inname,
  * "unixuser" structures associated with them (i.e. unixusercnt == 0) and
  * they haven't had any activity the last NFSCLIENTGC seconds */
 void
-afs_nfsclient_GC(register struct afs_exporter *exporter,
-                register afs_int32 pag)
+afs_nfsclient_GC(struct afs_exporter *exporter,
+                afs_int32 pag)
 {
-    register struct nfsclientpag *np, **tnp, *nnp;
-    register afs_int32 i, delflag;
+    struct nfsclientpag *np, **tnp, *nnp;
+    afs_int32 i, delflag;
        int count;
 
 #if defined(AFS_SGIMP_ENV)
@@ -541,7 +541,7 @@ afs_nfsclient_GC(register struct afs_exporter *exporter,
 
 
 int
-afs_nfsclient_stats(register struct afs_exporter *export)
+afs_nfsclient_stats(struct afs_exporter *export)
 {
     /* Nothing much to do here yet since most important stats are collected 
      * directly in the afs_exporter structure itself */
index d8d2c0eb93fa8e622c517a94d80a6db497dae692..00bf78c76c05ebea0c60be5fe29f3cefad7bfc43 100644 (file)
@@ -310,7 +310,7 @@ afs_nfs2_dispatcher(int type, afs_int32 which, char *argp,
 void
 afs_nfs2_smallfidder(struct nfsdiropres *dr)
 {
-    register fhandle_t *fhp = (fhandle_t *) & dr->dr_fhandle;
+    fhandle_t *fhp = (fhandle_t *) & dr->dr_fhandle;
     afs_int32 addr[2];
     struct vcache *vcp;
 
index ed018bc94d0726bac0d960cc7ed59d87c4a243b3..22f9786d4a639c79e8aa0236c45a126e885c2607 100644 (file)
@@ -238,7 +238,7 @@ afs_osi_SetTime(osi_timeval_t * atv)
        /* drop the setting of the clock for now. spl7 is not
         * known on hpux11.22
         */
-       register ulong_t s;
+       ulong_t s;
        struct timeval t;
        t.tv_sec = atv->tv_sec;
        t.tv_usec = atv->tv_usec;
@@ -250,7 +250,7 @@ afs_osi_SetTime(osi_timeval_t * atv)
     }
 #else
     {
-       register int s;
+       int s;
        s = splclock();
        time = *atv;
        (void)splx(s);
index d5282a19002553ffb9be2632615839b16b2b3dd9..1fdf31d1099a57956dd26dbeca7f85ee8307463f 100644 (file)
@@ -45,8 +45,8 @@ void *
 afs_osi_Alloc(size_t x)
 {
 #if !defined(AFS_LINUX20_ENV) && !defined(AFS_FBSD_ENV)
-    register struct osimem *tm = NULL;
-    register int size;
+    struct osimem *tm = NULL;
+    int size;
 #endif
 
     AFS_STATCNT(osi_Alloc);
@@ -78,8 +78,8 @@ afs_osi_Alloc(size_t x)
 void *
 afs_osi_Alloc_NoSleep(size_t x)
 {
-    register struct osimem *tm;
-    register int size;
+    struct osimem *tm;
+    int size;
 
     AFS_STATCNT(osi_Alloc);
     /* 0-length allocs may return NULL ptr from AFS_KALLOC, so we special-case
@@ -158,7 +158,7 @@ osi_FreeSmallSpace(void *adata)
 void *
 osi_AllocLargeSpace(size_t size)
 {
-    register struct osi_packet *tp;
+    struct osi_packet *tp;
 
     AFS_ASSERT_GLOCK();
 
@@ -194,7 +194,7 @@ osi_AllocLargeSpace(size_t size)
 void *
 osi_AllocSmallSpace(size_t size)
 {
-    register struct osi_packet *tp;
+    struct osi_packet *tp;
 
     AFS_STATCNT(osi_AllocSmallSpace);
     if (size > AFS_SMALLOCSIZ)
index fa38b0813348a4fff190041b127807651dbae3ef..97bfaf336df95adbdc2c6ca7b92eeef541f0dff4 100644 (file)
@@ -448,7 +448,7 @@ AddPag(afs_int32 aval, afs_ucred_t **credpp)
 
 
 int
-afs_InitReq(register struct vrequest *av, afs_ucred_t *acred)
+afs_InitReq(struct vrequest *av, afs_ucred_t *acred)
 {
 #if defined(AFS_LINUX26_ENV) && !defined(AFS_NONFSTRANS)
     int code;
index 3248f012a1ef7587dda309939101ad46759956b3..36b66102c42b054a398a15acd47adae29a6a1eb0 100644 (file)
 /* routine to make copy of uio structure in ainuio, using aoutvec for space */
 int
 afsio_copy(struct uio *ainuio, struct uio *aoutuio,
-          register struct iovec *aoutvec)
+          struct iovec *aoutvec)
 {
-    register int i;
-    register struct iovec *tvec;
+    int i;
+    struct iovec *tvec;
 
     AFS_STATCNT(afsio_copy);
     if (ainuio->afsio_iovcnt > AFS_MAXIOVCNT)
@@ -48,10 +48,10 @@ afsio_copy(struct uio *ainuio, struct uio *aoutuio,
 
 /* trim the uio structure to the specified size */
 int
-afsio_trim(register struct uio *auio, register afs_int32 asize)
+afsio_trim(struct uio *auio, afs_int32 asize)
 {
-    register int i;
-    register struct iovec *tv;
+    int i;
+    struct iovec *tv;
 
     AFS_STATCNT(afsio_trim);
     auio->afsio_resid = asize;
@@ -79,10 +79,10 @@ afsio_trim(register struct uio *auio, register afs_int32 asize)
 
 /* skip asize bytes in the current uio structure */
 int
-afsio_skip(register struct uio *auio, register afs_int32 asize)
+afsio_skip(struct uio *auio, afs_int32 asize)
 {
-    register struct iovec *tv; /* pointer to current iovec */
-    register int cnt;
+    struct iovec *tv;  /* pointer to current iovec */
+    int cnt;
 
     AFS_STATCNT(afsio_skip);
 #ifdef AFS_DARWIN80_ENV
index b79a3abb16137f720cdd1ea0ea624312a515db2e..5d5dd48882118eb7ec84f638e4e4ab640b3a1a13 100644 (file)
@@ -28,9 +28,9 @@ afs_osi_vget(struct vcache **avcpp, struct fid *afidp, struct vrequest *areqp)
 {
     struct VenusFid vfid;
     struct SmallFid Sfid;
-    register struct cell *tcell;
+    struct cell *tcell;
     struct vrequest treq;
-    register afs_int32 code = 0, cellindex;
+    afs_int32 code = 0, cellindex;
     afs_int32 ret;
 
     memcpy((char *)&Sfid, afidp->fid_data, SIZEOF_SMALLFID);
index e1e24ab23506ff4a1ccb3b37b81c7cdbea73150d..6627f4d4868cfdd2c6db9e625b7f870c95c3eb4c 100644 (file)
@@ -19,7 +19,7 @@
 #endif
 
 int
-osi_Active(register struct vcache *avc)
+osi_Active(struct vcache *avc)
 {
     AFS_STATCNT(osi_Active);
 #if defined(AFS_AIX_ENV) || defined(AFS_SUN5_ENV) || (AFS_LINUX20_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
@@ -45,7 +45,7 @@ osi_Active(register struct vcache *avc)
    us, of course).
 */
 void
-osi_FlushPages(register struct vcache *avc, afs_ucred_t *credp)
+osi_FlushPages(struct vcache *avc, afs_ucred_t *credp)
 {
 #ifdef AFS_FBSD70_ENV
     int vfslocked;
@@ -121,7 +121,7 @@ osi_FlushPages(register struct vcache *avc, afs_ucred_t *credp)
  * it is written to the file system. */
 
 void
-osi_FlushText_really(register struct vcache *vp)
+osi_FlushText_really(struct vcache *vp)
 {
     afs_hyper_t fdv;           /* version before which we'll flush */
 
index e08e8e7997bd44afd1ed9defb089732d39d8d2b3..103e0aa12e2625803f22712070453aecb3f51ccb 100644 (file)
@@ -94,8 +94,8 @@ afspag_SetPrimaryCell(char *acell)
 int
 afspag_PUnlog(char *ain, afs_int32 ainSize, afs_ucred_t **acred)
 {
-    register afs_int32 i;
-    register struct unixuser *tu;
+    afs_int32 i;
+    struct unixuser *tu;
     afs_int32 pag, uid;
 
     AFS_STATCNT(PUnlog);
@@ -130,7 +130,7 @@ int
 afspag_PSetTokens(char *ain, afs_int32 ainSize, afs_ucred_t **acred)
 {
     afs_int32 i;
-    register struct unixuser *tu;
+    struct unixuser *tu;
     struct afspag_cell *tcell;
     struct ClearToken clear;
     char *stp;
index 931abf1936d6d5905182274c7aa8c2e92f75d57f..5280ff155d2d3cc8c568b5cce07099aca500248d 100644 (file)
@@ -311,10 +311,10 @@ static int HandleClientContext(struct afs_ioctl *ablob, int *com,
                               afs_ucred_t **acred,
                               afs_ucred_t *credp);
 #endif
-int HandleIoctl(register struct vcache *avc, register afs_int32 acom,
+int HandleIoctl(struct vcache *avc, afs_int32 acom,
                struct afs_ioctl *adata);
 int afs_HandlePioctl(struct vnode *avp, afs_int32 acom,
-                    register struct afs_ioctl *ablob, int afollow,
+                    struct afs_ioctl *ablob, int afollow,
                     afs_ucred_t **acred);
 static int Prefetch(uparmtype apath, struct afs_ioctl *adata, int afollow,
                    afs_ucred_t *acred);
@@ -427,10 +427,10 @@ static pioctlFunction OpioctlSw[]  = {
 int afs_nobody = NFS_NOBODY;
 
 int
-HandleIoctl(register struct vcache *avc, register afs_int32 acom,
+HandleIoctl(struct vcache *avc, afs_int32 acom,
            struct afs_ioctl *adata)
 {
-    register afs_int32 code;
+    afs_int32 code;
 
     code = 0;
     AFS_STATCNT(HandleIoctl);
@@ -448,8 +448,8 @@ HandleIoctl(register struct vcache *avc, register afs_int32 acom,
 
     case 3:{
            /* return the name of the cell this file is open on */
-           register struct cell *tcell;
-           register afs_int32 i;
+           struct cell *tcell;
+           afs_int32 i;
 
            tcell = afs_GetCell(avc->f.fid.Cell, READ_LOCK);
            if (tcell) {
@@ -537,8 +537,8 @@ kioctl(int fdes, int com, caddr_t arg, caddr_t ext)
 #  endif
     } u_uap, *uap = &u_uap;
     struct file *fd;
-    register struct vcache *tvc;
-    register int ioctlDone = 0, code = 0;
+    struct vcache *tvc;
+    int ioctlDone = 0, code = 0;
 
     AFS_STATCNT(afs_xioctl);
     uap->fd = fdes;
@@ -557,7 +557,7 @@ kioctl(int fdes, int com, caddr_t arg, caddr_t ext)
        if (tvc && IsAfsVnode(AFSTOV(tvc))) {
            /* This is an AFS vnode */
            if (((uap->com >> 8) & 0xff) == 'V') {
-               register struct afs_ioctl *datap;
+               struct afs_ioctl *datap;
                AFS_GLOCK();
                datap =
                    (struct afs_ioctl *)osi_AllocSmallSpace(AFS_SMALLOCSIZ);
@@ -654,8 +654,8 @@ int
 afs_xioctl(struct afs_ioctl_sys *uap, rval_t *rvp)
 {
     struct file *fd;
-    register struct vcache *tvc;
-    register int ioctlDone = 0, code = 0;
+    struct vcache *tvc;
+    int ioctlDone = 0, code = 0;
 
     AFS_STATCNT(afs_xioctl);
 # if defined(AFS_SUN57_ENV)
@@ -676,7 +676,7 @@ afs_xioctl(struct afs_ioctl_sys *uap, rval_t *rvp)
        if (tvc && IsAfsVnode(AFSTOV(tvc))) {
            /* This is an AFS vnode */
            if (((uap->com >> 8) & 0xff) == 'V') {
-               register struct afs_ioctl *datap;
+               struct afs_ioctl *datap;
                AFS_GLOCK();
                datap =
                    (struct afs_ioctl *)osi_AllocSmallSpace(AFS_SMALLOCSIZ);
@@ -720,8 +720,8 @@ afs_xioctl(struct inode *ip, struct file *fp, unsigned int com,
           unsigned long arg)
 {
     struct afs_ioctl_sys ua, *uap = &ua;
-    register struct vcache *tvc;
-    register int ioctlDone = 0, code = 0;
+    struct vcache *tvc;
+    int ioctlDone = 0, code = 0;
 
     AFS_STATCNT(afs_xioctl);
     ua.com = com;
@@ -731,7 +731,7 @@ afs_xioctl(struct inode *ip, struct file *fp, unsigned int com,
     if (tvc && IsAfsVnode(AFSTOV(tvc))) {
        /* This is an AFS vnode */
        if (((uap->com >> 8) & 0xff) == 'V') {
-           register struct afs_ioctl *datap;
+           struct afs_ioctl *datap;
            AFS_GLOCK();
            datap = osi_AllocSmallSpace(AFS_SMALLOCSIZ);
            code = copyin_afs_ioctl((char *)uap->arg, datap);
@@ -758,11 +758,11 @@ struct ioctl_args {
 };
 
 int
-afs_xioctl(afs_proc_t *p, register struct ioctl_args *uap, register_t *retval)
+afs_xioctl(afs_proc_t *p, struct ioctl_args *uap, register_t *retval)
 {
     struct file *fd;
-    register struct vcache *tvc;
-    register int ioctlDone = 0, code = 0;
+    struct vcache *tvc;
+    int ioctlDone = 0, code = 0;
 
     AFS_STATCNT(afs_xioctl);
     if ((code = fdgetf(p, uap->fd, &fd)))
@@ -772,7 +772,7 @@ afs_xioctl(afs_proc_t *p, register struct ioctl_args *uap, register_t *retval)
        if (tvc && IsAfsVnode(AFSTOV(tvc))) {
            /* This is an AFS vnode */
            if (((uap->com >> 8) & 0xff) == 'V') {
-               register struct afs_ioctl *datap;
+               struct afs_ioctl *datap;
                AFS_GLOCK();
                datap = osi_AllocSmallSpace(AFS_SMALLOCSIZ);
                code = copyin_afs_ioctl((char *)uap->arg, datap);
@@ -798,7 +798,7 @@ afs_xioctl(afs_proc_t *p, register struct ioctl_args *uap, register_t *retval)
 # if defined(AFS_FBSD_ENV)
 #  define arg data
 int
-afs_xioctl(struct thread *td, register struct ioctl_args *uap,
+afs_xioctl(struct thread *td, struct ioctl_args *uap,
           register_t *retval)
 {
     afs_proc_t *p = td->td_proc;
@@ -810,12 +810,12 @@ struct ioctl_args {
 };
 
 int
-afs_xioctl(afs_proc_t *p, register struct ioctl_args *uap, register_t *retval)
+afs_xioctl(afs_proc_t *p, struct ioctl_args *uap, register_t *retval)
 {
 # endif
-    register struct filedesc *fdp;
-    register struct vcache *tvc;
-    register int ioctlDone = 0, code = 0;
+    struct filedesc *fdp;
+    struct vcache *tvc;
+    int ioctlDone = 0, code = 0;
     struct file *fd;
 
     AFS_STATCNT(afs_xioctl);
@@ -842,7 +842,7 @@ afs_xioctl(afs_proc_t *p, register struct ioctl_args *uap, register_t *retval)
        if (tvc && IsAfsVnode(AFSTOV(tvc))) {
            /* This is an AFS vnode */
            if (((uap->com >> 8) & 0xff) == 'V') {
-               register struct afs_ioctl *datap;
+               struct afs_ioctl *datap;
                AFS_GLOCK();
                datap = osi_AllocSmallSpace(AFS_SMALLOCSIZ);
                code = copyin_afs_ioctl((char *)uap->arg, datap);
@@ -876,14 +876,14 @@ afs_xioctl(afs_proc_t *p, register struct ioctl_args *uap, register_t *retval)
 int
 afs_xioctl(void)
 {
-    register struct a {
+    struct a {
        int fd;
        int com;
        caddr_t arg;
     } *uap = (struct a *)get_user_struct()->u_ap;
-    register struct file *fd;
-    register struct vcache *tvc;
-    register int ioctlDone = 0, code = 0;
+    struct file *fd;
+    struct vcache *tvc;
+    int ioctlDone = 0, code = 0;
 
     AFS_STATCNT(afs_xioctl);
 
@@ -897,7 +897,7 @@ afs_xioctl(void)
        if (tvc && IsAfsVnode(AFSTOV(tvc))) {
            /* This is an AFS vnode */
            if (((uap->com >> 8) & 0xff) == 'V') {
-               register struct afs_ioctl *datap;
+               struct afs_ioctl *datap;
                AFS_GLOCK();
                datap = osi_AllocSmallSpace(AFS_SMALLOCSIZ);
                code=copyin_afs_ioctl((char *)uap->arg, datap);
@@ -1023,7 +1023,7 @@ afs_syscall_pioctl(char *path, unsigned int com, caddr_t cmarg, int follow)
 #if defined(AFS_NEED_CLIENTCONTEXT) || defined(AFS_SUN5_ENV) || defined(AFS_AIX41_ENV) || defined(AFS_LINUX22_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
     afs_ucred_t *foreigncreds = NULL;
 #endif
-    register afs_int32 code = 0;
+    afs_int32 code = 0;
     struct vnode *vp = NULL;
 #ifdef AFS_AIX41_ENV
     struct ucred *credp = crref();     /* don't free until done! */
@@ -1260,13 +1260,13 @@ afs_syscall_pioctl(char * path, unsigned int com, caddr_t cmarg,
 
 int
 afs_HandlePioctl(struct vnode *avp, afs_int32 acom,
-                register struct afs_ioctl *ablob, int afollow,
+                struct afs_ioctl *ablob, int afollow,
                 afs_ucred_t **acred)
 {
     struct vcache *avc;
     struct vrequest treq;
-    register afs_int32 code;
-    register afs_int32 function, device;
+    afs_int32 code;
+    afs_int32 function, device;
     struct afs_pdata input, output;
     struct afs_pdata copyInput, copyOutput;
     size_t outSize;
@@ -1409,7 +1409,7 @@ dummy_PSetAcl(char *ain, char *aout)
 
 DECL_PIOCTL(PSetAcl)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct afs_conn *tconn;
     struct AFSOpaque acl;
     struct AFSVolSync tsync;
@@ -1671,7 +1671,7 @@ DECL_PIOCTL(PBogus)
  */
 DECL_PIOCTL(PGetFileCell)
 {
-    register struct cell *tcell;
+    struct cell *tcell;
 
     AFS_STATCNT(PGetFileCell);
     if (!avc)
@@ -1735,9 +1735,9 @@ DECL_PIOCTL(PGetWSCell)
  */
 DECL_PIOCTL(PGetUserCell)
 {
-    register afs_int32 i;
-    register struct unixuser *tu;
-    register struct cell *tcell;
+    afs_int32 i;
+    struct unixuser *tu;
+    struct cell *tcell;
 
     AFS_STATCNT(PGetUserCell);
     if (!afs_resourceinit_flag)        /* afs daemons haven't started yet */
@@ -1792,9 +1792,9 @@ DECL_PIOCTL(PGetUserCell)
 DECL_PIOCTL(PSetTokens)
 {
     afs_int32 i;
-    register struct unixuser *tu;
+    struct unixuser *tu;
     struct ClearToken clear;
-    register struct cell *tcell;
+    struct cell *tcell;
     char *stp;
     char *cellName;
     int stLen;
@@ -1928,8 +1928,8 @@ DECL_PIOCTL(PGetVolumeStatus)
     char volName[32];
     char *offLineMsg = afs_osi_Alloc(256);
     char *motd = afs_osi_Alloc(256);
-    register struct afs_conn *tc;
-    register afs_int32 code = 0;
+    struct afs_conn *tc;
+    afs_int32 code = 0;
     struct AFSFetchVolumeStatus volstat;
     char *Name;
     XSTATS_DECLS;
@@ -2002,11 +2002,11 @@ DECL_PIOCTL(PSetVolumeStatus)
     char *volName;
     char *offLineMsg;
     char *motd;
-    register struct afs_conn *tc;
-    register afs_int32 code = 0;
+    struct afs_conn *tc;
+    afs_int32 code = 0;
     struct AFSFetchVolumeStatus volstat;
     struct AFSStoreVolumeStatus storeStat;
-    register struct volume *tvp;
+    struct volume *tvp;
     XSTATS_DECLS;
 
     AFS_STATCNT(PSetVolumeStatus);
@@ -2135,9 +2135,9 @@ DECL_PIOCTL(PFlush)
  */
 DECL_PIOCTL(PNewStatMount)
 {
-    register afs_int32 code;
-    register struct vcache *tvc;
-    register struct dcache *tdc;
+    afs_int32 code;
+    struct vcache *tvc;
+    struct dcache *tdc;
     struct VenusFid tfid;
     char *bufp;
     char *name;
@@ -2235,9 +2235,9 @@ DECL_PIOCTL(PNewStatMount)
 
 DECL_PIOCTL(PGetTokens)
 {
-    register struct cell *tcell;
-    register afs_int32 i;
-    register struct unixuser *tu;
+    struct cell *tcell;
+    afs_int32 i;
+    struct unixuser *tu;
     afs_int32 iterator = 0;
     int newStyle;
     int code = E2BIG;
@@ -2349,8 +2349,8 @@ out:
  */
 DECL_PIOCTL(PUnlog)
 {
-    register afs_int32 i;
-    register struct unixuser *tu;
+    afs_int32 i;
+    struct unixuser *tu;
 
     AFS_STATCNT(PUnlog);
     if (!afs_resourceinit_flag)        /* afs daemons haven't started yet */
@@ -2453,8 +2453,8 @@ DECL_PIOCTL(PMariner)
  */
 DECL_PIOCTL(PCheckServers)
 {
-    register int i;
-    register struct server *ts;
+    int i;
+    struct server *ts;
     afs_int32 temp;
     char *cellName = NULL;
     struct cell *cellp;
@@ -2627,8 +2627,8 @@ static int
 Prefetch(uparmtype apath, struct afs_ioctl *adata, int afollow,
         afs_ucred_t *acred)
 {
-    register char *tp;
-    register afs_int32 code;
+    char *tp;
+    afs_int32 code;
 #if defined(AFS_SGI61_ENV) || defined(AFS_SUN57_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
     size_t bufferSize;
 #else
@@ -2670,9 +2670,9 @@ Prefetch(uparmtype apath, struct afs_ioctl *adata, int afollow,
  */
 DECL_PIOCTL(PFindVolume)
 {
-    register struct volume *tvp;
-    register struct server *ts;
-    register afs_int32 i;
+    struct volume *tvp;
+    struct server *ts;
+    afs_int32 i;
     int code = 0;
 
     AFS_STATCNT(PFindVolume);
@@ -2718,7 +2718,7 @@ out:
  */
 DECL_PIOCTL(PViceAccess)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 temp;
 
     AFS_STATCNT(PViceAccess);
@@ -2838,7 +2838,7 @@ DECL_PIOCTL(PGetCacheSize)
 {
     afs_int32 results[MAXGCSTATS];
     afs_int32 flags;
-    register struct dcache * tdc;
+    struct dcache * tdc;
     int i, size;
     
     AFS_STATCNT(PGetCacheSize);
@@ -2903,8 +2903,8 @@ DECL_PIOCTL(PGetCacheSize)
  */
 DECL_PIOCTL(PRemoveCallBack)
 {
-    register struct afs_conn *tc;
-    register afs_int32 code = 0;
+    struct afs_conn *tc;
+    afs_int32 code = 0;
     struct AFSCallBack CallBacks_Array[1];
     struct AFSCBFids theFids;
     struct AFSCBs theCBs;
@@ -3077,8 +3077,8 @@ DECL_PIOCTL(PNewAlias)
 DECL_PIOCTL(PListCells)
 {
     afs_int32 whichCell;
-    register struct cell *tcell = 0;
-    register afs_int32 i;
+    struct cell *tcell = 0;
+    afs_int32 i;
     int code;
 
     AFS_STATCNT(PListCells);
@@ -3116,7 +3116,7 @@ out:
 DECL_PIOCTL(PListAliases)
 {
     afs_int32 whichAlias;
-    register struct cell_alias *tcalias = 0;
+    struct cell_alias *tcalias = 0;
     int code;
 
     if (!afs_resourceinit_flag)        /* afs daemons haven't started yet */
@@ -3163,14 +3163,14 @@ out:
  */
 DECL_PIOCTL(PRemoveMount)
 {
-    register afs_int32 code;
+    afs_int32 code;
     char *bufp;
     char *name;
     struct sysname_info sysState;
     afs_size_t offset, len;
-    register struct afs_conn *tc;
-    register struct dcache *tdc;
-    register struct vcache *tvc;
+    struct afs_conn *tc;
+    struct dcache *tdc;
+    struct vcache *tvc;
     struct AFSFetchStatus OutDirStatus;
     struct VenusFid tfid;
     struct AFSVolSync tsync;
@@ -3300,7 +3300,7 @@ DECL_PIOCTL(PRemoveMount)
  */
 DECL_PIOCTL(PGetCellStatus)
 {
-    register struct cell *tcell;
+    struct cell *tcell;
     char *cellName;
     afs_int32 temp;
 
@@ -3340,7 +3340,7 @@ DECL_PIOCTL(PGetCellStatus)
  */
 DECL_PIOCTL(PSetCellStatus)
 {
-    register struct cell *tcell;
+    struct cell *tcell;
     char *cellName;
     afs_int32 flags0, flags1;
 
@@ -3389,10 +3389,10 @@ DECL_PIOCTL(PSetCellStatus)
  */
 DECL_PIOCTL(PFlushVolumeData)
 {
-    register afs_int32 i;
-    register struct dcache *tdc;
-    register struct vcache *tvc;
-    register struct volume *tv;
+    afs_int32 i;
+    struct dcache *tdc;
+    struct vcache *tvc;
+    struct volume *tv;
     afs_int32 cell, volume;
     struct afs_q *tq, *uq;
 #ifdef AFS_DARWIN80_ENV
@@ -3546,7 +3546,7 @@ DECL_PIOCTL(PFlushVolumeData)
  */
 DECL_PIOCTL(PGetVnodeXStatus)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct vcxstat stat;
     afs_int32 mode, i;
 
@@ -3594,7 +3594,7 @@ DECL_PIOCTL(PGetVnodeXStatus)
 
 DECL_PIOCTL(PGetVnodeXStatus2)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct vcxstat2 stat;
     afs_int32 mode;
 
@@ -3653,9 +3653,9 @@ DECL_PIOCTL(PSetSysName)
     char outname[MAXSYSNAME];
     afs_int32 setsysname;
     int foundname = 0;
-    register struct afs_exporter *exporter;
-    register struct unixuser *au;
-    register afs_int32 pag, error;
+    struct afs_exporter *exporter;
+    struct unixuser *au;
+    afs_int32 pag, error;
     int t, count, num = 0, allpags = 0;
     char **sysnamelist;
     struct afs_pdata validate;
@@ -3821,7 +3821,7 @@ ReSortCells(int s, afs_int32 * l, int vlonly)
 {
     int i;
     struct volume *j;
-    register int k;
+    int k;
 
     if (vlonly) {
        afs_int32 *p;
@@ -4120,7 +4120,7 @@ DECL_PIOCTL(PExportAfs)
     afs_int32 export, newint = 0;
     afs_int32 type, changestate, handleValue, convmode, pwsync, smounts;
     afs_int32 rempags = 0, pagcb = 0;
-    register struct afs_exporter *exporter;
+    struct afs_exporter *exporter;
 
     AFS_STATCNT(PExportAfs);
     if (afs_pd_getInt(ain, &handleValue) != 0)
@@ -4689,9 +4689,9 @@ DECL_PIOCTL(PSetCPrefs)
  */
 DECL_PIOCTL(PFlushMount)
 {
-    register afs_int32 code;
-    register struct vcache *tvc;
-    register struct dcache *tdc;
+    afs_int32 code;
+    struct vcache *tvc;
+    struct dcache *tdc;
     struct VenusFid tfid;
     char *bufp;
     char *mount;
@@ -4850,7 +4850,7 @@ DECL_PIOCTL(PRxStatPeer)
 
 DECL_PIOCTL(PPrefetchFromTape)
 {
-    register afs_int32 code, code1;
+    afs_int32 code, code1;
     afs_int32 bytes, outval;
     struct afs_conn *tc;
     struct rx_call *tcall;
@@ -4916,7 +4916,7 @@ DECL_PIOCTL(PPrefetchFromTape)
 
 DECL_PIOCTL(PFsCmd)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct afs_conn *tc;
     struct vcache *tvc;
     struct FsCmdInputs *Inputs;
@@ -5213,8 +5213,8 @@ DECL_PIOCTL(PDiscon)
 DECL_PIOCTL(PNFSNukeCreds)
 {
     afs_uint32 addr;
-    register afs_int32 i;
-    register struct unixuser *tu;
+    afs_int32 i;
+    struct unixuser *tu;
 
     AFS_STATCNT(PUnlog);
     if (!afs_resourceinit_flag)        /* afs daemons haven't started yet */
index 9a877d019bbada8c4f309ddabbd02b4f46efde3c..780141776543a7c005dc91c040e9b39ada9141eb 100644 (file)
@@ -11,8 +11,8 @@
 #define _AFS_PROTOTYPES_H_
 
 /* afs_analyze.c */
-extern int afs_Analyze(register struct afs_conn *aconn, afs_int32 acode,
-                      struct VenusFid *afid, register struct vrequest *areq,
+extern int afs_Analyze(struct afs_conn *aconn, afs_int32 acode,
+                      struct VenusFid *afid, struct vrequest *areq,
                       int op, afs_int32 locktype, struct cell *cellp);
 
 /* afs_axscache.c */
@@ -26,12 +26,12 @@ extern void shutdown_xscache(void);
 
 /* afs_buffer.c */
 extern void DInit(int abuffers);
-extern void *DRead(register struct dcache * fid, register int page);
-extern int DVOffset(register void *ap);
+extern void *DRead(struct dcache * fid, int page);
+extern int DVOffset(void *ap);
 extern void DZap(struct dcache * fid);
 extern void DFlush(void);
 extern void DFlushDCache(struct dcache *);
-extern void *DNew(register struct dcache * fid, register int page);
+extern void *DNew(struct dcache * fid, int page);
 extern void shutdown_bufferpackage(void);
 
 /* afs_call.c */
@@ -73,7 +73,7 @@ extern int SRXAFSCB_GetCE64(struct rx_call *a_call, afs_int32 a_index,
 extern int SRXAFSCB_GetLock(struct rx_call *a_call, afs_int32 a_index,
                            struct AFSDBLock *a_result);
 extern int SRXAFSCB_CallBack(struct rx_call *a_call,
-                            register struct AFSCBFids *a_fids,
+                            struct AFSCBFids *a_fids,
                             struct AFSCBs *a_callbacks);
 extern int SRXAFSCB_Probe(struct rx_call *a_call);
 extern int SRXAFSCB_InitCallBackState(struct rx_call *a_call);
@@ -165,7 +165,7 @@ extern afs_int32 afs_OtherCSize;
 extern afs_int32 afs_LogChunk;
 
 /* afs_cell.c */
-extern struct cell *afs_GetRealCellByIndex(register afs_int32 cellindex,
+extern struct cell *afs_GetRealCellByIndex(afs_int32 cellindex,
                                           afs_int32 locktype,
                                           afs_int32 refresh);
 
@@ -173,8 +173,8 @@ extern struct cell *afs_GetRealCellByIndex(register afs_int32 cellindex,
 extern afs_int32 cryptall;
 extern afs_rwlock_t afs_xinterface;
 extern afs_rwlock_t afs_xconn;
-extern struct afs_conn *afs_Conn(register struct VenusFid *afid,
-                            register struct vrequest *areq,
+extern struct afs_conn *afs_Conn(struct VenusFid *afid,
+                            struct vrequest *areq,
                             afs_int32 locktype);
 extern struct afs_conn *afs_ConnBySA(struct srvAddr *sap, unsigned short aport,
                                 afs_int32 acell, struct unixuser *tu,
@@ -182,13 +182,13 @@ extern struct afs_conn *afs_ConnBySA(struct srvAddr *sap, unsigned short aport,
                                 afs_int32 locktype);
 extern struct afs_conn *afs_ConnByMHosts(struct server *ahosts[],
                                     unsigned short aport, afs_int32 acell,
-                                    register struct vrequest *areq,
+                                    struct vrequest *areq,
                                     afs_int32 locktype);
 extern struct afs_conn *afs_ConnByHost(struct server *aserver,
                                   unsigned short aport, afs_int32 acell,
                                   struct vrequest *areq, int aforce,
                                   afs_int32 locktype);
-extern void afs_PutConn(register struct afs_conn *ac, afs_int32 locktype);
+extern void afs_PutConn(struct afs_conn *ac, afs_int32 locktype);
 extern void ForceNewConnections(struct srvAddr *sap);
 
 
@@ -205,8 +205,8 @@ extern afs_int32 afs_probe_interval;
 extern afs_int32 afs_preCache;
 
 extern void afs_Daemon(void);
-extern struct brequest *afs_BQueue(register short aopcode,
-                                  register struct vcache *avc,
+extern struct brequest *afs_BQueue(short aopcode,
+                                  struct vcache *avc,
                                   afs_int32 dontwait, afs_int32 ause,
                                   afs_ucred_t *acred,
                                   afs_size_t asparm0, afs_size_t asparm1,
@@ -215,7 +215,7 @@ extern struct brequest *afs_BQueue(register short aopcode,
 extern void afs_SetCheckServerNATmode(int isnat);
 extern void afs_CheckServerDaemon(void);
 extern int afs_CheckRootVolume(void);
-extern void afs_BRelease(register struct brequest *ab);
+extern void afs_BRelease(struct brequest *ab);
 extern int afs_BBusy(void);
 extern int afs_BioDaemon(afs_int32 nbiods);
 #ifdef AFS_DARWIN80_ENV
@@ -244,38 +244,38 @@ extern afs_dcache_id_t cacheInode;
 extern struct osi_file *afs_cacheInodep;
 extern void afs_dcacheInit(int afiles, int ablocks, int aDentries, int achunk,
                           int aflags);
-extern int afs_PutDCache(register struct dcache *adc);
-extern void afs_FlushDCache(register struct dcache *adc);
+extern int afs_PutDCache(struct dcache *adc);
+extern void afs_FlushDCache(struct dcache *adc);
 extern void shutdown_dcache(void);
 extern void afs_CacheTruncateDaemon(void);
 extern afs_int32 afs_fsfragsize;
-extern struct dcache *afs_MemGetDSlot(register afs_int32 aslot,
-                                     register struct dcache *tmpdc);
-extern struct dcache *afs_GetDCache(register struct vcache *avc,
+extern struct dcache *afs_MemGetDSlot(afs_int32 aslot,
+                                     struct dcache *tmpdc);
+extern struct dcache *afs_GetDCache(struct vcache *avc,
                                    afs_size_t abyte,
-                                   register struct vrequest *areq,
+                                   struct vrequest *areq,
                                    afs_size_t * aoffset, afs_size_t * alen,
                                    int aflags);
-extern struct dcache *afs_FindDCache(register struct vcache *avc,
+extern struct dcache *afs_FindDCache(struct vcache *avc,
                                     afs_size_t abyte);
-extern void afs_StoreWarn(register afs_int32 acode, afs_int32 avolume,
-                         register afs_int32 aflags);
+extern void afs_StoreWarn(afs_int32 acode, afs_int32 avolume,
+                         afs_int32 aflags);
 extern void afs_MaybeWakeupTruncateDaemon(void);
 extern void afs_CacheTruncateDaemon(void);
-extern void afs_AdjustSize(register struct dcache *adc,
-                          register afs_int32 newSize);
+extern void afs_AdjustSize(struct dcache *adc,
+                          afs_int32 newSize);
 extern int afs_HashOutDCache(struct dcache *adc, int zap);
 extern int afs_MaybeFreeDiscardedDCache(void);
 extern int afs_RefDCache(struct dcache *adc);
-extern void afs_TryToSmush(register struct vcache *avc,
+extern void afs_TryToSmush(struct vcache *avc,
                           afs_ucred_t *acred, int sync);
 extern void updateV2DC(int lockVc, struct vcache *v, struct dcache *d,
                       int src);
 extern void afs_WriteThroughDSlots(void);
-extern struct dcache *afs_UFSGetDSlot(register afs_int32 aslot,
-                                     register struct dcache *tmpdc);
-extern int afs_WriteDCache(register struct dcache *adc, int atime);
-extern int afs_wakeup(register struct vcache *avc);
+extern struct dcache *afs_UFSGetDSlot(afs_int32 aslot,
+                                     struct dcache *tmpdc);
+extern int afs_WriteDCache(struct dcache *adc, int atime);
+extern int afs_wakeup(struct vcache *avc);
 extern int afs_InitCacheFile(char *afile, ino_t ainode);
 extern int afs_DCacheMissingChunks(struct vcache *avc);
 extern struct dcache *afs_ObtainDCacheForWriting(struct vcache *avc, 
@@ -318,8 +318,8 @@ extern void init_et_to_sys_error(void);
 extern afs_int32 et_to_sys_error(afs_int32 in);
 extern void afs_FinalizeReq(struct vrequest *areq);
 extern int afs_CheckCode(afs_int32 acode, struct vrequest *areq, int where);
-extern void afs_CopyError(register struct vrequest *afrom,
-                         register struct vrequest *ato);
+extern void afs_CopyError(struct vrequest *afrom,
+                         struct vrequest *ato);
 extern void init_sys_error_to_et(void);
 
 /* afs_exporter.c */
@@ -347,22 +347,22 @@ extern int afs_icl_CreateLog(char *name, afs_int32 logSize,
 extern int afs_icl_CreateLogWithFlags(char *name, afs_int32 logSize,
                                      afs_uint32 flags,
                                      struct afs_icl_log **outLogpp);
-extern int afs_icl_CopyOut(register struct afs_icl_log *logp,
+extern int afs_icl_CopyOut(struct afs_icl_log *logp,
                           afs_int32 * bufferp, afs_int32 * bufSizep,
                           afs_uint32 * cookiep, afs_int32 * flagsp);
 extern int afs_icl_GetLogParms(struct afs_icl_log *logp, afs_int32 * maxSizep,
                               afs_int32 * curSizep);
-extern int afs_icl_LogHold(register struct afs_icl_log *logp);
-extern int afs_icl_LogHoldNL(register struct afs_icl_log *logp);
-extern int afs_icl_LogUse(register struct afs_icl_log *logp);
-extern int afs_icl_LogFreeUse(register struct afs_icl_log *logp);
-extern int afs_icl_LogSetSize(register struct afs_icl_log *logp,
+extern int afs_icl_LogHold(struct afs_icl_log *logp);
+extern int afs_icl_LogHoldNL(struct afs_icl_log *logp);
+extern int afs_icl_LogUse(struct afs_icl_log *logp);
+extern int afs_icl_LogFreeUse(struct afs_icl_log *logp);
+extern int afs_icl_LogSetSize(struct afs_icl_log *logp,
                              afs_int32 logSize);
-extern int afs_icl_ZapLog(register struct afs_icl_log *logp);
-extern int afs_icl_LogRele(register struct afs_icl_log *logp);
-extern int afs_icl_LogReleNL(register struct afs_icl_log *logp);
-extern int afs_icl_ZeroLog(register struct afs_icl_log *logp);
-extern int afs_icl_LogFree(register struct afs_icl_log *logp);
+extern int afs_icl_ZapLog(struct afs_icl_log *logp);
+extern int afs_icl_LogRele(struct afs_icl_log *logp);
+extern int afs_icl_LogReleNL(struct afs_icl_log *logp);
+extern int afs_icl_ZeroLog(struct afs_icl_log *logp);
+extern int afs_icl_LogFree(struct afs_icl_log *logp);
 extern struct afs_icl_log *afs_icl_FindLog(char *name);
 extern int
   afs_icl_EnumerateLogs(int (*aproc)
@@ -390,26 +390,26 @@ extern int
 extern int afs_icl_AddLogToSet(struct afs_icl_set *setp,
                               struct afs_icl_log *newlogp);
 extern int afs_icl_SetSetStat(struct afs_icl_set *setp, int op);
-extern int afs_icl_SetHold(register struct afs_icl_set *setp);
-extern int afs_icl_ZapSet(register struct afs_icl_set *setp);
-extern int afs_icl_SetRele(register struct afs_icl_set *setp);
-extern int afs_icl_SetFree(register struct afs_icl_set *setp);
+extern int afs_icl_SetHold(struct afs_icl_set *setp);
+extern int afs_icl_ZapSet(struct afs_icl_set *setp);
+extern int afs_icl_SetRele(struct afs_icl_set *setp);
+extern int afs_icl_SetFree(struct afs_icl_set *setp);
 extern struct afs_icl_set *afs_icl_FindSet(char *name);
 
-extern int afs_icl_Event4(register struct afs_icl_set *setp,
+extern int afs_icl_Event4(struct afs_icl_set *setp,
                          afs_int32 eventID, afs_int32 lAndT, long p1,
                          long p2, long p3, long p4);
-extern int afs_icl_Event3(register struct afs_icl_set *setp,
+extern int afs_icl_Event3(struct afs_icl_set *setp,
                          afs_int32 eventID, afs_int32 lAndT, long p1,
                          long p2, long p3);
-extern int afs_icl_Event2(register struct afs_icl_set *setp,
+extern int afs_icl_Event2(struct afs_icl_set *setp,
                          afs_int32 eventID, afs_int32 lAndT, long p1,
                          long p2);
-extern int afs_icl_Event1(register struct afs_icl_set *setp,
+extern int afs_icl_Event1(struct afs_icl_set *setp,
                          afs_int32 eventID, afs_int32 lAndT, long p1);
-extern int afs_icl_Event0(register struct afs_icl_set *setp,
+extern int afs_icl_Event0(struct afs_icl_set *setp,
                          afs_int32 eventID, afs_int32 lAndT);
-extern void afs_icl_AppendRecord(register struct afs_icl_log *logp,
+extern void afs_icl_AppendRecord(struct afs_icl_log *logp,
                                 afs_int32 op, afs_int32 types, long p1,
                                 long p2, long p3, long p4);
 extern int Afscall_icl(long opcode, long p1, long p2, long p3, long p4,
@@ -434,7 +434,7 @@ extern int afs_CacheInit(afs_int32 astatSize, afs_int32 afiles,
                         afs_int32 aflags, afs_int32 ninodes,
                         afs_int32 nusers, afs_int32 dynamic_vcaches);
 extern void afs_ComputeCacheParms(void);
-extern int afs_InitCacheInfo(register char *afile);
+extern int afs_InitCacheInfo(char *afile);
 extern int afs_InitVolumeInfo(char *afile);
 extern int afs_InitCellInfo(char *afile);
 extern int afs_ResourceInit(int preallocs);
@@ -445,21 +445,21 @@ extern int afs_LookupInodeByPath(char *filename, afs_ufs_dcache_id_t *inode,
                                 struct vnode **fvpp);
 
 /* afs_lock.c */
-extern void Lock_Init(register struct afs_lock *lock);
-extern void ObtainLock(register struct afs_lock *lock, int how,
+extern void Lock_Init(struct afs_lock *lock);
+extern void ObtainLock(struct afs_lock *lock, int how,
                       unsigned int src_indicator);
-extern void ReleaseLock(register struct afs_lock *lock, int how);
+extern void ReleaseLock(struct afs_lock *lock, int how);
 extern int Afs_Lock_Trace(int op, struct afs_lock *alock, int type,
                          char *file, int line);
-extern void Afs_Lock_Obtain(register struct afs_lock *lock, int how);
-extern void Afs_Lock_ReleaseR(register struct afs_lock *lock);
-extern void Afs_Lock_ReleaseW(register struct afs_lock *lock);
-extern void afs_osi_SleepR(register char *addr,
-                          register struct afs_lock *alock);
-extern void afs_osi_SleepW(register char *addr,
-                          register struct afs_lock *alock);
-extern void afs_osi_SleepS(register char *addr,
-                          register struct afs_lock *alock);
+extern void Afs_Lock_Obtain(struct afs_lock *lock, int how);
+extern void Afs_Lock_ReleaseR(struct afs_lock *lock);
+extern void Afs_Lock_ReleaseW(struct afs_lock *lock);
+extern void afs_osi_SleepR(char *addr,
+                          struct afs_lock *alock);
+extern void afs_osi_SleepW(char *addr,
+                          struct afs_lock *alock);
+extern void afs_osi_SleepS(char *addr,
+                          struct afs_lock *alock);
 #ifndef AFS_NOBOZO_LOCK
 extern void afs_BozonLock(struct afs_bozoLock *alock, struct vcache *avc);
 extern void afs_BozonUnlock(struct afs_bozoLock *alock, struct vcache *avc);
@@ -475,15 +475,15 @@ extern int afs_CheckBozonLockBlocking(struct afs_bozoLock *alock);
 extern afs_int32 afs_mariner;
 extern afs_int32 afs_marinerHost;
 extern struct rx_service *afs_server;
-extern int afs_AddMarinerName(register char *aname,
-                             register struct vcache *avc);
-extern char *afs_GetMariner(register struct vcache *avc);
-extern void afs_MarinerLogFetch(register struct vcache *avc,
-                               register afs_int32 off,
-                               register afs_int32 bytes,
-                               register afs_int32 idx);
-extern void afs_MarinerLog(register char *astring,
-                          register struct vcache *avc);
+extern int afs_AddMarinerName(char *aname,
+                             struct vcache *avc);
+extern char *afs_GetMariner(struct vcache *avc);
+extern void afs_MarinerLogFetch(struct vcache *avc,
+                               afs_int32 off,
+                               afs_int32 bytes,
+                               afs_int32 idx);
+extern void afs_MarinerLog(char *astring,
+                          struct vcache *avc);
 extern void shutdown_mariner(void);
 
 /* afs_fetchstore.c */
@@ -502,17 +502,17 @@ extern int afs_CacheFetchProc(struct afs_conn *tc, struct osi_file *fP,
 extern int afs_InitMemCache(int blkCount, int blkSize, int flags);
 extern int afs_MemCacheClose(struct osi_file *file);
 extern void *afs_MemCacheOpen(afs_dcache_id_t *ainode);
-extern int afs_MemReadBlk(register struct osi_file *fP, int offset,
+extern int afs_MemReadBlk(struct osi_file *fP, int offset,
                          void *dest, int size);
-extern int afs_MemReadvBlk(register struct memCacheEntry *mceP, int offset,
+extern int afs_MemReadvBlk(struct memCacheEntry *mceP, int offset,
                           struct iovec *iov, int nio, int size);
 extern int afs_MemReadUIO(afs_dcache_id_t *ainode, struct uio *uioP);
-extern int afs_MemWriteBlk(register struct osi_file *fP, int offset,
+extern int afs_MemWriteBlk(struct osi_file *fP, int offset,
                           void *src, int size);
-extern int afs_MemWritevBlk(register struct memCacheEntry *mceP, int offset,
+extern int afs_MemWritevBlk(struct memCacheEntry *mceP, int offset,
                            struct iovec *iov, int nio, int size);
 extern int afs_MemWriteUIO(afs_dcache_id_t *ainode, struct uio *uioP);
-extern int afs_MemCacheTruncate(register struct osi_file *fP,
+extern int afs_MemCacheTruncate(struct osi_file *fP,
                                int size);
 extern void shutdown_memcache(void);
 
@@ -590,7 +590,7 @@ extern int AddPag(afs_proc_t *p, afs_int32 aval, afs_ucred_t **credpp);
 #else
 extern int AddPag(afs_int32 aval, afs_ucred_t **credpp);
 #endif
-extern int afs_InitReq(register struct vrequest *av, afs_ucred_t *acred);
+extern int afs_InitReq(struct vrequest *av, afs_ucred_t *acred);
 extern afs_uint32 afs_get_pag_from_groups(gid_t g0a, gid_t g1a);
 extern void afs_get_groups_from_pag(afs_uint32 pag, gid_t * g0p, gid_t * g1p);
 extern afs_int32 PagInCred(afs_ucred_t *cred);
@@ -602,10 +602,10 @@ extern int afsio_trim(struct uio *auio, afs_int32 asize);
 extern int afsio_skip(struct uio *auio, afs_int32 asize);
 
 /* afs_osi_vm.c */
-extern int osi_Active(register struct vcache *avc);
-extern void osi_FlushPages(register struct vcache *avc,
+extern int osi_Active(struct vcache *avc);
+extern void osi_FlushPages(struct vcache *avc,
                           afs_ucred_t *credp);
-extern void osi_FlushText_really(register struct vcache *vp);
+extern void osi_FlushText_really(struct vcache *vp);
 extern int osi_VMDirty_p(struct vcache *avc);
 #ifndef UKERNEL
 extern void osi_ReleaseVM(struct vcache *avc, afs_ucred_t *acred);
@@ -685,17 +685,17 @@ extern void *osi_UFSOpen(afs_dcache_id_t *ainode);
 #if defined(AFS_LINUX22_ENV)
 extern void osi_get_fh(struct dentry *dp, afs_ufs_dcache_id_t *ainode);
 #endif
-extern int afs_osi_Stat(register struct osi_file *afile,
-                       register struct osi_stat *astat);
-extern int osi_UFSClose(register struct osi_file *afile);
-extern int osi_UFSTruncate(register struct osi_file *afile, afs_int32 asize);
+extern int afs_osi_Stat(struct osi_file *afile,
+                       struct osi_stat *astat);
+extern int osi_UFSClose(struct osi_file *afile);
+extern int osi_UFSTruncate(struct osi_file *afile, afs_int32 asize);
 extern void osi_DisableAtimes(struct vnode *avp);
-extern int afs_osi_Read(register struct osi_file *afile, int offset,
+extern int afs_osi_Read(struct osi_file *afile, int offset,
                        void *aptr, afs_int32 asize);
-extern int afs_osi_Write(register struct osi_file *afile, afs_int32 offset,
+extern int afs_osi_Write(struct osi_file *afile, afs_int32 offset,
                         void *aptr, afs_int32 asize);
 extern int afs_osi_MapStrategy(int (*aproc) (struct buf * bp),
-                              register struct buf *bp);
+                              struct buf *bp);
 extern void shutdown_osifile(void);
 
 
@@ -810,17 +810,17 @@ extern int afs_syscall_pioctl(char *path, unsigned int com, caddr_t cmarg,
 extern int afs_syscall_pioctl(char *path, unsigned int com, caddr_t cmarg,
                              int follow);
 #endif
-extern int HandleIoctl(register struct vcache *avc, register afs_int32 acom,
+extern int HandleIoctl(struct vcache *avc, afs_int32 acom,
                       struct afs_ioctl *adata);
 
 
 /* afs_segments.c */
-extern int afs_StoreAllSegments(register struct vcache *avc,
+extern int afs_StoreAllSegments(struct vcache *avc,
                                struct vrequest *areq, int sync);
 extern int afs_InvalidateAllSegments(struct vcache *avc);
 extern int afs_ExtendSegments(struct vcache *avc,
                              afs_size_t alen, struct vrequest *areq);
-extern int afs_TruncateAllSegments(register struct vcache *avc,
+extern int afs_TruncateAllSegments(struct vcache *avc,
                                   afs_size_t alen, struct vrequest *areq,
                                   afs_ucred_t *acred);
 
@@ -936,7 +936,7 @@ extern afs_rwlock_t afs_xuser;
 extern struct unixuser *afs_users[NUSERS];
 extern struct unixuser *afs_FindUser(afs_int32 auid, afs_int32 acell,
                                     afs_int32 locktype);
-extern struct unixuser *afs_GetUser(register afs_int32 auid, afs_int32 acell,
+extern struct unixuser *afs_GetUser(afs_int32 auid, afs_int32 acell,
                                    afs_int32 locktype);
 extern void afs_NotifyUser(struct unixuser *auser, int event);
 
@@ -945,12 +945,12 @@ extern afs_int32 afs_GCPAGs(afs_int32 * ReleasedCount);
 extern void afs_GCPAGs_perproc_func(afs_proc_t * pproc);
 #endif /* AFS_GCPAGS */
 extern void afs_ComputePAGStats(void);
-extern void afs_PutUser(register struct unixuser *au, afs_int32 locktype);
+extern void afs_PutUser(struct unixuser *au, afs_int32 locktype);
 extern void afs_GCUserData(int aforce);
 extern void afs_CheckTokenCache(void);
 extern void afs_ResetAccessCache(afs_int32 uid, int alock);
-extern void afs_ResetUserConns(register struct unixuser *auser);
-extern void afs_SetPrimary(register struct unixuser *au, register int aflag);
+extern void afs_ResetUserConns(struct unixuser *auser);
+extern void afs_SetPrimary(struct unixuser *au, int aflag);
 extern void afs_MarkUserExpired(afs_int32 pag);
 
 /* afs_util.c */
@@ -1040,22 +1040,22 @@ extern struct vcache *afs_NewVCache(struct VenusFid *afid,
 extern struct vcache *afs_NewBulkVCache(struct VenusFid *afid,
                                        struct server *serverp, int seq);
 extern int afs_VerifyVCache2(struct vcache *avc, struct vrequest *areq);
-extern struct vcache *afs_GetVCache(register struct VenusFid *afid,
+extern struct vcache *afs_GetVCache(struct VenusFid *afid,
                                    struct vrequest *areq, afs_int32 * cached,
                                    struct vcache *avc);
-extern void afs_PutVCache(register struct vcache *avc);
+extern void afs_PutVCache(struct vcache *avc);
 extern int afs_RefVCache(struct vcache *avc);
-extern void afs_ProcessFS(register struct vcache *avc,
-                         register struct AFSFetchStatus *astat,
+extern void afs_ProcessFS(struct vcache *avc,
+                         struct AFSFetchStatus *astat,
                          struct vrequest *areq);
 extern struct afs_cbr *afs_AllocCBR(void);
-extern int afs_FreeCBR(register struct afs_cbr *asp);
-extern void afs_RemoveVCB(register struct VenusFid *afid);
-extern void afs_FlushActiveVcaches(register afs_int32 doflocks);
-extern int afs_WriteVCache(register struct vcache *avc,
-                          register struct AFSStoreStatus *astatus,
+extern int afs_FreeCBR(struct afs_cbr *asp);
+extern void afs_RemoveVCB(struct VenusFid *afid);
+extern void afs_FlushActiveVcaches(afs_int32 doflocks);
+extern int afs_WriteVCache(struct vcache *avc,
+                          struct AFSStoreStatus *astatus,
                           struct vrequest *areq);
-extern int afs_RemoteLookup(register struct VenusFid *afid,
+extern int afs_RemoteLookup(struct VenusFid *afid,
                            struct vrequest *areq, char *name,
                            struct VenusFid *nfid,
                            struct AFSFetchStatus *OutStatusp,
@@ -1071,24 +1071,24 @@ extern void afs_DisconGiveUpCallbacks(void);
 extern void afs_ClearAllStatdFlag(void);
 
 /* VNOPS/afs_vnop_access.c */
-extern afs_int32 afs_GetAccessBits(register struct vcache *avc,
-                                  register afs_int32 arights,
-                                  register struct vrequest *areq);
+extern afs_int32 afs_GetAccessBits(struct vcache *avc,
+                                  afs_int32 arights,
+                                  struct vrequest *areq);
 extern int afs_AccessOK(struct vcache *avc, afs_int32 arights,
                        struct vrequest *areq, afs_int32 check_mode_bits);
 #if defined(AFS_SUN5_ENV) || (defined(AFS_SGI_ENV) && !defined(AFS_SGI65_ENV))
-extern int afs_access(OSI_VC_DECL(avc), register afs_int32 amode, int flags,
+extern int afs_access(OSI_VC_DECL(avc), afs_int32 amode, int flags,
                      afs_ucred_t *acred);
 #else
-extern int afs_access(OSI_VC_DECL(avc), register afs_int32 amode,
+extern int afs_access(OSI_VC_DECL(avc), afs_int32 amode,
                      afs_ucred_t *acred);
 #endif
-extern int afs_getRights(OSI_VC_DECL(avc), register afs_int32 arights,
+extern int afs_getRights(OSI_VC_DECL(avc), afs_int32 arights,
                         afs_ucred_t *acred);
 
 /* VNOPS/afs_vnop_attrs.c */
-extern int afs_CopyOutAttrs(register struct vcache *avc,
-                           register struct vattr *attrs);
+extern int afs_CopyOutAttrs(struct vcache *avc,
+                           struct vattr *attrs);
 #if     defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV)
 extern int afs_getattr(OSI_VC_DECL(avc), struct vattr *attrs, int flags,
                       afs_ucred_t *acred);
@@ -1096,14 +1096,14 @@ extern int afs_getattr(OSI_VC_DECL(avc), struct vattr *attrs, int flags,
 extern int afs_getattr(OSI_VC_DECL(avc), struct vattr *attrs,
                       afs_ucred_t *acred);
 #endif
-extern int afs_VAttrToAS(register struct vcache *avc,
-                        register struct vattr *av,
-                        register struct AFSStoreStatus *as);
+extern int afs_VAttrToAS(struct vcache *avc,
+                        struct vattr *av,
+                        struct AFSStoreStatus *as);
 #if defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV)
-extern int afs_setattr(OSI_VC_DECL(avc), register struct vattr *attrs,
+extern int afs_setattr(OSI_VC_DECL(avc), struct vattr *attrs,
                       int flags, afs_ucred_t *acred);
 #else
-extern int afs_setattr(OSI_VC_DECL(avc), register struct vattr *attrs,
+extern int afs_setattr(OSI_VC_DECL(avc), struct vattr *attrs,
                       afs_ucred_t *acred);
 #endif
 
@@ -1117,14 +1117,14 @@ extern int afs_create(OSI_VC_DECL(adp), char *aname, struct vattr *attrs,
                      enum vcexcl aexcl, int amode, struct vcache **avcp,
                      afs_ucred_t *acred);
 #endif /* AFS_SGI64_ENV */
-extern int afs_LocalHero(register struct vcache *avc,
-                        register struct dcache *adc,
-                        register AFSFetchStatus * astat, register int aincr);
+extern int afs_LocalHero(struct vcache *avc,
+                        struct dcache *adc,
+                        AFSFetchStatus * astat, int aincr);
 
 /* VNOPS/afs_vnop_dirops.c */
 
 extern int afs_mkdir(OSI_VC_DECL(adp), char *aname, struct vattr *attrs, 
-                    register struct vcache **avcp, afs_ucred_t *acred);
+                    struct vcache **avcp, afs_ucred_t *acred);
 #if defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV)
 extern int afs_rmdir(OSI_VC_DECL(adp), char *aname, struct vnode *cdirp, 
                     afs_ucred_t *acred);
@@ -1149,7 +1149,7 @@ extern afs_int32 lastWarnTime;
 
 extern void lockIdSet(struct AFS_FLOCK *flock, struct SimpleLocks *slp,
                      int clid);
-extern int HandleFlock(register struct vcache *avc, int acom,
+extern int HandleFlock(struct vcache *avc, int acom,
                       struct vrequest *areq, pid_t clid, int onlymine);
 
 #if defined(AFS_SGI_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
@@ -1170,9 +1170,9 @@ extern int afs_link(struct vcache *avc, OSI_VC_DECL(adp), char *aname,
 #endif
 
 /* VNOPS/afs_vnop_lookup.c */
-extern int EvalMountPoint(register struct vcache *avc, struct vcache *advc,
+extern int EvalMountPoint(struct vcache *avc, struct vcache *advc,
                          struct volume **avolpp,
-                         register struct vrequest *areq);
+                         struct vrequest *areq);
 extern void afs_InitFakeStat(struct afs_fakestat_state *state);
 extern int afs_EvalFakeStat(struct vcache **avcp,
                            struct afs_fakestat_state *state,
@@ -1181,10 +1181,10 @@ extern int afs_TryEvalFakeStat(struct vcache **avcp,
                               struct afs_fakestat_state *state,
                               struct vrequest *areq);
 extern void afs_PutFakeStat(struct afs_fakestat_state *state);
-extern int afs_ENameOK(register char *aname);
-extern void Check_AtSys(register struct vcache *avc, const char *aname,
+extern int afs_ENameOK(char *aname);
+extern void Check_AtSys(struct vcache *avc, const char *aname,
                        struct sysname_info *state, struct vrequest *areq);
-extern int Next_AtSys(register struct vcache *avc, struct vrequest *areq,
+extern int Next_AtSys(struct vcache *avc, struct vrequest *areq,
                      struct sysname_info *state);
 extern int afs_DoBulkStat(struct vcache *adp, long dirCookie,
                          struct vrequest *areqp);
@@ -1212,10 +1212,10 @@ extern int afs_open(struct vcache **avcp, afs_int32 aflags,
 
 
 /* VNOPS/afs_vnop_read.c */
-extern int afs_MemRead(register struct vcache *avc, struct uio *auio,
+extern int afs_MemRead(struct vcache *avc, struct uio *auio,
                       afs_ucred_t *acred, daddr_t albn,
                       struct buf **abpp, int noLock);
-extern int afs_UFSRead(register struct vcache *avc, struct uio *auio,
+extern int afs_UFSRead(struct vcache *avc, struct uio *auio,
                       afs_ucred_t *acred, daddr_t albn,
                       struct buf **abpp, int noLock);
 extern void afs_PrefetchChunk(struct vcache *avc, struct dcache *adc,
@@ -1236,10 +1236,10 @@ extern int afs_readdir(OSI_VC_DECL(avc), struct uio *auio,
 #endif
 
 /* VNOPS/afs_vnop_remove.c */
-extern int afsremove(register struct vcache *adp, register struct dcache *tdc,
-                    register struct vcache *tvc, char *aname,
+extern int afsremove(struct vcache *adp, struct dcache *tdc,
+                    struct vcache *tvc, char *aname,
                     afs_ucred_t *acred, struct vrequest *treqp);
-extern int afs_remunlink(register struct vcache *avc, register int doit);
+extern int afs_remunlink(struct vcache *avc, int doit);
 extern int afs_remove(OSI_VC_DECL(adp), char *aname, afs_ucred_t *acred);
 extern char *afs_newname(void);
 
@@ -1258,15 +1258,15 @@ extern int afs_rename(OSI_VC_DECL(aodp), char *aname1, struct vcache *andp,
        
 /* VNOPS/afs_vnop_strategy.c */
 #if defined(AFS_SUN5_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
-extern int afs_ustrategy(register struct buf *adp, afs_ucred_t *credp);
+extern int afs_ustrategy(struct buf *adp, afs_ucred_t *credp);
 #else
-extern int afs_ustrategy(register struct buf *adp);
+extern int afs_ustrategy(struct buf *adp);
 #endif
 
 /* VNOPS/afs_vnop_symlink.c */
-extern int afs_MemHandleLink(register struct vcache *avc,
+extern int afs_MemHandleLink(struct vcache *avc,
                             struct vrequest *areq);
-extern int afs_UFSHandleLink(register struct vcache *avc,
+extern int afs_UFSHandleLink(struct vcache *avc,
                             struct vrequest *areq);
 extern int afs_symlink(OSI_VC_DECL(adp), char *aname, 
                       struct vattr *attrs, char *atargetName, 
@@ -1275,15 +1275,15 @@ extern int afs_readlink(OSI_VC_DECL(avc), struct uio *auio,
                        afs_ucred_t *acred);
 
 /* VNOPS/afs_vnop_write.c */
-extern int afs_MemWrite(register struct vcache *avc, struct uio *auio,
+extern int afs_MemWrite(struct vcache *avc, struct uio *auio,
                        int aio, afs_ucred_t *acred, int noLock);
-extern int afs_StoreOnLastReference(register struct vcache *avc,
-                                   register struct vrequest *treq);
-extern int afs_UFSWrite(register struct vcache *avc, struct uio *auio,
+extern int afs_StoreOnLastReference(struct vcache *avc,
+                                   struct vrequest *treq);
+extern int afs_UFSWrite(struct vcache *avc, struct uio *auio,
                        int aio, afs_ucred_t *acred, int noLock);
-extern int afs_DoPartialWrite(register struct vcache *avc,
+extern int afs_DoPartialWrite(struct vcache *avc,
                              struct vrequest *areq);
-extern int afs_closex(register struct file *afd);
+extern int afs_closex(struct file *afd);
 
 #ifdef AFS_SGI65_ENV
 extern int afs_close(OSI_VC_DECL(avc), afs_int32 aflags, 
@@ -1337,7 +1337,7 @@ extern void afs_ResetVolumes(struct server *srvp);
 extern struct volume *afs_GetVolume(struct VenusFid *afid,
                                    struct vrequest *areq,
                                    afs_int32 locktype);
-extern struct volume *afs_GetVolumeByName(register char *aname,
+extern struct volume *afs_GetVolumeByName(char *aname,
                                          afs_int32 acell, int agood,
                                          struct vrequest *areq,
                                          afs_int32 locktype);
index 325ae626b2353dc6e5aad5a264b1f5b510ac9121..4483d3225816224e6ab2049e10e450fb4df377c8 100644 (file)
@@ -36,14 +36,14 @@ afs_uint32 afs_stampValue = 0;
  */
 
 static int
-afs_StoreMini(register struct vcache *avc, struct vrequest *areq)
+afs_StoreMini(struct vcache *avc, struct vrequest *areq)
 {
-    register struct afs_conn *tc;
+    struct afs_conn *tc;
     struct AFSStoreStatus InStatus;
     struct AFSFetchStatus OutStatus;
     struct AFSVolSync tsync;
-    register afs_int32 code;
-    register struct rx_call *tcall;
+    afs_int32 code;
+    struct rx_call *tcall;
     afs_size_t tlen, xlen = 0;
     XSTATS_DECLS;
     AFS_STATCNT(afs_StoreMini);
@@ -157,13 +157,13 @@ int afs_dvhack = 0;
 
 
 int
-afs_StoreAllSegments(register struct vcache *avc, struct vrequest *areq,
+afs_StoreAllSegments(struct vcache *avc, struct vrequest *areq,
                     int sync)
 {
-    register struct dcache *tdc;
-    register afs_int32 code = 0;
-    register afs_int32 index;
-    register afs_int32 origCBs, foreign = 0;
+    struct dcache *tdc;
+    afs_int32 code = 0;
+    afs_int32 index;
+    afs_int32 origCBs, foreign = 0;
     int hash;
     afs_hyper_t newDV, oldDV;  /* DV when we start, and finish, respectively */
     struct dcache **dcList;
@@ -649,12 +649,12 @@ afs_ExtendSegments(struct vcache *avc, afs_size_t alen, struct vrequest *areq)
  *     held.
  */
 int
-afs_TruncateAllSegments(register struct vcache *avc, afs_size_t alen,
+afs_TruncateAllSegments(struct vcache *avc, afs_size_t alen,
                        struct vrequest *areq, afs_ucred_t *acred)
 {
-    register struct dcache *tdc;
-    register afs_int32 code;
-    register afs_int32 index;
+    struct dcache *tdc;
+    afs_int32 code;
+    afs_int32 index;
     afs_size_t newSize;
 
     int dcCount, dcPos;
index c00dd2166c21cbfbd5c8e52c91a29f02e7cad9f1..4bb1c8359ef49f5f4866453633aee402216b6bb5 100644 (file)
@@ -130,8 +130,8 @@ GetUpDownStats(struct server *srv)
 void
 afs_MarkServerUpOrDown(struct srvAddr *sa, int a_isDown)
 {
-    register struct server *a_serverP = sa->server;
-    register struct srvAddr *sap;
+    struct server *a_serverP = sa->server;
+    struct srvAddr *sap;
     osi_timeval_t currTime, *currTimeP;        /*Current time */
     afs_int32 downTime;                /*Computed downtime, in seconds */
     struct afs_stats_SrvUpDownInfo *upDownP;   /*Ptr to up/down info record */
@@ -240,7 +240,7 @@ afs_MarkServerUpOrDown(struct srvAddr *sa, int a_isDown)
 afs_int32
 afs_ServerDown(struct srvAddr *sa)
 {
-    register struct server *aserver = sa->server;
+    struct server *aserver = sa->server;
 
     AFS_STATCNT(ServerDown);
     if (aserver->flags & SRVR_ISDOWN || sa->sa_flags & SRVADDR_ISDOWN) 
@@ -260,9 +260,9 @@ afs_ServerDown(struct srvAddr *sa)
 int
 afs_HaveCallBacksFrom(struct server *aserver)
 {
-    register afs_int32 now;
-    register int i;
-    register struct vcache *tvc;
+    afs_int32 now;
+    int i;
+    struct vcache *tvc;
 
     AFS_STATCNT(HaveCallBacksFrom);
     now = osi_Time();          /* for checking for expired callbacks */
@@ -283,11 +283,11 @@ afs_HaveCallBacksFrom(struct server *aserver)
 
 
 static void
-CheckVLServer(register struct srvAddr *sa, struct vrequest *areq)
+CheckVLServer(struct srvAddr *sa, struct vrequest *areq)
 {
-    register struct server *aserver = sa->server;
-    register struct afs_conn *tc;
-    register afs_int32 code;
+    struct server *aserver = sa->server;
+    struct afs_conn *tc;
+    afs_int32 code;
 
     AFS_STATCNT(CheckVLServer);
     /* Ping dead servers to see if they're back */
@@ -879,7 +879,7 @@ unsigned int
 afs_random(void)
 {
     static afs_int32 state = 0;
-    register int i;
+    int i;
 
     AFS_STATCNT(afs_random);
     if (!state) {
index d3496bf1381c357b227af88ff3696bf70f196cde..c70d0a4eb8d4b88eae4e04a23c7a7c446f40e476 100644 (file)
@@ -174,8 +174,8 @@ copyin_afs_ioctl(caddr_t cmarg, struct afs_ioctl *dst)
  */
 syscall(syscall, p1, p2, p3, p4, p5, p6)
 {
-    register rval1 = 0, code;
-    register monster;
+    int rval1 = 0, code;
+    int monster;
     int retval = 0;
 #ifndef AFS_AIX41_ENV
     extern lock_t kernel_lock;
@@ -466,7 +466,7 @@ struct afssysa {
 };
 # endif
 
-Afs_syscall(register struct afssysa *uap, rval_t * rvp)
+Afs_syscall(struct afssysa *uap, rval_t * rvp)
 {
     int *retval = &rvp->r_val1;
 #elif defined(AFS_DARWIN100_ENV)
@@ -497,7 +497,7 @@ afs3_syscall(afs_proc_t *p, void *args, unsigned int *retval)
 int
 afs3_syscall(struct thread *p, void *args)
 {
-    register struct a {
+    struct a {
        long syscall;
        long parm1;
        long parm2;
@@ -518,7 +518,7 @@ afs3_syscall(struct lwp *p, void *args)
 int
 afs3_syscall(afs_proc_t *p, void *args, long *retval)
 {
-    register struct a {
+    struct a {
        long syscall;
        long parm1;
        long parm2;
@@ -554,7 +554,7 @@ afs_syscall(long syscall, long parm1, long parm2, long parm3, long parm4)
 int
 Afs_syscall()
 {
-    register struct a {
+    struct a {
        long syscall;
        long parm1;
        long parm2;
@@ -567,7 +567,7 @@ Afs_syscall()
 int
 Afs_syscall()
 {
-    register struct a {
+    struct a {
        long syscall;
        long parm1;
        long parm2;
@@ -585,7 +585,7 @@ Afs_syscall()
     int *retval = &u.u_rval1;
 # endif
 #endif
-    register int code = 0;
+    int code = 0;
 
     AFS_STATCNT(afs_syscall);
 #ifdef        AFS_SUN5_ENV
@@ -709,7 +709,7 @@ Afs_syscall()
        } else if (uap->syscall == AFSCALL_SETPAG) {
 #endif
 #ifdef AFS_SUN5_ENV
-           register proc_t *procp;
+           proc_t *procp;
 
            procp = ttoproc(curthread);
            AFS_GLOCK();
index d99f3a0cd2ae08dc468ddbcb4abcbbc98c6eac0e..9976431edc020576b1cbdb79239d1015f739f58f 100644 (file)
@@ -58,12 +58,12 @@ void afs_ResetAccessCache(afs_int32 uid, int alock);
  * appropriate conn structures for au
  */
 static void
-RemoveUserConns(register struct unixuser *au)
+RemoveUserConns(struct unixuser *au)
 {
-    register int i;
-    register struct server *ts;
-    register struct srvAddr *sa;
-    register struct afs_conn *tc, **lc;
+    int i;
+    struct server *ts;
+    struct srvAddr *sa;
+    struct afs_conn *tc, **lc;
 
     AFS_STATCNT(RemoveUserConns);
     for (i = 0; i < NSERVERS; i++) {
@@ -98,8 +98,8 @@ RemoveUserConns(register struct unixuser *au)
 void
 afs_GCUserData(int aforce)
 {
-    register struct unixuser *tu, **lu, *nu;
-    register int i;
+    struct unixuser *tu, **lu, *nu;
+    int i;
     afs_int32 now, delFlag;
 
     AFS_STATCNT(afs_GCUserData);
@@ -163,8 +163,8 @@ afs_GCUserData(int aforce)
 void
 afs_CheckTokenCache(void)
 {
-    register int i;
-    register struct unixuser *tu;
+    int i;
+    struct unixuser *tu;
     afs_int32 now;
 
     AFS_STATCNT(afs_CheckCacheResets);
@@ -173,7 +173,7 @@ afs_CheckTokenCache(void)
     now = osi_Time();
     for (i = 0; i < NUSERS; i++) {
        for (tu = afs_users[i]; tu; tu = tu->next) {
-           register afs_int32 uid;
+           afs_int32 uid;
 
            /*
             * If tokens are still good and user has Kerberos tickets,
@@ -210,8 +210,8 @@ afs_CheckTokenCache(void)
 void
 afs_ResetAccessCache(afs_int32 uid, int alock)
 {
-    register int i;
-    register struct vcache *tvc;
+    int i;
+    struct vcache *tvc;
     struct axscache *ac;
 
     AFS_STATCNT(afs_ResetAccessCache);
@@ -237,7 +237,7 @@ afs_ResetAccessCache(afs_int32 uid, int alock)
  * access info.
  */
 void
-afs_ResetUserConns(register struct unixuser *auser)
+afs_ResetUserConns(struct unixuser *auser)
 {
     int i;
     struct srvAddr *sa;
@@ -268,8 +268,8 @@ afs_ResetUserConns(register struct unixuser *auser)
 struct unixuser *
 afs_FindUser(afs_int32 auid, afs_int32 acell, afs_int32 locktype)
 {
-    register struct unixuser *tu;
-    register afs_int32 i;
+    struct unixuser *tu;
+    afs_int32 i;
 
     AFS_STATCNT(afs_FindUser);
     i = UHash(auid);
@@ -312,9 +312,9 @@ afs_FindUser(afs_int32 auid, afs_int32 acell, afs_int32 locktype)
 void
 afs_ComputePAGStats(void)
 {
-    register struct unixuser *currPAGP;        /*Ptr to curr PAG */
-    register struct unixuser *cmpPAGP; /*Ptr to PAG being compared */
-    register struct afs_stats_AuthentInfo *authP;      /*Ptr to stats area */
+    struct unixuser *currPAGP; /*Ptr to curr PAG */
+    struct unixuser *cmpPAGP;  /*Ptr to PAG being compared */
+    struct afs_stats_AuthentInfo *authP;       /*Ptr to stats area */
     int curr_Record;           /*Curr record */
     int currChain;             /*Curr hash chain */
     int currChainLen;          /*Length of curr hash chain */
@@ -445,11 +445,11 @@ afs_ComputePAGStats(void)
 
 
 struct unixuser *
-afs_GetUser(register afs_int32 auid, afs_int32 acell, afs_int32 locktype)
+afs_GetUser(afs_int32 auid, afs_int32 acell, afs_int32 locktype)
 {
-    register struct unixuser *tu, *pu = 0;
-    register afs_int32 i;
-    register afs_int32 RmtUser = 0;
+    struct unixuser *tu, *pu = 0;
+    afs_int32 i;
+    afs_int32 RmtUser = 0;
 
     AFS_STATCNT(afs_GetUser);
     i = UHash(auid);
@@ -506,7 +506,7 @@ afs_GetUser(register afs_int32 auid, afs_int32 acell, afs_int32 locktype)
 
 
 void
-afs_PutUser(register struct unixuser *au, afs_int32 locktype)
+afs_PutUser(struct unixuser *au, afs_int32 locktype)
 {
     AFS_STATCNT(afs_PutUser);
     --au->refCount;
@@ -518,10 +518,10 @@ afs_PutUser(register struct unixuser *au, afs_int32 locktype)
  * dude has the flag set at any time for a particular unix uid.
  */
 void
-afs_SetPrimary(register struct unixuser *au, register int aflag)
+afs_SetPrimary(struct unixuser *au, int aflag)
 {
-    register struct unixuser *tu;
-    register int i;
+    struct unixuser *tu;
+    int i;
     struct unixuser *pu;
 
     AFS_STATCNT(afs_SetPrimary);
index cf0d58bb7c1f00e6861088671823f49d5413bedd..74e59218d4ec10ea0390cc6f3135b4163c319a20 100644 (file)
@@ -59,8 +59,8 @@ afs_int32 afs_new_inum = 0;
 char *
 afs_cv2string(char *ttp, afs_uint32 aval)
 {
-    register char *tp = ttp;
-    register int i;
+    char *tp = ttp;
+    int i;
     int any;
 
     AFS_STATCNT(afs_cv2string);
@@ -198,7 +198,7 @@ void
 print_internet_address(char *preamble, struct srvAddr *sa, char *postamble,
                       int flag)
 {
-    register struct server *aserver = sa->server;
+    struct server *aserver = sa->server;
     char *ptr = "\n";
     afs_uint32 address;
 
@@ -231,13 +231,13 @@ print_internet_address(char *preamble, struct srvAddr *sa, char *postamble,
 void
 afs_CheckLocks(void)
 {
-    register int i;
+    int i;
 
     afs_warn("Looking for locked data structures.\n");
     afs_warn("conn %p, volume %p, user %p, cell %p, server %p\n", &afs_xconn,
             &afs_xvolume, &afs_xuser, &afs_xcell, &afs_xserver);
     {
-       register struct vcache *tvc;
+       struct vcache *tvc;
        AFS_STATCNT(afs_CheckLocks);
 
        for (i = 0; i < VCSIZE; i++) {
@@ -255,7 +255,7 @@ afs_CheckLocks(void)
        }
     }
     {
-       register struct dcache *tdc;
+       struct dcache *tdc;
        for (i = 0; i < afs_cacheFiles; i++) {
            tdc = afs_indexTable[i];
            if (tdc) {
index 2d99644475cb746e48d1cb647aad7c88b07c6ab9..5b7bc1f35ef577871ed8ea3882e415ad19732fcb 100644 (file)
@@ -297,7 +297,7 @@ static struct afs_cbr *afs_cbrHeads[16];
 struct afs_cbr *
 afs_AllocCBR(void)
 {
-    register struct afs_cbr *tsp;
+    struct afs_cbr *tsp;
     int i;
 
     if (!afs_cbrSpace) {
@@ -341,7 +341,7 @@ afs_AllocCBR(void)
  * \rerurn 0
  */
 int
-afs_FreeCBR(register struct afs_cbr *asp)
+afs_FreeCBR(struct afs_cbr *asp)
 {
     *(asp->pprev) = asp->next;
     if (asp->next)
@@ -897,12 +897,12 @@ afs_NewBulkVCache(struct VenusFid *afid, struct server *serverp, int seq)
  * \param doflocks : Do we handle flocks?
  */
 void
-afs_FlushActiveVcaches(register afs_int32 doflocks)
+afs_FlushActiveVcaches(afs_int32 doflocks)
 {
-    register struct vcache *tvc;
-    register int i;
-    register struct afs_conn *tc;
-    register afs_int32 code;
+    struct vcache *tvc;
+    int i;
+    struct afs_conn *tc;
+    afs_int32 code;
     afs_ucred_t *cred = NULL;
     struct vrequest treq, ureq;
     struct AFSVolSync tsync;
@@ -1076,7 +1076,7 @@ afs_FlushActiveVcaches(register afs_int32 doflocks)
 int
 afs_VerifyVCache2(struct vcache *avc, struct vrequest *areq)
 {
-    register struct vcache *tvc;
+    struct vcache *tvc;
 
     AFS_STATCNT(afs_VerifyVCache);
 
@@ -1124,8 +1124,8 @@ afs_VerifyVCache2(struct vcache *avc, struct vrequest *areq)
  *
  */
 static void
-afs_SimpleVStat(register struct vcache *avc,
-               register struct AFSFetchStatus *astat, struct vrequest *areq)
+afs_SimpleVStat(struct vcache *avc,
+               struct AFSFetchStatus *astat, struct vrequest *areq)
 {
     afs_size_t length;
     AFS_STATCNT(afs_SimpleVStat);
@@ -1217,8 +1217,8 @@ afs_SimpleVStat(register struct vcache *avc,
  */
 
 int
-afs_WriteVCache(register struct vcache *avc,
-               register struct AFSStoreStatus *astatus,
+afs_WriteVCache(struct vcache *avc,
+               struct AFSStoreStatus *astatus,
                struct vrequest *areq)
 {
     afs_int32 code;
@@ -1280,8 +1280,8 @@ afs_WriteVCache(register struct vcache *avc,
  * \note Must be called with a shared lock on the vnode
  */
 int
-afs_WriteVCacheDiscon(register struct vcache *avc,
-                     register struct AFSStoreStatus *astatus,
+afs_WriteVCacheDiscon(struct vcache *avc,
+                     struct AFSStoreStatus *astatus,
                      struct vattr *attrs)
 {
     afs_int32 code = 0;
@@ -1361,8 +1361,8 @@ afs_WriteVCacheDiscon(register struct vcache *avc,
  * \param areq Ptr to associated request.
  */
 void
-afs_ProcessFS(register struct vcache *avc,
-             register struct AFSFetchStatus *astat, struct vrequest *areq)
+afs_ProcessFS(struct vcache *avc,
+             struct AFSFetchStatus *astat, struct vrequest *areq)
 {
     afs_size_t length;
     AFS_STATCNT(afs_ProcessFS);
@@ -1458,7 +1458,7 @@ afs_ProcessFS(register struct vcache *avc,
  * \return Success status of operation.
  */
 int
-afs_RemoteLookup(register struct VenusFid *afid, struct vrequest *areq,
+afs_RemoteLookup(struct VenusFid *afid, struct vrequest *areq,
                 char *name, struct VenusFid *nfid,
                 struct AFSFetchStatus *OutStatusp,
                 struct AFSCallBack *CallBackp, struct server **serverp,
@@ -1466,7 +1466,7 @@ afs_RemoteLookup(register struct VenusFid *afid, struct vrequest *areq,
 {
     afs_int32 code;
     afs_uint32 start;
-    register struct afs_conn *tc;
+    struct afs_conn *tc;
     struct AFSFetchStatus OutDirStatus;
     XSTATS_DECLS;
     if (!name)
@@ -1530,12 +1530,12 @@ afs_RemoteLookup(register struct VenusFid *afid, struct vrequest *areq,
  *  already be held by the caller 
  */
 struct vcache *
-afs_GetVCache(register struct VenusFid *afid, struct vrequest *areq,
+afs_GetVCache(struct VenusFid *afid, struct vrequest *areq,
              afs_int32 * cached, struct vcache *avc)
 {
 
     afs_int32 code, newvcache = 0;
-    register struct vcache *tvc;
+    struct vcache *tvc;
     struct volume *tvp;
     afs_int32 retry;
 
@@ -1779,7 +1779,7 @@ afs_LookupVCache(struct VenusFid *afid, struct vrequest *areq,
 {
     afs_int32 code, now, newvcache = 0;
     struct VenusFid nfid;
-    register struct vcache *tvc;
+    struct vcache *tvc;
     struct volume *tvp;
     struct AFSFetchStatus OutStatus;
     struct AFSCallBack CallBack;
@@ -1953,7 +1953,7 @@ afs_GetRootVCache(struct VenusFid *afid, struct vrequest *areq,
     afs_int32 getNewFid = 0;
     afs_uint32 start;
     struct VenusFid nfid;
-    register struct vcache *tvc;
+    struct vcache *tvc;
     struct server *serverp = 0;
     struct AFSFetchStatus OutStatus;
     struct AFSCallBack CallBack;
@@ -2250,7 +2250,7 @@ afs_FetchStatus(struct vcache * avc, struct VenusFid * afid,
 {
     int code;
     afs_uint32 start = 0;
-    register struct afs_conn *tc;
+    struct afs_conn *tc;
     struct AFSCallBack CallBack;
     struct AFSVolSync tsync;
     XSTATS_DECLS;
@@ -2313,13 +2313,13 @@ afs_FetchStatus(struct vcache * avc, struct VenusFid * afid,
  *     Nothing interesting.
  */
 void
-afs_StuffVcache(register struct VenusFid *afid,
+afs_StuffVcache(struct VenusFid *afid,
                struct AFSFetchStatus *OutStatus,
-               struct AFSCallBack *CallBack, register struct afs_conn *tc,
+               struct AFSCallBack *CallBack, struct afs_conn *tc,
                struct vrequest *areq)
 {
-    register afs_int32 code, i, newvcache = 0;
-    register struct vcache *tvc;
+    afs_int32 code, i, newvcache = 0;
+    struct vcache *tvc;
     struct AFSVolSync tsync;
     struct volume *tvp;
     struct axscache *ac;
@@ -2447,7 +2447,7 @@ afs_StuffVcache(register struct VenusFid *afid,
  * \note Environment: Nothing interesting.
  */
 void
-afs_PutVCache(register struct vcache *avc)
+afs_PutVCache(struct vcache *avc)
 {
     AFS_STATCNT(afs_PutVCache);
 #ifdef AFS_DARWIN80_ENV
@@ -2588,7 +2588,7 @@ struct vcache *
 afs_FindVCache(struct VenusFid *afid, afs_int32 * retry, afs_int32 flag)
 {
 
-    register struct vcache *tvc;
+    struct vcache *tvc;
     afs_int32 i;
 #ifdef AFS_DARWIN80_ENV
     vnode_t tvp;
@@ -2716,7 +2716,7 @@ int afs_duplicate_nfs_fids = 0;
 afs_int32
 afs_NFSFindVCache(struct vcache **avcp, struct VenusFid *afid)
 {
-    register struct vcache *tvc;
+    struct vcache *tvc;
     afs_int32 i;
     afs_int32 count = 0;
     struct vcache *found_tvc = NULL;
@@ -2857,7 +2857,7 @@ void
 afs_vcacheInit(int astatSize)
 {
 #if !defined(AFS_LINUX22_ENV)
-    register struct vcache *tvp;
+    struct vcache *tvp;
 #endif
     int i;
     if (!afs_maxvcount) {
@@ -2924,8 +2924,8 @@ shutdown_vcache(void)
      */
 
     {
-       register struct afs_q *tq, *uq = NULL;
-       register struct vcache *tvc;
+       struct afs_q *tq, *uq = NULL;
+       struct vcache *tvc;
        for (tq = VLRU.prev; tq != &VLRU; tq = uq) {
            tvc = QTOV(tq);
            uq = QPrev(tq);
index b349a65225b2aa156e0e6f10d2a1ab48364384e0..3758cc016c99ebc66c5d07f281f45297b9659965 100644 (file)
@@ -79,10 +79,10 @@ static int inVolList(struct VenusFid *fid, afs_int32 nvols, afs_int32 * vID,
  * @return return 0 if can't parse as a number.
  */
 static int
-afs_vtoi(register char *aname)
+afs_vtoi(char *aname)
 {
-    register afs_int32 temp;
-    register int tc;
+    afs_int32 temp;
+    int tc;
     temp = 0;
     AFS_STATCNT(afs_vtoi);
     while ((tc = *aname++)) {
@@ -113,9 +113,9 @@ afs_int32 afs_FVIndex = -1;
 struct volume *
 afs_UFSGetVolSlot(void)
 {
-    register struct volume *tv = NULL, **lv;
+    struct volume *tv = NULL, **lv;
     struct osi_file *tfile;
-    register afs_int32 i = -1, code;
+    afs_int32 i = -1, code;
     afs_int32 bestTime;
     struct volume *bestVp, *oldLp = NULL, **bestLp = NULL;
     char *oldname = NULL;
@@ -239,7 +239,7 @@ afs_UFSGetVolSlot(void)
 struct volume *
 afs_MemGetVolSlot(void)
 {
-    register struct volume *tv;
+    struct volume *tv;
 
     AFS_STATCNT(afs_MemGetVolSlot);
     if (!afs_freeVolList) {
@@ -653,7 +653,7 @@ afs_SetupVolume(afs_int32 volid, char *aname, void *ve, struct cell *tcell,
  * @return 
  */
 struct volume *
-afs_GetVolumeByName(register char *aname, afs_int32 acell, int agood,
+afs_GetVolumeByName(char *aname, afs_int32 acell, int agood,
                    struct vrequest *areq, afs_int32 locktype)
 {
     afs_int32 i;
@@ -882,9 +882,9 @@ afs_NewVolumeByName(char *aname, afs_int32 acell, int agood,
 void
 InstallVolumeEntry(struct volume *av, struct vldbentry *ve, int acell)
 {
-    register struct server *ts;
+    struct server *ts;
     struct cell *cellp;
-    register int i, j;
+    int i, j;
     afs_int32 mask;
     afs_uint32 temp;
 
@@ -960,9 +960,9 @@ InstallVolumeEntry(struct volume *av, struct vldbentry *ve, int acell)
 void
 InstallNVolumeEntry(struct volume *av, struct nvldbentry *ve, int acell)
 {
-    register struct server *ts;
+    struct server *ts;
     struct cell *cellp;
-    register int i, j;
+    int i, j;
     afs_int32 mask;
     afs_uint32 temp;
 
@@ -1038,10 +1038,10 @@ void
 InstallUVolumeEntry(struct volume *av, struct uvldbentry *ve, int acell,
                    struct cell *tcell, struct vrequest *areq)
 {
-    register struct server *ts;
+    struct server *ts;
     struct afs_conn *tconn;
     struct cell *cellp;
-    register int i, j;
+    int i, j;
     afs_uint32 serverid;
     afs_int32 mask;
     int k;
index df342eda2acc04823415f253f36e039727742998..d756342746c5ca67a79d03575ba500a16049c6d7 100644 (file)
@@ -17,8 +17,8 @@ extern afs_int32    afs_ConflictPolicy;
 
 extern afs_uint32 afs_DisconVnode; /* XXX: not protected. */
 
-extern int afs_WriteVCacheDiscon(register struct vcache *avc,
-                                       register struct AFSStoreStatus *astatus,
+extern int afs_WriteVCacheDiscon(struct vcache *avc,
+                                       struct AFSStoreStatus *astatus,
                                        struct vattr *attrs);
 extern int afs_ResyncDisconFiles(struct vrequest *areq,
                                        afs_ucred_t *acred);
index 0fbc44786f76d4a3cdbe605b2b2e1af6ef807382..27f7cc71de3aed80068e94b3717a53971e02edc9 100644 (file)
@@ -469,7 +469,7 @@ getTokenLen(char *buf)
     afs_int32 len = 0;
     afs_int32 rc = 0;
     char cellName[WEBLOG_CELLNAME_MAX];
-    register char *tp;
+    char *tp;
     int n = sizeof(afs_int32);
     struct ClearToken {
        afs_int32 AuthHandle;
@@ -505,7 +505,7 @@ long
 getExpiration(char *buf)
 {
     afs_int32 len = 0;
-    register char *tp;
+    char *tp;
     int n = sizeof(afs_int32);
     struct ClearToken {
        afs_int32 AuthHandle;
index 8cc3e633d8815bdb3db6fd7130cbe34738ace3cf..b4b202b5d3901e20095716c836bfc0c5850d7988 100644 (file)
@@ -375,7 +375,7 @@ request_Authentication(char *user, char *passwd, char *cell, char *type,
 static int
 setToken(char *tokenBuf, int tokenLen)
 {
-    register char *temp;
+    char *temp;
     afs_int32 i = 0;
 
     afsassert(tokenBuf);
index 4a87fbea11d484e0dc8f852f02fc03120f17b144..dc17b2e2b25dbbb7526799afa9eeeef39cb1b3be 100644 (file)
@@ -191,7 +191,7 @@ parseToken(char *buf)
 {
     afs_int32 len = 0;
     char cellName[64];
-    register char *tp;
+    char *tp;
 
     struct ClearToken {
        afs_int32 AuthHandle;
index c7632746017475ef5bd4fafc11cf0d98e6385ea8..e538a19658077b74b6c3d3692f557986aee13639 100644 (file)
@@ -55,7 +55,7 @@ int
 main(int argc, char *argv[])
 {
     struct afsconf_dir *tdir;
-    register long code;
+    long code;
     const char *confdir;
 
     if (argc == 1) {
@@ -173,7 +173,7 @@ main(int argc, char *argv[])
     }
     else if (strcmp(argv[1], "list") == 0) {
        struct afsconf_keys tkeys;
-       register int i, j;
+       int i, j;
        
        code = afsconf_GetKeys(tdir, &tkeys);
        if (code) {
index fa037d6fcce091ed2f84b9c359e6a6f22a203ebe..f18561951c4947e41d702cdef7898d94119ada9b 100644 (file)
@@ -160,7 +160,7 @@ getpipepass(void)
 {
     static char gpbuf[BUFSIZ];
     /* read a password from stdin, stop on \n or eof */
-    register int i, tc;
+    int i, tc;
     memset(gpbuf, 0, sizeof(gpbuf));
     for (i = 0; i < (sizeof(gpbuf) - 1); i++) {
        tc = fgetc(stdin);
index 61fd7315ba637fe41478781e4097803384af2792..a10859ce874433c3da5cdb9fbc953dc9f3f6c674 100644 (file)
@@ -35,7 +35,7 @@
 static afs_int32
 QuickAuth(struct rx_securityClass **astr, afs_int32 *aindex)
 {
-    register struct rx_securityClass *tc;
+    struct rx_securityClass *tc;
     tc = rxnull_NewClientSecurityObject();
     *astr = tc;
     *aindex = RX_SECIDX_NULL;
@@ -50,7 +50,7 @@ afsconf_ServerAuth(void *arock,
                   afs_int32 *aindex)
 {
     struct afsconf_dir *adir = (struct afsconf_dir *) arock;
-    register struct rx_securityClass *tclass;
+    struct rx_securityClass *tclass;
 
     LOCK_GLOBAL_MUTEX;
     tclass = (struct rx_securityClass *)
@@ -78,7 +78,7 @@ GenericAuth(struct afsconf_dir *adir,
     struct rx_securityClass *tclass;
     afs_int32 kvno;
     afs_int32 ticketLen;
-    register afs_int32 code;
+    afs_int32 code;
 
     /* first, find the right key and kvno to use */
     code = afsconf_GetLatestKey(adir, &kvno, &key);
index 4c21918f6387fa7d064e6ea2bfe6a9f869115100..f2f5b5765d1ff7a2f6a917a3fd57789a013e4e6a 100644 (file)
@@ -88,17 +88,17 @@ static int IsClientConfigDirectory(const char *path);
 #ifdef AFS_NT40_ENV
 static int GetCellNT(struct afsconf_dir *adir);
 #endif
-static int afsconf_Check(register struct afsconf_dir *adir);
-static int afsconf_Touch(register struct afsconf_dir *adir);
+static int afsconf_Check(struct afsconf_dir *adir);
+static int afsconf_Touch(struct afsconf_dir *adir);
 static int GetCellUnix(struct afsconf_dir *adir);
-static int afsconf_OpenInternal(register struct afsconf_dir *adir, char *cell,
+static int afsconf_OpenInternal(struct afsconf_dir *adir, char *cell,
                                char clones[]);
-static int ParseHostLine(char *aline, register struct sockaddr_in *addr,
+static int ParseHostLine(char *aline, struct sockaddr_in *addr,
                         char *aname, char *aclone);
-static int ParseCellLine(register char *aline, register char *aname,
-                        register char *alname);
-static int afsconf_CloseInternal(register struct afsconf_dir *adir);
-static int afsconf_Reopen(register struct afsconf_dir *adir);
+static int ParseCellLine(char *aline, char *aname,
+                        char *alname);
+static int afsconf_CloseInternal(struct afsconf_dir *adir);
+static int afsconf_Reopen(struct afsconf_dir *adir);
 static int SaveKeys(struct afsconf_dir *adir);
 
 #ifndef T_AFSDB
@@ -274,8 +274,8 @@ static int
 TrimLine(char *abuffer, int abufsize)
 {
     char tbuffer[256];
-    register char *tp;
-    register int tc;
+    char *tp;
+    int tc;
 
     tp = abuffer;
     while ((tc = *tp)) {
@@ -339,14 +339,14 @@ IsClientConfigDirectory(const char *path)
 
 
 static int
-afsconf_Check(register struct afsconf_dir *adir)
+afsconf_Check(struct afsconf_dir *adir)
 {
     char tbuffer[256];
 #ifdef AFS_NT40_ENV
     char *p;
 #endif
     struct stat tstat;
-    register afs_int32 code;
+    afs_int32 code;
 
 #ifdef AFS_NT40_ENV
     /* NT client CellServDB has different file name than NT server or Unix */
@@ -388,7 +388,7 @@ afsconf_Check(register struct afsconf_dir *adir)
 
 /* set modtime on file */
 static int
-afsconf_Touch(register struct afsconf_dir *adir)
+afsconf_Touch(struct afsconf_dir *adir)
 {
     char tbuffer[256];
 #ifndef AFS_NT40_ENV
@@ -432,10 +432,10 @@ afsconf_Touch(register struct afsconf_dir *adir)
 }
 
 struct afsconf_dir *
-afsconf_Open(register const char *adir)
+afsconf_Open(const char *adir)
 {
-    register struct afsconf_dir *tdir;
-    register afs_int32 code;
+    struct afsconf_dir *tdir;
+    afs_int32 code;
 
     LOCK_GLOBAL_MUTEX;
     /* zero structure and fill in name; rest is done by internal routine */
@@ -618,14 +618,14 @@ cm_enumCellRegistryProc(void *rockp, char * cellNamep)
 
 
 static int
-afsconf_OpenInternal(register struct afsconf_dir *adir, char *cell,
+afsconf_OpenInternal(struct afsconf_dir *adir, char *cell,
                     char clones[])
 {
     afsconf_FILE *tf;
-    register char *tp, *bp;
-    register struct afsconf_entry *curEntry;
+    char *tp, *bp;
+    struct afsconf_entry *curEntry;
     struct afsconf_aliasentry *curAlias;
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 i;
     char tbuffer[256], tbuf1[256];
     struct stat tstat;
@@ -859,12 +859,12 @@ afsconf_OpenInternal(register struct afsconf_dir *adir, char *cell,
  * into the appropriate pieces.  
  */
 static int
-ParseHostLine(char *aline, register struct sockaddr_in *addr, char *aname,
+ParseHostLine(char *aline, struct sockaddr_in *addr, char *aname,
              char *aclone)
 {
     int c1, c2, c3, c4;
-    register afs_int32 code;
-    register char *tp;
+    afs_int32 code;
+    char *tp;
 
     if (*aline == '[') {
        if (aclone)
@@ -897,10 +897,10 @@ ParseHostLine(char *aline, register struct sockaddr_in *addr, char *aname,
  * into the appropriate pieces.
  */
 static int
-ParseCellLine(register char *aline, register char *aname,
-             register char *alname)
+ParseCellLine(char *aline, char *aname,
+             char *alname)
 {
-    register int code;
+    int code;
     /* FIXME: length of aname, alname unknown here */
     code = sscanf(aline, ">%s %s", aname, alname);
     if (code == 1)
@@ -919,8 +919,8 @@ afsconf_CellApply(struct afsconf_dir *adir,
                  int (*aproc) (struct afsconf_cell * cell, void *arock,
                                struct afsconf_dir * dir), void *arock)
 {
-    register struct afsconf_entry *tde;
-    register afs_int32 code;
+    struct afsconf_entry *tde;
+    afs_int32 code;
     LOCK_GLOBAL_MUTEX;
     for (tde = adir->entries; tde; tde = tde->next) {
        code = (*aproc) (&tde->cellInfo, arock, adir);
@@ -942,8 +942,8 @@ afsconf_CellAliasApply(struct afsconf_dir *adir,
                                     void *arock, struct afsconf_dir * dir),
                       void *arock)
 {
-    register struct afsconf_aliasentry *tde;
-    register afs_int32 code;
+    struct afsconf_aliasentry *tde;
+    afs_int32 code;
     LOCK_GLOBAL_MUTEX;
     for (tde = adir->alias_entries; tde; tde = tde->next) {
        code = (*aproc) (&tde->aliasInfo, arock, adir);
@@ -1327,10 +1327,10 @@ int
 afsconf_GetCellInfo(struct afsconf_dir *adir, char *acellName, char *aservice,
                    struct afsconf_cell *acellInfo)
 {
-    register struct afsconf_entry *tce;
+    struct afsconf_entry *tce;
     struct afsconf_aliasentry *tcae;
     struct afsconf_entry *bestce;
-    register afs_int32 i;
+    afs_int32 i;
     int tservice;
     char *tcell;
     int cnLen;
@@ -1465,7 +1465,7 @@ afsconf_GetCellInfo(struct afsconf_dir *adir, char *acellName, char *aservice,
 }
 
 int
-afsconf_GetLocalCell(register struct afsconf_dir *adir, char *aname,
+afsconf_GetLocalCell(struct afsconf_dir *adir, char *aname,
                     afs_int32 alen)
 {
     static int afsconf_showcell = 0;
@@ -1511,11 +1511,11 @@ afsconf_Close(struct afsconf_dir *adir)
 }
 
 static int
-afsconf_CloseInternal(register struct afsconf_dir *adir)
+afsconf_CloseInternal(struct afsconf_dir *adir)
 {
-    register struct afsconf_entry *td, *nd;
+    struct afsconf_entry *td, *nd;
     struct afsconf_aliasentry *ta, *na;
-    register char *tname;
+    char *tname;
 
     tname = adir->name;                /* remember name, since that's all we preserve */
 
@@ -1542,9 +1542,9 @@ afsconf_CloseInternal(register struct afsconf_dir *adir)
 }
 
 static int
-afsconf_Reopen(register struct afsconf_dir *adir)
+afsconf_Reopen(struct afsconf_dir *adir)
 {
-    register afs_int32 code;
+    afs_int32 code;
     code = afsconf_CloseInternal(adir);
     if (code)
        return code;
@@ -1557,9 +1557,9 @@ int
 afsconf_IntGetKeys(struct afsconf_dir *adir)
 {
     char tbuffer[256];
-    register int fd;
+    int fd;
     struct afsconf_keys *tstr;
-    register afs_int32 code;
+    afs_int32 code;
 
 #ifdef AFS_NT40_ENV
     /* NT client config dir has no KeyFile; don't risk attempting open
@@ -1614,7 +1614,7 @@ afsconf_IntGetKeys(struct afsconf_dir *adir)
 int
 afsconf_GetKeys(struct afsconf_dir *adir, struct afsconf_keys *astr)
 {
-    register afs_int32 code;
+    afs_int32 code;
 
     LOCK_GLOBAL_MUTEX;
     code = afsconf_Check(adir);
@@ -1632,12 +1632,12 @@ afs_int32
 afsconf_GetLatestKey(struct afsconf_dir * adir, afs_int32 * avno, 
                     struct ktc_encryptionKey *akey)
 {
-    register int i;
+    int i;
     int maxa;
-    register struct afsconf_key *tk;
-    register afs_int32 best;
+    struct afsconf_key *tk;
+    afs_int32 best;
     struct afsconf_key *bestk;
-    register afs_int32 code;
+    afs_int32 code;
 
     LOCK_GLOBAL_MUTEX;
     code = afsconf_Check(adir);
@@ -1674,9 +1674,9 @@ int
 afsconf_GetKey(void *rock, int avno, struct ktc_encryptionKey *akey)
 {
     struct afsconf_dir *adir = (struct afsconf_dir *) rock;
-    register int i, maxa;
-    register struct afsconf_key *tk;
-    register afs_int32 code;
+    int i, maxa;
+    struct afsconf_key *tk;
+    afs_int32 code;
 
     LOCK_GLOBAL_MUTEX;
     code = afsconf_Check(adir);
@@ -1703,8 +1703,8 @@ static int
 SaveKeys(struct afsconf_dir *adir)
 {
     struct afsconf_keys tkeys;
-    register int fd;
-    register afs_int32 i;
+    int fd;
+    afs_int32 i;
     char tbuffer[256];
 
     memcpy(&tkeys, adir->keystr, sizeof(struct afsconf_keys));
@@ -1733,9 +1733,9 @@ int
 afsconf_AddKey(struct afsconf_dir *adir, afs_int32 akvno, char akey[8],
               afs_int32 overwrite)
 {
-    register struct afsconf_keys *tk;
-    register struct afsconf_key *tkey;
-    register afs_int32 i;
+    struct afsconf_keys *tk;
+    struct afsconf_key *tkey;
+    afs_int32 i;
     int foundSlot;
 
     LOCK_GLOBAL_MUTEX;
@@ -1779,9 +1779,9 @@ afsconf_AddKey(struct afsconf_dir *adir, afs_int32 akvno, char akey[8],
 int
 afsconf_DeleteKey(struct afsconf_dir *adir, afs_int32 akvno)
 {
-    register struct afsconf_keys *tk;
-    register struct afsconf_key *tkey;
-    register int i;
+    struct afsconf_keys *tk;
+    struct afsconf_key *tkey;
+    int i;
     int foundFlag = 0;
 
     LOCK_GLOBAL_MUTEX;
index 3e715270ee6319bc32116212b9208e9bb43e553d..4644c650a10df9d1d4b4e5883d4b5ce4be16fe98 100644 (file)
@@ -88,7 +88,7 @@ struct afsconf_dir {
 
 extern afs_int32 afsconf_FindService(const char *aname);
 extern const char *afsconf_FindIANAName(const char *aname);
-extern struct afsconf_dir *afsconf_Open(register const char *adir);
+extern struct afsconf_dir *afsconf_Open(const char *adir);
 extern int afsconf_CellApply(struct afsconf_dir *adir,
                             int (*aproc) (struct afsconf_cell * cell,
                                           void *arock,
@@ -108,7 +108,7 @@ extern int afsconf_GetAfsdbInfo(char *acellName, char *aservice,
 extern int afsconf_GetCellInfo(struct afsconf_dir *adir, char *acellName,
                               char *aservice,
                               struct afsconf_cell *acellInfo);
-extern int afsconf_GetLocalCell(register struct afsconf_dir *adir,
+extern int afsconf_GetLocalCell(struct afsconf_dir *adir,
                                char *aname, afs_int32 alen);
 extern int afsconf_Close(struct afsconf_dir *adir);
 extern int afsconf_IntGetKeys(struct afsconf_dir *adir);
@@ -180,7 +180,7 @@ struct rx_call;
 extern int afsconf_CheckAuth(void *arock, struct rx_call *acall);
 extern int afsconf_GetNoAuthFlag(struct afsconf_dir *adir);
 extern void afsconf_SetNoAuthFlag(struct afsconf_dir *adir, int aflag);
-extern int afsconf_DeleteUser(struct afsconf_dir *adir, register char *auser);
+extern int afsconf_DeleteUser(struct afsconf_dir *adir, char *auser);
 extern int afsconf_GetNthUser(struct afsconf_dir *adir, afs_int32 an, 
                              char *abuffer, afs_int32 abufferLen);
 extern int afsconf_AddUser(struct afsconf_dir *adir, char *aname);
index f3fa69f40ba4576039ca4b30393099145be5843a..b5eddd3e393e0cf1d9d68881c63cd5676657ad02 100644 (file)
@@ -30,8 +30,8 @@ int
 main(int argc, char **argv)
 {
     char localName[64];
-    register afs_int32 code;
-    register char *cname;
+    afs_int32 code;
+    char *cname;
     struct afsconf_dir *tdir;
     struct ktc_principal tserver;
     struct ktc_token token;
index 3dc4e2d4f02de17b903d59b10b874ccbb21065a5..8d15ec7eb81f68ae1ca3963942cd2155cc0bb245 100644 (file)
@@ -174,9 +174,9 @@ SetToken(struct ktc_principal *aserver, struct ktc_token *atoken,
 {
     struct ViceIoctl iob;
     char tbuffer[MAXPIOCTLTOKENLEN];
-    register char *tp;
+    char *tp;
     struct ClearToken ct;
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 temp;
 
     if (strcmp(aserver->name, "afs") != 0) {
@@ -395,11 +395,11 @@ ktc_GetToken(struct ktc_principal *aserver, struct ktc_token *atoken,
 {
     struct ViceIoctl iob;
     char tbuffer[MAXPIOCTLTOKENLEN];
-    register afs_int32 code = 0;
+    afs_int32 code = 0;
     int index;
     char *stp, *cellp;         /* secret token ptr */
     struct ClearToken ct;
-    register char *tp;
+    char *tp;
     afs_int32 temp;
     int maxLen;                        /* biggest ticket we can copy */
     int tktLen;                        /* server ticket length */
@@ -594,8 +594,8 @@ ktc_ListTokens(int aprevIndex,
 {
     struct ViceIoctl iob;
     char tbuffer[MAXPIOCTLTOKENLEN];
-    register afs_int32 code = 0 ;
-    register char *tp;
+    afs_int32 code = 0 ;
+    char *tp;
     afs_int32 temp, index;
 
     memset(tbuffer, 0, sizeof(tbuffer));
@@ -738,7 +738,7 @@ static int
 ForgetAll(void)
 {
     struct ViceIoctl iob;
-    register afs_int32 code;
+    afs_int32 code;
     int i;
 
     for (i = 0; i < MAXLOCALTOKENS; i++)
@@ -1194,9 +1194,9 @@ afs_tf_close(void)
  */
 
 static int
-tf_gets(register char *s, int n)
+tf_gets(char *s, int n)
 {
-    register int count;
+    int count;
 
     if (fd < 0) {
        return TKT_FIL_INI;
@@ -1229,9 +1229,9 @@ tf_gets(register char *s, int n)
  */
 
 static int
-tf_read(register char *s, register int n)
+tf_read(char *s, int n)
 {
-    register int count;
+    int count;
 
     for (count = n; count > 0; --count) {
        if (curpos >= sizeof(tfbfr)) {
@@ -1439,7 +1439,7 @@ afs_tf_create(char *pname, char *pinst)
     int count;
     char *file = ktc_tkt_string();
     int fd;
-    register int i;
+    int i;
     char zerobuf[1024];
     struct stat sbuf;
 
index aabc0c16eb78b0c59ca935f9f86a1510174faf7b..fa1fa03b9ed0a013ce2ec5e81297fdeddae1e025 100644 (file)
@@ -39,7 +39,7 @@ int
 main(int argc, char **argv)
 {
     struct afsconf_dir *tdir;
-    register afs_int32 code;
+    afs_int32 code;
     int i;
     char *cp;
 
@@ -95,7 +95,7 @@ main(int argc, char **argv)
        }
     } else if (strcmp(argv[1], "list") == 0) {
        struct afsconf_keys tkeys;
-       register int i;
+       int i;
        char tbuffer[9];
 
        code = afsconf_GetKeys(tdir, &tkeys);
index 1301c721dd425617e61b0967757dce895a5fecb7..cff88768f08a4014cdeff380c374381aec9ca34e 100644 (file)
@@ -41,7 +41,7 @@ Creation date:
 int 
 PrintOneCell(struct afsconf_cell *ainfo, void *arock, struct afsconf_dir *adir)
 {
-    register int i;
+    int i;
     long temp;
 
     printf("Cell %s:\n", ainfo->name);
@@ -61,7 +61,7 @@ main(int argc, char *argv[])
     char tbuffer[1024];
     struct afsconf_cell theCell;
     long i;
-    register long code;
+    long code;
     char *dirName;
 
 #ifdef AFS_NT40_ENV
index fef5326669e2f4f6b6dc12604de904059f012e04..89296f2755da0b8d69876c53679695083a5ec903 100644 (file)
@@ -83,7 +83,7 @@ afsconf_GetNoAuthFlag(struct afsconf_dir *adir)
 void
 afsconf_SetNoAuthFlag(struct afsconf_dir *adir, int aflag)
 {
-    register afs_int32 code;
+    afs_int32 code;
 
     LOCK_GLOBAL_MUTEX;
     if (aflag == 0) {
@@ -106,18 +106,18 @@ afsconf_SetNoAuthFlag(struct afsconf_dir *adir, int aflag)
 
 /* deletes a user from the UserList file */
 int
-afsconf_DeleteUser(struct afsconf_dir *adir, register char *auser)
+afsconf_DeleteUser(struct afsconf_dir *adir, char *auser)
 {
     char tbuffer[1024];
     char nbuffer[1024];
-    register FILE *tf;
-    register FILE *nf;
-    register int flag;
+    FILE *tf;
+    FILE *nf;
+    int flag;
     char tname[64 + 1];
     char *tp;
     int found;
     struct stat tstat;
-    register afs_int32 code;
+    afs_int32 code;
 
     LOCK_GLOBAL_MUTEX;
     strcompose(tbuffer, sizeof tbuffer, adir->name, "/",
@@ -200,11 +200,11 @@ afsconf_GetNthUser(struct afsconf_dir *adir, afs_int32 an, char *abuffer,
                   afs_int32 abufferLen)
 {
     char tbuffer[256];
-    register FILE *tf;
+    FILE *tf;
     char tname[64 + 1];
-    register char *tp;
-    register int flag;
-    register afs_int32 code;
+    char *tp;
+    int flag;
+    afs_int32 code;
 
     LOCK_GLOBAL_MUTEX;
     strcompose(tbuffer, sizeof tbuffer, adir->name, "/",
@@ -235,13 +235,13 @@ afsconf_GetNthUser(struct afsconf_dir *adir, afs_int32 an, char *abuffer,
 
 /* returns true iff user is in the UserList file */
 static int
-FindUser(struct afsconf_dir *adir, register char *auser)
+FindUser(struct afsconf_dir *adir, char *auser)
 {
     char tbuffer[256];
-    register bufio_p bp;
+    bufio_p bp;
     char tname[64 + 1];
-    register int flag;
-    register afs_int32 code;
+    int flag;
+    afs_int32 code;
     int rc;
 
     strcompose(tbuffer, sizeof tbuffer, adir->name, "/", AFSDIR_ULIST_FILE,
@@ -270,7 +270,7 @@ int
 afsconf_AddUser(struct afsconf_dir *adir, char *aname)
 {
     FILE *tf;
-    register afs_int32 code;
+    afs_int32 code;
     char tbuffer[256];
 
     LOCK_GLOBAL_MUTEX;
@@ -343,8 +343,8 @@ CompFindUser(struct afsconf_dir *adir, char *name, char *sep, char *inst,
 afs_int32
 afsconf_SuperUser(struct afsconf_dir *adir, struct rx_call *acall, char *namep)
 {
-    register struct rx_connection *tconn;
-    register afs_int32 code;
+    struct rx_connection *tconn;
+    afs_int32 code;
     int flag;
 
     LOCK_GLOBAL_MUTEX;
index a344e08dfcc6fbe3c9983d48556ea2a4da848061..5d2e0d21a7859ec2ff14c0628bda0ca13486369d 100644 (file)
 */
 
 static int
-VerifyEntries(register struct afsconf_cell *aci)
+VerifyEntries(struct afsconf_cell *aci)
 {
-    register int i;
-    register struct hostent *th;
+    int i;
+    struct hostent *th;
 
     for (i = 0; i < aci->numServers; i++) {
        if (aci->hostAddr[i].sin_addr.s_addr == 0) {
@@ -97,11 +97,11 @@ afsconf_SetExtendedCellInfo(struct afsconf_dir *adir,
                            const char *apath, 
                            struct afsconf_cell *acellInfo, char clones[])
 {
-    register afs_int32 code;
-    register int fd;
+    afs_int32 code;
+    int fd;
     char tbuffer[1024];
-    register FILE *tf;
-    register afs_int32 i;
+    FILE *tf;
+    afs_int32 i;
 
     LOCK_GLOBAL_MUTEX;
     /* write ThisCell file */
index 7596cadd3a872774e2fb9fbf24e73d90cb966dd3..b0b1e088ea286ce10a421537278445f81418a4a0 100644 (file)
@@ -66,9 +66,9 @@ int hdl_notifier(struct bnode_proc *tp);
 
 /* Remember the name of the process, if any, that failed last */
 static void
-RememberProcName(register struct bnode_proc *ap)
+RememberProcName(struct bnode_proc *ap)
 {
-    register struct bnode *tbnodep;
+    struct bnode *tbnodep;
 
     tbnodep = ap->bnode;
     if (tbnodep->lastErrorName) {
@@ -85,7 +85,7 @@ RememberProcName(register struct bnode_proc *ap)
  * be stored.
  */
 int
-bnode_CoreName(register struct bnode *abnode, char *acoreName, char *abuffer)
+bnode_CoreName(struct bnode *abnode, char *acoreName, char *abuffer)
 {
     if (DoCore) {
        strcpy(abuffer, DoCore);
@@ -103,12 +103,12 @@ bnode_CoreName(register struct bnode *abnode, char *acoreName, char *abuffer)
 
 /* save core file, if any */
 static void
-SaveCore(register struct bnode *abnode, register struct bnode_proc
+SaveCore(struct bnode *abnode, struct bnode_proc
         *aproc)
 {
     char tbuffer[256];
     struct stat tstat;
-    register afs_int32 code = 0;
+    afs_int32 code = 0;
     char *corefile = NULL;
 #ifdef BOZO_SAVE_CORES
     struct timeval Start;
@@ -174,33 +174,33 @@ SaveCore(register struct bnode *abnode, register struct bnode_proc
 }
 
 int
-bnode_GetString(register struct bnode *abnode, register char *abuffer,
-               register afs_int32 alen)
+bnode_GetString(struct bnode *abnode, char *abuffer,
+               afs_int32 alen)
 {
     return BOP_GETSTRING(abnode, abuffer, alen);
 }
 
 int
-bnode_GetParm(register struct bnode *abnode, register afs_int32 aindex,
-             register char *abuffer, afs_int32 alen)
+bnode_GetParm(struct bnode *abnode, afs_int32 aindex,
+             char *abuffer, afs_int32 alen)
 {
     return BOP_GETPARM(abnode, aindex, abuffer, alen);
 }
 
 int
-bnode_GetStat(register struct bnode *abnode, register afs_int32 * astatus)
+bnode_GetStat(struct bnode *abnode, afs_int32 * astatus)
 {
     return BOP_GETSTAT(abnode, astatus);
 }
 
 int
-bnode_RestartP(register struct bnode *abnode)
+bnode_RestartP(struct bnode *abnode)
 {
     return BOP_RESTARTP(abnode);
 }
 
 static int
-bnode_Check(register struct bnode *abnode)
+bnode_Check(struct bnode *abnode)
 {
     if (abnode->flags & BNODE_WAIT) {
        abnode->flags &= ~BNODE_WAIT;
@@ -211,7 +211,7 @@ bnode_Check(register struct bnode *abnode)
 
 /* tell if an instance has a core file */
 int
-bnode_HasCore(register struct bnode *abnode)
+bnode_HasCore(struct bnode *abnode)
 {
     return BOP_HASCORE(abnode);
 }
@@ -220,8 +220,8 @@ bnode_HasCore(register struct bnode *abnode)
 int
 bnode_WaitAll(void)
 {
-    register struct bnode *tb;
-    register afs_int32 code;
+    struct bnode *tb;
+    afs_int32 code;
     afs_int32 stat;
 
   retry:
@@ -245,9 +245,9 @@ bnode_WaitAll(void)
 
 /* wait until bnode status is correct */
 int
-bnode_WaitStatus(register struct bnode *abnode, int astatus)
+bnode_WaitStatus(struct bnode *abnode, int astatus)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 stat;
 
     bnode_Hold(abnode);
@@ -273,7 +273,7 @@ bnode_WaitStatus(register struct bnode *abnode, int astatus)
 }
 
 int
-bnode_SetStat(register struct bnode *abnode, register int agoal)
+bnode_SetStat(struct bnode *abnode, int agoal)
 {
     abnode->goal = agoal;
     bnode_Check(abnode);
@@ -283,7 +283,7 @@ bnode_SetStat(register struct bnode *abnode, register int agoal)
 }
 
 int
-bnode_SetGoal(register struct bnode *abnode, register int agoal)
+bnode_SetGoal(struct bnode *abnode, int agoal)
 {
     abnode->goal = agoal;
     bnode_Check(abnode);
@@ -291,7 +291,7 @@ bnode_SetGoal(register struct bnode *abnode, register int agoal)
 }
 
 int
-bnode_SetFileGoal(register struct bnode *abnode, register int agoal)
+bnode_SetFileGoal(struct bnode *abnode, int agoal)
 {
     if (abnode->fileGoal == agoal)
        return 0;               /* already done */
@@ -304,8 +304,8 @@ bnode_SetFileGoal(register struct bnode *abnode, register int agoal)
 int
 bnode_ApplyInstance(int (*aproc) (struct bnode *tb, void *), void *arock)
 {
-    register struct bnode *tb, *nb;
-    register afs_int32 code;
+    struct bnode *tb, *nb;
+    afs_int32 code;
 
     for (tb = allBnodes; tb; tb = nb) {
        nb = tb->next;
@@ -317,9 +317,9 @@ bnode_ApplyInstance(int (*aproc) (struct bnode *tb, void *), void *arock)
 }
 
 struct bnode *
-bnode_FindInstance(register char *aname)
+bnode_FindInstance(char *aname)
 {
-    register struct bnode *tb;
+    struct bnode *tb;
 
     for (tb = allBnodes; tb; tb = tb->next) {
        if (!strcmp(tb->name, aname))
@@ -329,9 +329,9 @@ bnode_FindInstance(register char *aname)
 }
 
 static struct bnode_type *
-FindType(register char *aname)
+FindType(char *aname)
 {
-    register struct bnode_type *tt;
+    struct bnode_type *tt;
 
     for (tt = allTypes; tt; tt = tt->next) {
        if (!strcmp(tt->name, aname))
@@ -343,7 +343,7 @@ FindType(register char *aname)
 int
 bnode_Register(char *atype, struct bnode_ops *aprocs, int anparms)
 {
-    register struct bnode_type *tt;
+    struct bnode_type *tt;
 
     for (tt = allTypes; tt; tt = tt->next) {
        if (!strcmp(tt->name, atype))
@@ -416,7 +416,7 @@ bnode_Create(char *atype, char *ainstance, struct bnode ** abp, char *ap1,
 int
 bnode_DeleteName(char *ainstance)
 {
-    register struct bnode *tb;
+    struct bnode *tb;
 
     tb = bnode_FindInstance(ainstance);
     if (!tb)
@@ -426,14 +426,14 @@ bnode_DeleteName(char *ainstance)
 }
 
 int
-bnode_Hold(register struct bnode *abnode)
+bnode_Hold(struct bnode *abnode)
 {
     abnode->refCount++;
     return 0;
 }
 
 int
-bnode_Release(register struct bnode *abnode)
+bnode_Release(struct bnode *abnode)
 {
     abnode->refCount--;
     if (abnode->refCount == 0 && abnode->flags & BNODE_DELETE) {
@@ -444,10 +444,10 @@ bnode_Release(register struct bnode *abnode)
 }
 
 int
-bnode_Delete(register struct bnode *abnode)
+bnode_Delete(struct bnode *abnode)
 {
-    register afs_int32 code;
-    register struct bnode **lb, *ub;
+    afs_int32 code;
+    struct bnode **lb, *ub;
     afs_int32 temp;
 
     if (abnode->refCount != 0) {
@@ -480,14 +480,14 @@ bnode_Delete(register struct bnode *abnode)
 
 /* function to tell if there's a timeout coming up */
 int
-bnode_PendingTimeout(register struct bnode *abnode)
+bnode_PendingTimeout(struct bnode *abnode)
 {
     return (abnode->flags & BNODE_NEEDTIMEOUT);
 }
 
 /* function called to set / clear periodic bnode wakeup times */
 int
-bnode_SetTimeout(register struct bnode *abnode, afs_int32 atimeout)
+bnode_SetTimeout(struct bnode *abnode, afs_int32 atimeout)
 {
     if (atimeout != 0) {
        abnode->nextTimeout = FT_ApproxTime() + atimeout;
@@ -502,7 +502,7 @@ bnode_SetTimeout(register struct bnode *abnode, afs_int32 atimeout)
 
 /* used by new bnode creation code to format bnode header */
 int
-bnode_InitBnode(register struct bnode *abnode, struct bnode_ops *abnodeops,
+bnode_InitBnode(struct bnode *abnode, struct bnode_ops *abnodeops,
                char *aname)
 {
     struct bnode **lb, *nb;
@@ -526,9 +526,9 @@ bnode_InitBnode(register struct bnode *abnode, struct bnode_ops *abnodeops,
 }
 
 static int
-DeleteProc(register struct bnode_proc *abproc)
+DeleteProc(struct bnode_proc *abproc)
 {
-    register struct bnode_proc **pb, *tb;
+    struct bnode_proc **pb, *tb;
     struct bnode_proc *nb;
 
     for (pb = &allProcs, tb = *pb; tb; pb = &tb->next, tb = nb) {
@@ -546,10 +546,10 @@ DeleteProc(register struct bnode_proc *abproc)
 static void *
 bproc(void *unused)
 {
-    register afs_int32 code;
-    register struct bnode *tb;
-    register afs_int32 temp;
-    register struct bnode_proc *tp;
+    afs_int32 code;
+    struct bnode *tb;
+    afs_int32 temp;
+    struct bnode_proc *tp;
     struct bnode *nb;
     int options;               /* must not be register */
     struct timeval tv;
@@ -697,11 +697,11 @@ bproc(void *unused)
 }
 
 static afs_int32
-SendNotifierData(register int fd, register struct bnode_proc *tp)
+SendNotifierData(int fd, struct bnode_proc *tp)
 {
-    register struct bnode *tb = tp->bnode;
+    struct bnode *tb = tp->bnode;
     char buffer[1000], *bufp = buffer, *buf1;
-    register int len;
+    int len;
 
     /*
      * First sent out the bnode_proc struct
@@ -845,7 +845,7 @@ int
 bnode_Init(void)
 {
     PROCESS junk;
-    register afs_int32 code;
+    afs_int32 code;
     struct sigaction newaction;
     static int initDone = 0;
 
@@ -876,9 +876,9 @@ bnode_Init(void)
 
 /* free token list returned by parseLine */
 int
-bnode_FreeTokens(register struct bnode_token *alist)
+bnode_FreeTokens(struct bnode_token *alist)
 {
-    register struct bnode_token *nlist;
+    struct bnode_token *nlist;
     for (; alist; alist = nlist) {
        nlist = alist->next;
        free(alist->key);
@@ -900,11 +900,11 @@ int
 bnode_ParseLine(char *aline, struct bnode_token **alist)
 {
     char tbuffer[256];
-    register char *tptr = NULL;
+    char *tptr = NULL;
     int inToken;
     struct bnode_token *first, *last;
-    register struct bnode_token *ttok;
-    register int tc;
+    struct bnode_token *ttok;
+    int tc;
 
     inToken = 0;               /* not copying token chars at start */
     first = (struct bnode_token *)0;
@@ -1000,9 +1000,9 @@ bnode_NewProc(struct bnode *abnode, char *aexecString, char *coreName,
 }
 
 int
-bnode_StopProc(register struct bnode_proc *aproc, int asignal)
+bnode_StopProc(struct bnode_proc *aproc, int asignal)
 {
-    register int code;
+    int code;
     if (!(aproc->flags & BPROC_STARTED) || (aproc->flags & BPROC_EXITED))
        return BZNOTACTIVE;
 
@@ -1015,9 +1015,9 @@ bnode_StopProc(register struct bnode_proc *aproc, int asignal)
 }
 
 int
-bnode_Deactivate(register struct bnode *abnode)
+bnode_Deactivate(struct bnode *abnode)
 {
-    register struct bnode **pb, *tb;
+    struct bnode **pb, *tb;
     struct bnode *nb;
     if (!(abnode->flags & BNODE_ACTIVE))
        return BZNOTACTIVE;
index adbea7f3d79b11f244ee710c12de99d00116370c..5942fdcfec6203337549003f38a207135143550d 100644 (file)
@@ -130,11 +130,11 @@ struct bozo_bosEntryStats {
 #define        FSSDTIME        (30 * 60)       /* seconds */
 
 /* calls back up to the generic bnode layer */
-extern int bnode_SetTimeout(register struct bnode *abnode, afs_int32 atimeout);
+extern int bnode_SetTimeout(struct bnode *abnode, afs_int32 atimeout);
 extern int bnode_Init(void);
 extern int bnode_NewProc(struct bnode *abnode, char *aexecString, char *coreName, struct bnode_proc **aproc);
-extern int bnode_InitBnode(register struct bnode *abnode, struct bnode_ops *abnodeops, char *aname);
+extern int bnode_InitBnode(struct bnode *abnode, struct bnode_ops *abnodeops, char *aname);
 extern afs_int32 bnode_Create(char *atype, char *ainstance, struct bnode ** abp, char *ap1, char *ap2, char *ap3, char *ap4, char *ap5, char *notifier, int fileGoal, int rewritefile);
-extern struct bnode *bnode_FindInstance(register char *aname);
-extern int bnode_WaitStatus(register struct bnode *abnode, int astatus);
-extern int bnode_SetStat(register struct bnode *abnode, register int agoal);
+extern struct bnode *bnode_FindInstance(char *aname);
+extern int bnode_WaitStatus(struct bnode *abnode, int astatus);
+extern int bnode_SetStat(struct bnode *abnode, int agoal);
index 2d156fc98bad35b0f2a97269e8090f85202f9a72..0a00dec6a4f916e2af65a4ee7f5ad2b4628e5f54 100644 (file)
@@ -48,8 +48,8 @@
 #include <afs/kautils.h>
 #include <afs/volser.h>
 
-static int IStatServer(register struct cmd_syndesc *as, int int32p);
-static int DoStat(char *aname, register struct rx_connection *aconn, 
+static int IStatServer(struct cmd_syndesc *as, int int32p);
+static int DoStat(char *aname, struct rx_connection *aconn, 
                  int aint32p, int firstTime);
 
 #include "bosint.h"
@@ -106,7 +106,7 @@ em(afs_int32 acode)
 static afs_int32
 GetPartitionID(char *aname)
 {
-    register char tc;
+    char tc;
     char ascii[3];
 
     tc = *aname;
@@ -149,7 +149,7 @@ static char *
 DateOf(afs_int32 atime)
 {
     static char tbuffer[30];
-    register char *tp;
+    char *tp;
     time_t t = (time_t) atime;
     tp = ctime(&t);
     if (tp) {
@@ -171,8 +171,8 @@ GetConn(struct cmd_syndesc *as, int aencrypt)
     char *hostname;
     char *cellname = NULL;
     const char *confdir;
-    register afs_int32 code;
-    register struct rx_connection *tconn;
+    afs_int32 code;
+    struct rx_connection *tconn;
     afs_int32 addr;
     struct afsconf_dir *tdir = NULL;
     afsconf_secflags secFlags;
@@ -235,10 +235,10 @@ GetConn(struct cmd_syndesc *as, int aencrypt)
 static int
 SetAuth(struct cmd_syndesc *as, void *arock)
 {
-    register afs_int32 code;
-    register struct rx_connection *tconn;
+    afs_int32 code;
+    struct rx_connection *tconn;
     afs_int32 flag;
-    register char *tp;
+    char *tp;
 
     tconn = GetConn(as, 0);
     tp = as->parms[1].items->data;
@@ -263,7 +263,7 @@ SetAuth(struct cmd_syndesc *as, void *arock)
 static int
 ComputeDestDir(char *aname, char *adir, char *aresult, afs_int32 alen)
 {
-    register char *tp;
+    char *tp;
 
     strcpy(aresult, adir);
     tp = strrchr(aname, '/');
@@ -280,10 +280,10 @@ ComputeDestDir(char *aname, char *adir, char *aresult, afs_int32 alen)
 
 /* copy data from fd afd to rx call acall */
 static int
-CopyBytes(int afd, register struct rx_call *acall)
+CopyBytes(int afd, struct rx_call *acall)
 {
-    register afs_int32 code;
-    register afs_int32 len;
+    afs_int32 code;
+    afs_int32 len;
     char tbuffer[256];
 
     while (1) {
@@ -299,11 +299,11 @@ CopyBytes(int afd, register struct rx_call *acall)
 }
 
 static int
-Prune(register struct cmd_syndesc *as, void *arock)
+Prune(struct cmd_syndesc *as, void *arock)
 {
-    register afs_int32 code;
-    register struct rx_connection *tconn;
-    register afs_int32 flags;
+    afs_int32 code;
+    struct rx_connection *tconn;
+    afs_int32 flags;
 
     tconn = GetConn(as, 0);
     flags = 0;
@@ -322,10 +322,10 @@ Prune(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-Exec(register struct cmd_syndesc *as, void *arock)
+Exec(struct cmd_syndesc *as, void *arock)
 {
-    register struct rx_connection *tconn;
-    register afs_int32 code;
+    struct rx_connection *tconn;
+    afs_int32 code;
 
     tconn = GetConn(as, 0);
     code = BOZO_Exec(tconn, as->parms[1].items->data);
@@ -335,14 +335,14 @@ Exec(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-GetDate(register struct cmd_syndesc *as, void *arock)
+GetDate(struct cmd_syndesc *as, void *arock)
 {
-    register afs_int32 code;
+    afs_int32 code;
     char tbuffer[256];
     char destDir[256];
     afs_int32 time, bakTime, oldTime;
-    register struct rx_connection *tconn;
-    register struct cmd_item *ti;
+    struct rx_connection *tconn;
+    struct cmd_item *ti;
 
     tconn = GetConn(as, 0);
     if (!as->parms[1].items) {
@@ -385,13 +385,13 @@ GetDate(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-UnInstall(register struct cmd_syndesc *as, void *arock)
+UnInstall(struct cmd_syndesc *as, void *arock)
 {
-    register afs_int32 code;
+    afs_int32 code;
     char tbuffer[256];
     char destDir[256];
-    register struct cmd_item *ti;
-    register struct rx_connection *tconn;
+    struct cmd_item *ti;
+    struct rx_connection *tconn;
 
     tconn = GetConn(as, 0);
     if (!as->parms[1].items) {
@@ -423,7 +423,7 @@ GetServerGoal(struct rx_connection *aconn, char *aname)
 {
     char buffer[500];
     char *tp;
-    register afs_int32 code;
+    afs_int32 code;
     struct bozo_status istatus;
 
     tp = buffer;
@@ -444,8 +444,8 @@ static int
 Install(struct cmd_syndesc *as, void *arock)
 {
     struct rx_connection *tconn;
-    register afs_int32 code;
-    register struct cmd_item *ti;
+    afs_int32 code;
+    struct cmd_item *ti;
     struct stat tstat;
     char tbuffer[256];
     int fd;
@@ -500,9 +500,9 @@ Install(struct cmd_syndesc *as, void *arock)
 static int
 Shutdown(struct cmd_syndesc *as, void *arock)
 {
-    register struct rx_connection *tconn;
-    register afs_int32 code;
-    register struct cmd_item *ti;
+    struct rx_connection *tconn;
+    afs_int32 code;
+    struct cmd_item *ti;
 
     tconn = GetConn(as, 0);
     if (as->parms[1].items == 0) {
@@ -529,7 +529,7 @@ Shutdown(struct cmd_syndesc *as, void *arock)
 static int
 BlockScannerCmd(struct cmd_syndesc *as, void *arock)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct rx_connection *tconn;
     char BlockCommand[] = "/usr/afs/bin/scanner -block";
 
@@ -545,7 +545,7 @@ BlockScannerCmd(struct cmd_syndesc *as, void *arock)
 static int
 UnBlockScannerCmd(struct cmd_syndesc *as, void *arock)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct rx_connection *tconn;
     char UnBlockCommand[] = "/usr/afs/bin/scanner -unblock";
 
@@ -561,7 +561,7 @@ UnBlockScannerCmd(struct cmd_syndesc *as, void *arock)
 static int
 GetRestartCmd(struct cmd_syndesc *as, void *arock)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct ktime generalTime, newBinaryTime;
     char messageBuffer[256];
     struct rx_connection *tconn;
@@ -605,7 +605,7 @@ static int
 SetRestartCmd(struct cmd_syndesc *as, void *arock)
 {
     afs_int32 count = 0;
-    register afs_int32 code;
+    afs_int32 code;
     struct ktime restartTime;
     afs_int32 type = 0 ;
     struct rx_connection *tconn;
@@ -644,9 +644,9 @@ SetRestartCmd(struct cmd_syndesc *as, void *arock)
 static int
 Startup(struct cmd_syndesc *as, void *arock)
 {
-    register struct rx_connection *tconn;
-    register afs_int32 code;
-    register struct cmd_item *ti;
+    struct rx_connection *tconn;
+    afs_int32 code;
+    struct cmd_item *ti;
 
     tconn = GetConn(as, 0);
     if (as->parms[1].items == 0) {
@@ -667,9 +667,9 @@ Startup(struct cmd_syndesc *as, void *arock)
 static int
 Restart(struct cmd_syndesc *as, void *arock)
 {
-    register struct rx_connection *tconn;
-    register afs_int32 code;
-    register struct cmd_item *ti;
+    struct rx_connection *tconn;
+    afs_int32 code;
+    struct cmd_item *ti;
 
     tconn = GetConn(as, 0);
     if (as->parms[2].items) {
@@ -712,8 +712,8 @@ Restart(struct cmd_syndesc *as, void *arock)
 static int
 SetCellName(struct cmd_syndesc *as, void *arock)
 {
-    register struct rx_connection *tconn;
-    register afs_int32 code;
+    struct rx_connection *tconn;
+    afs_int32 code;
 
     tconn = GetConn(as, 0);
     code = BOZO_SetCellName(tconn, as->parms[1].items->data);
@@ -723,11 +723,11 @@ SetCellName(struct cmd_syndesc *as, void *arock)
 }
 
 static int
-AddHost(register struct cmd_syndesc *as, void *arock)
+AddHost(struct cmd_syndesc *as, void *arock)
 {
-    register struct rx_connection *tconn;
-    register afs_int32 code;
-    register struct cmd_item *ti;
+    struct rx_connection *tconn;
+    afs_int32 code;
+    struct cmd_item *ti;
     char name[MAXHOSTCHARS];
 
     tconn = GetConn(as, 0);
@@ -750,11 +750,11 @@ AddHost(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-RemoveHost(register struct cmd_syndesc *as, void *arock)
+RemoveHost(struct cmd_syndesc *as, void *arock)
 {
-    register struct rx_connection *tconn;
-    register afs_int32 code;
-    register struct cmd_item *ti;
+    struct rx_connection *tconn;
+    afs_int32 code;
+    struct cmd_item *ti;
 
     tconn = GetConn(as, 0);
     for (ti = as->parms[1].items; ti; ti = ti->next) {
@@ -767,13 +767,13 @@ RemoveHost(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-ListHosts(register struct cmd_syndesc *as, void *arock)
+ListHosts(struct cmd_syndesc *as, void *arock)
 {
-    register struct rx_connection *tconn;
-    register afs_int32 code;
+    struct rx_connection *tconn;
+    afs_int32 code;
     char tbuffer[256];
     char *tp;
-    register afs_int32 i;
+    afs_int32 i;
 
     tp = tbuffer;
     tconn = GetConn(as, 0);
@@ -797,10 +797,10 @@ ListHosts(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-AddKey(register struct cmd_syndesc *as, void *arock)
+AddKey(struct cmd_syndesc *as, void *arock)
 {
-    register struct rx_connection *tconn;
-    register afs_int32 code;
+    struct rx_connection *tconn;
+    afs_int32 code;
     struct ktc_encryptionKey tkey;
     afs_int32 temp;
     char *tcell;
@@ -866,12 +866,12 @@ AddKey(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-RemoveKey(register struct cmd_syndesc *as, void *arock)
+RemoveKey(struct cmd_syndesc *as, void *arock)
 {
-    register struct rx_connection *tconn;
-    register afs_int32 code;
+    struct rx_connection *tconn;
+    afs_int32 code;
     afs_int32 temp;
-    register struct cmd_item *ti;
+    struct cmd_item *ti;
 
     tconn = GetConn(as, 0);
     for (ti = as->parms[1].items; ti; ti = ti->next) {
@@ -886,15 +886,15 @@ RemoveKey(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-ListKeys(register struct cmd_syndesc *as, void *arock)
+ListKeys(struct cmd_syndesc *as, void *arock)
 {
-    register struct rx_connection *tconn;
-    register afs_int32 code;
+    struct rx_connection *tconn;
+    afs_int32 code;
     struct ktc_encryptionKey tkey;
     afs_int32 kvno;
     struct bozo_keyInfo keyInfo;
     int everWorked;
-    register afs_int32 i;
+    afs_int32 i;
 
     tconn = GetConn(as, 1);
     everWorked = 0;
@@ -926,12 +926,12 @@ ListKeys(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-AddSUser(register struct cmd_syndesc *as, void *arock)
+AddSUser(struct cmd_syndesc *as, void *arock)
 {
-    register struct rx_connection *tconn;
-    register afs_int32 code;
+    struct rx_connection *tconn;
+    afs_int32 code;
     int failed;
-    register struct cmd_item *ti;
+    struct cmd_item *ti;
 
     failed = 0;
     tconn = GetConn(as, 0);
@@ -946,11 +946,11 @@ AddSUser(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-RemoveSUser(register struct cmd_syndesc *as, void *arock)
+RemoveSUser(struct cmd_syndesc *as, void *arock)
 {
-    register struct rx_connection *tconn;
-    register struct cmd_item *ti;
-    register afs_int32 code;
+    struct rx_connection *tconn;
+    struct cmd_item *ti;
+    afs_int32 code;
     int failed;
 
     failed = 0;
@@ -971,11 +971,11 @@ RemoveSUser(register struct cmd_syndesc *as, void *arock)
 
 #define        NPERLINE    10          /* dudes to print per line */
 static int
-ListSUsers(register struct cmd_syndesc *as, void *arock)
+ListSUsers(struct cmd_syndesc *as, void *arock)
 {
-    register struct rx_connection *tconn;
-    register int i;
-    register afs_int32 code;
+    struct rx_connection *tconn;
+    int i;
+    afs_int32 code;
     char tbuffer[256];
     char *tp;
     int lastNL, printGreeting;
@@ -1010,11 +1010,11 @@ ListSUsers(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-StatServer(register struct cmd_syndesc *as, void *arock)
+StatServer(struct cmd_syndesc *as, void *arock)
 {
-    register struct rx_connection *tconn;
-    register afs_int32 code;
-    register int i;
+    struct rx_connection *tconn;
+    afs_int32 code;
+    int i;
     char ibuffer[BOZO_BSSIZE];
     char *tp;
     int int32p;
@@ -1044,13 +1044,13 @@ StatServer(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-CreateServer(register struct cmd_syndesc *as, void *arock)
+CreateServer(struct cmd_syndesc *as, void *arock)
 {
-    register struct rx_connection *tconn;
-    register afs_int32 code;
+    struct rx_connection *tconn;
+    afs_int32 code;
     char *parms[6];
-    register struct cmd_item *ti;
-    register int i;
+    struct cmd_item *ti;
+    int i;
     char *type, *name, *notifier = NONOTIFIER;
 
     tconn = GetConn(as, 0);
@@ -1076,11 +1076,11 @@ CreateServer(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-DeleteServer(register struct cmd_syndesc *as, void *arock)
+DeleteServer(struct cmd_syndesc *as, void *arock)
 {
-    register struct rx_connection *tconn;
-    register afs_int32 code;
-    register struct cmd_item *ti;
+    struct rx_connection *tconn;
+    afs_int32 code;
+    struct cmd_item *ti;
 
     code = 0;
     tconn = GetConn(as, 0);
@@ -1098,11 +1098,11 @@ DeleteServer(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-StartServer(register struct cmd_syndesc *as, void *arock)
+StartServer(struct cmd_syndesc *as, void *arock)
 {
-    register struct rx_connection *tconn;
-    register afs_int32 code;
-    register struct cmd_item *ti;
+    struct rx_connection *tconn;
+    afs_int32 code;
+    struct cmd_item *ti;
 
     code = 0;
     tconn = GetConn(as, 0);
@@ -1116,11 +1116,11 @@ StartServer(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-StopServer(register struct cmd_syndesc *as, void *arock)
+StopServer(struct cmd_syndesc *as, void *arock)
 {
-    register struct rx_connection *tconn;
-    register afs_int32 code;
-    register struct cmd_item *ti;
+    struct rx_connection *tconn;
+    afs_int32 code;
+    struct cmd_item *ti;
 
     code = 0;
     tconn = GetConn(as, 0);
@@ -1147,7 +1147,7 @@ DoSalvage(struct rx_connection * aconn, char * aparm1, char * aparm2,
          char * atmpDir, char * orphans, int dafs, 
          struct MRAFSSalvageParms * mrafsParm)
 {
-    register afs_int32 code;
+    afs_int32 code;
     char *parms[6];
     char buffer;
     char tbuffer[BOZO_BSSIZE];
@@ -1376,11 +1376,11 @@ DoSalvage(struct rx_connection * aconn, char * aparm1, char * aparm2,
 }
 
 static int
-GetLogCmd(register struct cmd_syndesc *as, void *arock)
+GetLogCmd(struct cmd_syndesc *as, void *arock)
 {
     struct rx_connection *tconn;
-    register struct rx_call *tcall;
-    register afs_int32 code;
+    struct rx_call *tcall;
+    afs_int32 code;
     char buffer;
     int error;
 
@@ -1446,8 +1446,8 @@ IsDAFS(struct rx_connection *aconn)
 static int
 SalvageCmd(struct cmd_syndesc *as, void *arock)
 {
-    register struct rx_connection *tconn;
-    register afs_int32 code, rc, i;
+    struct rx_connection *tconn;
+    afs_int32 code, rc, i;
     char *outName;
     char tname[BOZO_BSSIZE];
     afs_int32 newID;
@@ -1724,10 +1724,10 @@ SalvageCmd(struct cmd_syndesc *as, void *arock)
 }
 
 static int
-IStatServer(register struct cmd_syndesc *as, int int32p)
+IStatServer(struct cmd_syndesc *as, int int32p)
 {
-    register struct rx_connection *tconn;
-    register struct cmd_item *ti;
+    struct rx_connection *tconn;
+    struct cmd_item *ti;
     int firstTime = 1;
 
     tconn = GetConn(as, 0);
@@ -1740,14 +1740,14 @@ IStatServer(register struct cmd_syndesc *as, int int32p)
 
 static int
 DoStat(IN char *aname, 
-       IN register struct rx_connection *aconn, 
+       IN struct rx_connection *aconn, 
        IN int aint32p, 
        IN int firstTime)       /* true iff first instance in cmd */
 {
     afs_int32 temp;
     char buffer[500];
-    register afs_int32 code;
-    register afs_int32 i;
+    afs_int32 code;
+    afs_int32 i;
     struct bozo_status istatus;
     char *tp;
     char *is1, *is2, *is3, *is4;       /* instance strings */
@@ -1859,7 +1859,7 @@ DoStat(IN char *aname,
 static int
 GetRestrict(struct cmd_syndesc *as, void *arock)
 {
-    register struct rx_connection *tconn;
+    struct rx_connection *tconn;
     afs_int32 code, val;
 
     tconn = GetConn(as, 0);
@@ -1875,7 +1875,7 @@ GetRestrict(struct cmd_syndesc *as, void *arock)
 static int
 SetRestrict(struct cmd_syndesc *as, void *arock)
 {
-    register struct rx_connection *tconn;
+    struct rx_connection *tconn;
     afs_int32 code, val;
 
     tconn = GetConn(as, 0);
@@ -1887,7 +1887,7 @@ SetRestrict(struct cmd_syndesc *as, void *arock)
 }
 
 static void
-add_std_args(register struct cmd_syndesc *ts)
+add_std_args(struct cmd_syndesc *ts)
 {
     cmd_Seek(ts, ADDPARMOFFSET);
     /* + 0 */ cmd_AddParm(ts, "-cell", CMD_SINGLE, CMD_OPTIONAL, "cell name");
@@ -1902,8 +1902,8 @@ add_std_args(register struct cmd_syndesc *ts)
 int
 main(int argc, char **argv)
 {
-    register afs_int32 code;
-    register struct cmd_syndesc *ts;
+    afs_int32 code;
+    struct cmd_syndesc *ts;
     extern int afsconf_SawCell;
 
 #ifdef AFS_AIX32_ENV
index e11dfb98957121e9882c6f0b4e30cdfa45d64060..2a07a781f728419327c5b97b9e7598d663d7aea9 100644 (file)
@@ -42,7 +42,7 @@ int
 main(int argc, char **argv)
 {
     struct afsconf_dir *tdir;
-    register afs_int32 code;
+    afs_int32 code;
 
     if (argc == 1) {
        printf("bos_util: usage is 'bos_util <opcode> options, e.g.\n");
@@ -99,7 +99,7 @@ main(int argc, char **argv)
     } else if (strcmp(argv[1], "adddes") == 0) {
        struct ktc_encryptionKey tkey;
        int kvno;
-       register afs_int32 code;
+       afs_int32 code;
        char buf[BUFSIZ], ver[BUFSIZ];
 
        if (argc != 3) {
@@ -174,7 +174,7 @@ main(int argc, char **argv)
        }
     } else if (strcmp(argv[1], "list") == 0) {
        struct afsconf_keys tkeys;
-       register int i;
+       int i;
        unsigned char tbuffer[9];
 
        code = afsconf_GetKeys(tdir, &tkeys);
index 96f82e809e0f177bc9df870d58cc882b9c3561c9..1082d18322914c555efc33a66710d14e9f72a188 100644 (file)
@@ -55,7 +55,7 @@ extern int bozo_isrestricted;
 afs_int32
 SBOZO_GetRestartTime(struct rx_call *acall, afs_int32 atype, struct bozo_netKTime *aktime)
 {
-    register afs_int32 code;
+    afs_int32 code;
 
     code = 0;                  /* assume success */
     switch (atype) {
@@ -78,7 +78,7 @@ SBOZO_GetRestartTime(struct rx_call *acall, afs_int32 atype, struct bozo_netKTim
 afs_int32
 SBOZO_SetRestartTime(struct rx_call *acall, afs_int32 atype, struct bozo_netKTime *aktime)
 {
-    register afs_int32 code;
+    afs_int32 code;
     char caller[MAXKTCNAMELEN];
 
     /* check for proper permissions */
@@ -178,7 +178,7 @@ SBOZO_GetDates(struct rx_call *acall, char *aname, afs_int32 *atime,
 }
 
 afs_int32
-SBOZO_UnInstall(struct rx_call *acall, register char *aname)
+SBOZO_UnInstall(struct rx_call *acall, char *aname)
 {
     char *filepath;
     char fpOld[AFSDIR_PATH_MAX], fpBak[AFSDIR_PATH_MAX];
@@ -234,10 +234,10 @@ SBOZO_UnInstall(struct rx_call *acall, register char *aname)
 static void
 SaveOldFiles(char *aname)
 {
-    register afs_int32 code;
+    afs_int32 code;
     char bbuffer[AFSDIR_PATH_MAX], obuffer[AFSDIR_PATH_MAX];
     struct stat tstat;
-    register afs_int32 now;
+    afs_int32 now;
     afs_int32 oldTime, bakTime;
 
     strcpy(bbuffer, aname);
@@ -364,7 +364,7 @@ afs_int32
 SBOZO_SetCellName(struct rx_call *acall, char *aname)
 {
     struct afsconf_cell tcell;
-    register afs_int32 code;
+    afs_int32 code;
     char caller[MAXKTCNAMELEN];
     char clones[MAXHOSTSPERCELL];
 
@@ -403,7 +403,7 @@ SBOZO_SetCellName(struct rx_call *acall, char *aname)
 afs_int32
 SBOZO_GetCellName(struct rx_call *acall, char **aname)
 {
-    register afs_int32 code;
+    afs_int32 code;
     char tname[MAXCELLCHARS];
 
     code = afsconf_GetLocalCell(bozo_confdir, tname, sizeof(tname));
@@ -422,9 +422,9 @@ SBOZO_GetCellName(struct rx_call *acall, char **aname)
 afs_int32
 SBOZO_GetCellHost(struct rx_call *acall, afs_uint32 awhich, char **aname)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct afsconf_cell tcell;
-    register char *tp;
+    char *tp;
     char clones[MAXHOSTSPERCELL];
 
     code =
@@ -459,10 +459,10 @@ SBOZO_GetCellHost(struct rx_call *acall, afs_uint32 awhich, char **aname)
 afs_int32
 SBOZO_DeleteCellHost(struct rx_call *acall, char *aname)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct afsconf_cell tcell;
     afs_int32 which;
-    register int i;
+    int i;
     char caller[MAXKTCNAMELEN];
     char clones[MAXHOSTSPERCELL];
 
@@ -506,10 +506,10 @@ SBOZO_DeleteCellHost(struct rx_call *acall, char *aname)
 afs_int32
 SBOZO_AddCellHost(struct rx_call *acall, char *aname)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct afsconf_cell tcell;
     afs_int32 which;
-    register int i;
+    int i;
     char caller[MAXKTCNAMELEN];
     char clones[MAXHOSTSPERCELL];
     char *n;
@@ -589,7 +589,7 @@ SBOZO_ListKeys(struct rx_call *acall, afs_int32 an, afs_int32 *akvno,
               struct bozo_key *akey, struct bozo_keyInfo *akeyinfo)
 {
     struct afsconf_keys tkeys;
-    register afs_int32 code;
+    afs_int32 code;
     struct stat tstat;
     int noauth = 0;
     char caller[MAXKTCNAMELEN];
@@ -641,7 +641,7 @@ SBOZO_ListKeys(struct rx_call *acall, afs_int32 an, afs_int32 *akvno,
 afs_int32
 SBOZO_AddKey(struct rx_call *acall, afs_int32 an, struct bozo_key *akey)
 {
-    register afs_int32 code;
+    afs_int32 code;
     char caller[MAXKTCNAMELEN];
     rxkad_level enc_level = rxkad_clear;
     int noauth;
@@ -668,9 +668,9 @@ SBOZO_AddKey(struct rx_call *acall, afs_int32 an, struct bozo_key *akey)
 }
 
 afs_int32
-SBOZO_SetNoAuthFlag(register struct rx_call *acall, afs_int32 aflag)
+SBOZO_SetNoAuthFlag(struct rx_call *acall, afs_int32 aflag)
 {
-    register afs_int32 code = 0;
+    afs_int32 code = 0;
     char caller[MAXKTCNAMELEN];
 
     if (!afsconf_SuperUser(bozo_confdir, acall, caller)) {
@@ -690,7 +690,7 @@ SBOZO_SetNoAuthFlag(register struct rx_call *acall, afs_int32 aflag)
 afs_int32
 SBOZO_DeleteKey(struct rx_call *acall, afs_int32 an)
 {
-    register afs_int32 code;
+    afs_int32 code;
     char caller[MAXKTCNAMELEN];
 
     if (!afsconf_SuperUser(bozo_confdir, acall, caller)) {
@@ -709,10 +709,10 @@ SBOZO_DeleteKey(struct rx_call *acall, afs_int32 an)
 
 
 afs_int32
-SBOZO_ListSUsers(struct rx_call *acall, afs_int32 an, register char **aname)
+SBOZO_ListSUsers(struct rx_call *acall, afs_int32 an, char **aname)
 {
-    register afs_int32 code;
-    register char *tp;
+    afs_int32 code;
+    char *tp;
 
     tp = *aname = (char *)malloc(256);
     *tp = 0;                   /* in case getnthuser doesn't null-terminate the string */
@@ -726,7 +726,7 @@ SBOZO_ListSUsers(struct rx_call *acall, afs_int32 an, register char **aname)
 afs_int32
 SBOZO_AddSUser(struct rx_call *acall, char *aname)
 {
-    register afs_int32 code;
+    afs_int32 code;
     char caller[MAXKTCNAMELEN];
 
     if (!afsconf_SuperUser(bozo_confdir, acall, caller)) {
@@ -746,7 +746,7 @@ SBOZO_AddSUser(struct rx_call *acall, char *aname)
 afs_int32
 SBOZO_DeleteSUser(struct rx_call *acall, char *aname)
 {
-    register afs_int32 code;
+    afs_int32 code;
     char caller[MAXKTCNAMELEN];
 
     if (!afsconf_SuperUser(bozo_confdir, acall, caller)) {
@@ -805,9 +805,9 @@ SBOZO_CreateBnode(struct rx_call *acall, char *atype, char *ainstance,
 }
 
 afs_int32
-SBOZO_WaitAll(register struct rx_call *acall)
+SBOZO_WaitAll(struct rx_call *acall)
 {
-    register afs_int32 code;
+    afs_int32 code;
     char caller[MAXKTCNAMELEN];
 
     if (!afsconf_SuperUser(bozo_confdir, acall, caller)) {
@@ -828,7 +828,7 @@ SBOZO_WaitAll(register struct rx_call *acall)
 afs_int32
 SBOZO_DeleteBnode(struct rx_call *acall, char *ainstance)
 {
-    register afs_int32 code;
+    afs_int32 code;
     char caller[MAXKTCNAMELEN];
 
     if (!afsconf_SuperUser(bozo_confdir, acall, caller)) {
@@ -851,7 +851,7 @@ SBOZO_DeleteBnode(struct rx_call *acall, char *ainstance)
 }
 
 static int
-swproc(register struct bnode *abnode, void *arock)
+swproc(struct bnode *abnode, void *arock)
 {
     if (abnode->goal == BSTAT_NORMAL)
        return 0;               /* this one's not shutting down */
@@ -888,7 +888,7 @@ afs_int32
 SBOZO_ShutdownAll(struct rx_call *acall)
 {
     /* iterate over all bnodes, setting the status to temporarily disabled */
-    register afs_int32 code;
+    afs_int32 code;
     char caller[MAXKTCNAMELEN];
 
     /* check for authorization */
@@ -910,7 +910,7 @@ SBOZO_ShutdownAll(struct rx_call *acall)
 afs_int32
 SBOZO_RestartAll(struct rx_call *acall)
 {
-    register afs_int32 code;
+    afs_int32 code;
     char caller[MAXKTCNAMELEN];
 
     if (!afsconf_SuperUser(bozo_confdir, acall, caller)) {
@@ -941,7 +941,7 @@ SBOZO_RestartAll(struct rx_call *acall)
 afs_int32
 SBOZO_ReBozo(struct rx_call *acall)
 {
-    register afs_int32 code;
+    afs_int32 code;
     char caller[MAXKTCNAMELEN];
 
     /* acall is null if called internally to restart bosserver */
@@ -985,7 +985,7 @@ SBOZO_ReBozo(struct rx_call *acall)
 afs_int32
 SBOZO_StartupAll(struct rx_call *acall)
 {
-    register afs_int32 code;
+    afs_int32 code;
     char caller[MAXKTCNAMELEN];
 
     if (!afsconf_SuperUser(bozo_confdir, acall, caller)) {
@@ -1002,10 +1002,10 @@ SBOZO_StartupAll(struct rx_call *acall)
 }
 
 afs_int32
-SBOZO_Restart(struct rx_call *acall, register char *ainstance)
+SBOZO_Restart(struct rx_call *acall, char *ainstance)
 {
-    register struct bnode *tb;
-    register afs_int32 code;
+    struct bnode *tb;
+    afs_int32 code;
     char caller[MAXKTCNAMELEN];
 
     if (!afsconf_SuperUser(bozo_confdir, acall, caller)) {
@@ -1039,8 +1039,8 @@ SBOZO_Restart(struct rx_call *acall, register char *ainstance)
 afs_int32
 SBOZO_SetTStatus(struct rx_call *acall, char *ainstance, afs_int32 astatus)
 {
-    register struct bnode *tb;
-    register afs_int32 code;
+    struct bnode *tb;
+    afs_int32 code;
     char caller[MAXKTCNAMELEN];
 
     if (!afsconf_SuperUser(bozo_confdir, acall, caller)) {
@@ -1068,8 +1068,8 @@ SBOZO_SetTStatus(struct rx_call *acall, char *ainstance, afs_int32 astatus)
 afs_int32
 SBOZO_SetStatus(struct rx_call *acall, char *ainstance, afs_int32 astatus)
 {
-    register struct bnode *tb;
-    register afs_int32 code;
+    struct bnode *tb;
+    afs_int32 code;
     char caller[MAXKTCNAMELEN];
 
     if (!afsconf_SuperUser(bozo_confdir, acall, caller)) {
@@ -1099,8 +1099,8 @@ afs_int32
 SBOZO_GetStatus(struct rx_call *acall, char *ainstance, afs_int32 *astat, 
                char **astatDescr)
 {
-    register struct bnode *tb;
-    register afs_int32 code;
+    struct bnode *tb;
+    afs_int32 code;
 
     tb = bnode_FindInstance(ainstance);
     if (!tb) {
@@ -1161,10 +1161,10 @@ ZapFile(const char *adir, const char *aname)
 afs_int32
 SBOZO_Prune(struct rx_call *acall, afs_int32 aflags)
 {
-    register afs_int32 code;
+    afs_int32 code;
     DIR *dirp;
-    register struct dirent *tde;
-    register int i;
+    struct dirent *tde;
+    int i;
     char caller[MAXKTCNAMELEN];
 
     if (!afsconf_SuperUser(bozo_confdir, acall, caller)) {
@@ -1354,7 +1354,7 @@ SBOZO_GetInstanceInfo(IN struct rx_call *acall,
                      OUT char **atype,
                      OUT struct bozo_status *astatus)
 {
-    register struct bnode *tb;
+    struct bnode *tb;
 
     tb = bnode_FindInstance(ainstance);
     *atype = (char *)malloc(BOZO_BSSIZE);
@@ -1389,9 +1389,9 @@ SBOZO_GetInstanceParm(struct rx_call *acall,
                      afs_int32 anum,
                      char **aparm)
 {
-    register struct bnode *tb;
-    register char *tp;
-    register afs_int32 code;
+    struct bnode *tb;
+    char *tp;
+    afs_int32 code;
 
     tp = (char *)malloc(BOZO_BSSIZE);
     *aparm = tp;
@@ -1415,9 +1415,9 @@ SBOZO_GetInstanceParm(struct rx_call *acall,
 }
 
 afs_int32
-SBOZO_GetLog(register struct rx_call *acall, char *aname)
+SBOZO_GetLog(struct rx_call *acall, char *aname)
 {
-    register afs_int32 code;
+    afs_int32 code;
     FILE *tfile;
     int tc;
     char *logpath;
@@ -1482,7 +1482,7 @@ afs_int32
 SBOZO_GetInstanceStrings(struct rx_call *acall, char *abnodeName, 
                         char **as1, char **as2, char **as3, char **as4)
 {
-    register struct bnode *tb;
+    struct bnode *tb;
 
     *as2 = (char *)malloc(1);
     **as2 = 0;
index 0d1d47961644d1c6edd4806dc63d9e3b7102e8df..811dc315ae354ae5709ad9d6ad15ec127f3d9e82 100644 (file)
@@ -173,7 +173,7 @@ static int
 MakeDir(const char *adir)
 {
     struct stat tstat;
-    register afs_int32 code;
+    afs_int32 code;
     if (stat(adir, &tstat) < 0 || (tstat.st_mode & S_IFMT) != S_IFDIR) {
        int reqPerm;
        unlink(adir);
@@ -233,9 +233,9 @@ CreateDirs(const char *coredir)
 
 /* strip the \\n from the end of the line, if it is present */
 static int
-StripLine(register char *abuffer)
+StripLine(char *abuffer)
 {
-    register char *tp;
+    char *tp;
 
     tp = abuffer + strlen(abuffer);    /* starts off pointing at the null  */
     if (tp == abuffer)
@@ -248,12 +248,12 @@ StripLine(register char *abuffer)
 
 /* write one bnode's worth of entry into the file */
 static int
-bzwrite(register struct bnode *abnode, void *arock)
+bzwrite(struct bnode *abnode, void *arock)
 {
-    register struct bztemp *at = (struct bztemp *)arock;
-    register int i;
+    struct bztemp *at = (struct bztemp *)arock;
+    int i;
     char tbuffer[BOZO_BSSIZE];
-    register afs_int32 code;
+    afs_int32 code;
 
     if (abnode->notifier)
        fprintf(at->file, "bnode %s %s %d %s\n", abnode->type->name,
@@ -278,11 +278,11 @@ bzwrite(register struct bnode *abnode, void *arock)
 int
 ReadBozoFile(char *aname)
 {
-    register FILE *tfile;
+    FILE *tfile;
     char tbuffer[BOZO_BSSIZE];
-    register char *tp;
+    char *tp;
     char *instp, *typep, *notifier, *notp;
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 ktmask, ktday, kthour, ktmin, ktsec;
     afs_int32 i, goal;
     struct bnode *tb;
@@ -462,9 +462,9 @@ ReadBozoFile(char *aname)
 int
 WriteBozoFile(char *aname)
 {
-    register FILE *tfile;
+    FILE *tfile;
     char tbuffer[AFSDIR_PATH_MAX];
-    register afs_int32 code;
+    afs_int32 code;
     struct bztemp btemp;
 
     if (!aname)
@@ -503,9 +503,9 @@ WriteBozoFile(char *aname)
 }
 
 static int
-bdrestart(register struct bnode *abnode, void *arock)
+bdrestart(struct bnode *abnode, void *arock)
 {
-    register afs_int32 code;
+    afs_int32 code;
 
     if (abnode->fileGoal != BSTAT_NORMAL || abnode->goal != BSTAT_NORMAL)
        return 0;               /* don't restart stopped bnodes */
@@ -526,7 +526,7 @@ bdrestart(register struct bnode *abnode, void *arock)
 static void *
 BozoDaemon(void *unused)
 {
-    register afs_int32 now;
+    afs_int32 now;
 
     /* now initialize the values */
     bozo_newKTs = 1;
@@ -726,7 +726,7 @@ int
 main(int argc, char **argv, char **envp)
 {
     struct rx_service *tservice;
-    register afs_int32 code;
+    afs_int32 code;
     struct afsconf_dir *tdir;
     int noAuth = 0;
     int i;
index 18ac415bc19fb22a0159535491a1ce94776f49c4..bb56af19d29a5718dc62d784a648b5a062d62222 100644 (file)
@@ -89,10 +89,10 @@ cron_hascore(struct bnode *abnode)
     Note that the computation of when we should run again is made in procexit
     and/or create procs.  This guy only schedules the sleep */
 int
-ScheduleCronBnode(register struct cronbnode *abnode)
+ScheduleCronBnode(struct cronbnode *abnode)
 {
-    register afs_int32 code;
-    register afs_int32 temp;
+    afs_int32 code;
+    afs_int32 temp;
     struct bnode_proc *tp;
 
     /* If this proc is shutdown, tell bproc() to no longer run this job */
@@ -187,8 +187,8 @@ static int
 cron_timeout(struct bnode *bn)
 {
     struct cronbnode *abnode = (struct cronbnode *)bn;
-    register afs_int32 temp;
-    register afs_int32 code;
+    afs_int32 temp;
+    afs_int32 code;
     struct bnode_proc *tp;
 
     if (!abnode->running) {
@@ -229,7 +229,7 @@ static int
 cron_getstat(struct bnode *bn, afs_int32 * astatus)
 {
     struct cronbnode *abnode = (struct cronbnode *)bn;
-    register afs_int32 temp;
+    afs_int32 temp;
     if (abnode->waitingForShutdown)
        temp = BSTAT_SHUTTINGDOWN;
     else if (abnode->b.goal == 0)
index 16c6e8700d30cd11113d0f5aa75c05d404284e0d..5fea066bde82a7329952dfb5a3f1e5203db24c0b 100644 (file)
@@ -72,7 +72,7 @@ ez_restartp(struct bnode *bn)
 {
     struct ezbnode *abnode = (struct ezbnode *)bn;
     struct bnode_token *tt;
-    register afs_int32 code;
+    afs_int32 code;
     struct stat tstat;
 
     code = bnode_ParseLine(abnode->command, &tt);
@@ -145,7 +145,7 @@ ez_getstat(struct bnode *bn, afs_int32 * astatus)
 {
     struct ezbnode *abnode = (struct ezbnode *)bn;
     
-    register afs_int32 temp;
+    afs_int32 temp;
     if (abnode->waitingForShutdown)
        temp = BSTAT_SHUTTINGDOWN;
     else if (abnode->running)
@@ -162,7 +162,7 @@ ez_setstat(struct bnode *bn, afs_int32 astatus)
     struct ezbnode *abnode = (struct ezbnode *)bn;
     
     struct bnode_proc *tp;
-    register afs_int32 code;
+    afs_int32 code;
 
     if (abnode->waitingForShutdown)
        return BZBUSY;
@@ -191,7 +191,7 @@ ez_procexit(struct bnode *bn, struct bnode_proc *aproc)
     struct ezbnode *abnode = (struct ezbnode *)bn;
 
     /* process has exited */
-    register afs_int32 code;
+    afs_int32 code;
 
     abnode->waitingForShutdown = 0;
     abnode->running = 0;
index 54461f8fb92d855f5299bafab72e526b7d0f20fd..3270ed51c6c1f1b6ff51c6d790182de5324876fa 100644 (file)
@@ -208,7 +208,7 @@ fs_restartp(struct bnode *bn)
 {
     struct fsbnode *abnode = (struct fsbnode *)bn;
     struct bnode_token *tt;
-    register afs_int32 code;
+    afs_int32 code;
     struct stat tstat;
 
     code = bnode_ParseLine(abnode->filecmd, &tt);
@@ -292,7 +292,7 @@ fs_restartp(struct bnode *bn)
 /* set needsSalvage flag, creating file SALVAGE.<instancename> if
     we need to salvage the file system (so we can tell over panic reboots */
 static int
-SetSalFlag(register struct fsbnode *abnode, register int aflag)
+SetSalFlag(struct fsbnode *abnode, int aflag)
 {
     char tbuffer[AFSDIR_PATH_MAX];
     int fd;
@@ -314,7 +314,7 @@ SetSalFlag(register struct fsbnode *abnode, register int aflag)
 
 /* set the needsSalvage flag according to the existence of the salvage file */
 static int
-RestoreSalFlag(register struct fsbnode *abnode)
+RestoreSalFlag(struct fsbnode *abnode)
 {
     char tbuffer[AFSDIR_PATH_MAX];
 
@@ -335,9 +335,9 @@ RestoreSalFlag(register struct fsbnode *abnode)
 }
 
 char *
-copystr(register char *a)
+copystr(char *a)
 {
-    register char *b;
+    char *b;
     b = (char *)malloc(strlen(a) + 1);
     strcpy(b, a);
     return b;
@@ -380,7 +380,7 @@ fs_create(char *ainstance, char *afilecmd, char *avolcmd, char *asalcmd,
          char *ascancmd, char *dummy)
 {
     struct stat tstat;
-    register struct fsbnode *te;
+    struct fsbnode *te;
     char cmdname[AFSDIR_PATH_MAX];
     char *fileCmdpath, *volCmdpath, *salCmdpath, *scanCmdpath;
     int bailout = 0;
@@ -496,7 +496,7 @@ dafs_create(char *ainstance, char *afilecmd, char *avolcmd,
            char * asalsrvcmd, char *asalcmd, char *ascancmd)
 {
     struct stat tstat;
-    register struct fsbnode *te;
+    struct fsbnode *te;
     char cmdname[AFSDIR_PATH_MAX];
     char *fileCmdpath, *volCmdpath, *salsrvCmdpath, *salCmdpath, *scanCmdpath;
     int bailout = 0;
@@ -627,7 +627,7 @@ fs_timeout(struct bnode *bn)
 {
     struct fsbnode *abnode = (struct fsbnode *)bn;
     
-    register afs_int32 now;
+    afs_int32 now;
 
     now = FT_ApproxTime();
     /* shutting down */
@@ -685,7 +685,7 @@ fs_getstat(struct bnode *bn, afs_int32 * astatus)
 {
     struct fsbnode *abnode = (struct fsbnode *) bn;
     
-    register afs_int32 temp;
+    afs_int32 temp;
     if (abnode->volSDW || abnode->fileSDW || abnode->salSDW
        || abnode->scanSDW || abnode->salsrvSDW)
        temp = BSTAT_SHUTTINGDOWN;
@@ -763,7 +763,7 @@ fs_procexit(struct bnode *bn, struct bnode_proc *aproc)
 
 /* make sure we're periodically checking the state if we need to */
 static void
-SetNeedsClock(register struct fsbnode *ab)
+SetNeedsClock(struct fsbnode *ab)
 {
     if (ab->b.goal == 1 && ab->fileRunning && ab->volRunning
        && (!ab->scancmd || ab->scanRunning)
@@ -781,10 +781,10 @@ SetNeedsClock(register struct fsbnode *ab)
 }
 
 static int
-NudgeProcs(register struct fsbnode *abnode)
+NudgeProcs(struct fsbnode *abnode)
 {
     struct bnode_proc *tp;     /* not register */
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 now;
 
     now = FT_ApproxTime();
index 5b82d922559747aa2b64eb52a1f5a9d8335878a0..296337b5e3b0c47e2a71126a62d3864440fe7aab 100644 (file)
@@ -39,7 +39,7 @@ main(argc, argv)
     struct stat tstat;
     FILE *fin = stdin;
     char buf[BUFSIZ], *bufp, *bufp1, *typep, *cmd, *bp;
-    register afs_int32 code, c, fd, id, pflags = -1, len, core = 0, lastE = 0;
+    afs_int32 code, c, fd, id, pflags = -1, len, core = 0, lastE = 0;
     char comLine[60], coreName[40], name[40], lastErrorName[50];
     afs_int32 pid = -1, lastExit = -1, lastSignal = -1, rsCount = -1;
     afs_int32 procStarts = -1;
index b5eff7536b70eba86184e9e6f34ef0479e24fc80..6243cc5b8a275c68da41db1c27dbbb334881186b 100644 (file)
@@ -25,7 +25,7 @@ main(argc, argv)
      int argc;
      char **argv;
 {
-    register int i;
+    int i;
 
 #ifdef AFS_AIX31_ENV
     /*
index a6d18170dfa15145bb1e39a4571d578f1bce3337..0d3deeafda88658c9e3cf3a1383cf50bdf2f16fd 100644 (file)
@@ -23,8 +23,8 @@ main(argc, argv)
      char **argv;
 {
     struct rx_securityClass *rxsc;
-    register struct rx_connection *tconn;
-    register afs_int32 code;
+    struct rx_connection *tconn;
+    afs_int32 code;
 
     rx_Init(0);
     rxsc = rxnull_NewClientSecurityObject();
index 5f31fccf4c49df281143b6f640c92dace182df36..83622b42c1b1f809756c8e9a9de37cb816d0d0b9 100644 (file)
@@ -145,7 +145,7 @@ extern int bc_SaveHosts(void);
 extern afs_int32 filesize(FILE *stream);
 extern int bc_CheckTextVersion(udbClientTextP ctPtr);
 extern int bc_openTextFile(udbClientTextP ctPtr, char *tmpFileName);
-extern int bcdb_GetTextFile(register udbClientTextP ctPtr);
+extern int bcdb_GetTextFile(udbClientTextP ctPtr);
 extern afs_int32 bcdb_FindVolumes(afs_int32 dumpID, char *volumeName,
                                  struct budb_volumeEntry *returnArray,
                                  afs_int32 last, afs_int32 *next,
index 45a6896695a20cd4030ea4df646bde6a3935c2a7..b903f41b184782a32db4364be90bef2a629c3a4f 100644 (file)
@@ -51,8 +51,8 @@ extern int bcdb_UseTape(struct budb_tapeEntry *, afs_int32 *);
 extern int bcdb_FinishTape(struct budb_tapeEntry *);
 extern int bcdb_FindTapeSeq(afs_int32 dumpid, afs_int32 tapeSeq,
                            struct budb_tapeEntry *teptr);
-extern afs_int32 bcdb_AddVolume(register struct budb_volumeEntry *);
-extern afs_int32 bcdb_AddVolumes(register struct budb_volumeEntry *,
+extern afs_int32 bcdb_AddVolume(struct budb_volumeEntry *);
+extern afs_int32 bcdb_AddVolumes(struct budb_volumeEntry *,
                                 afs_int32 );
 extern afs_int32 udbClientInit(int noAuthFlag, int localauth, char *cellName);
 struct ktc_token;
index bd142bc27aec7d62704c6e46655749c11c469626..018e5a424728c33c2010622115e9048e31ac4364 100644 (file)
@@ -29,7 +29,7 @@ struct bc_config *bc_globalConfig;
 static int
 TrimLine(char *abuffer, afs_int32 *aport)
 {
-    register int tc;
+    int tc;
     char garb[100];
 
     *aport = 0;
@@ -48,7 +48,7 @@ TrimLine(char *abuffer, afs_int32 *aport)
 FILE *
 bc_open(struct bc_config *aconfig, char *aname, char *aext, char *amode)
 {
-    register FILE *tf;
+    FILE *tf;
     char tpath[256];
 
     strcpy(tpath, aconfig->path);
@@ -63,7 +63,7 @@ bc_open(struct bc_config *aconfig, char *aname, char *aext, char *amode)
 int
 bc_InitConfig(char *apath)
 {
-    register struct bc_config *tb;
+    struct bc_config *tb;
 
     /* initialize global config structure */
     tb = (struct bc_config *)malloc(sizeof(struct bc_config));
@@ -88,7 +88,7 @@ bc_InitConfig(char *apath)
 static int
 HostAdd(struct bc_hostEntry **alist, char *aname, afs_int32 aport)
 {
-    register struct bc_hostEntry **tlast, *tentry;
+    struct bc_hostEntry **tlast, *tentry;
     struct hostent *th;
 
     /* check that the host address is real */
@@ -125,7 +125,7 @@ HostAdd(struct bc_hostEntry **alist, char *aname, afs_int32 aport)
 static int
 HostDelete(struct bc_hostEntry **alist, char *aname, afs_int32 aport)
 {
-    register struct bc_hostEntry **tlast, *tentry;
+    struct bc_hostEntry **tlast, *tentry;
 
     /* find guy to zap */
     tlast = alist;
@@ -145,7 +145,7 @@ HostDelete(struct bc_hostEntry **alist, char *aname, afs_int32 aport)
 int
 bc_AddTapeHost(struct bc_config *aconfig, char *aname, afs_int32 aport)
 {
-    register afs_int32 code;
+    afs_int32 code;
 
     code = HostAdd(&aconfig->tapeHosts, aname, aport);
 
@@ -155,7 +155,7 @@ bc_AddTapeHost(struct bc_config *aconfig, char *aname, afs_int32 aport)
 int
 bc_DeleteTapeHost(struct bc_config *aconfig, char *aname, afs_int32 aport)
 {
-    register afs_int32 code;
+    afs_int32 code;
 
     code = HostDelete(&aconfig->tapeHosts, aname, aport);
 
index 5b881d7875c08a5d8b483c4179db53295bcd86e7..53081731ab0df4b8d10a6accc3a8899435814578 100644 (file)
 
 /* protos */
 
-static char * TapeName(register char *);
-static char * DumpName(register afs_int32 adumpID);
+static char * TapeName(char *);
+static char * DumpName(afs_int32 adumpID);
 static FILE * OpenDump(afs_int32 , char * );
 FILE * OpenTape(char * , char * );
 static afs_int32 ScanForChildren(afs_int32 );
 static afs_int32 DeleteDump(afs_int32 );
 char * tailCompPtr(char *);
-afs_int32 ScanDumpHdr(register FILE *, char *, char *, afs_int32 *, afs_int32 *,
+afs_int32 ScanDumpHdr(FILE *, char *, char *, afs_int32 *, afs_int32 *,
   afs_int32 *, afs_int32 *);
 afs_int32 ScanTapeVolume(FILE *, char *, afs_int32 *, char *, afs_int32 *, afs_int32 *,
    afs_int32 *, afs_int32 *);
@@ -68,7 +68,7 @@ afs_int32 ScanVolClone(FILE *, char *, afs_int32 *);
 
 /* return the tape file name corresponding to a particular tape */
 
-static char * TapeName(register char *atapeName)
+static char * TapeName(char *atapeName)
 {
     static char tbuffer[AFSDIR_PATH_MAX];
 
@@ -82,7 +82,7 @@ static char * TapeName(register char *atapeName)
 
 /* return the dump file name corresponding to a particular dump ID */
 
-static char * DumpName(register afs_int32 adumpID)
+static char * DumpName(afs_int32 adumpID)
 {
     static char tbuffer[AFSDIR_PATH_MAX];
     char buf[AFSDIR_PATH_MAX];
@@ -96,8 +96,8 @@ static char * DumpName(register afs_int32 adumpID)
 
 static FILE * OpenDump(afs_int32 adumpID, char * awrite)
 {
-    register char *tp;
-    register FILE *tfile;
+    char *tp;
+    FILE *tfile;
 
     tp = DumpName(adumpID);
     tfile = fopen(tp, awrite);
@@ -111,8 +111,8 @@ static FILE * OpenDump(afs_int32 adumpID, char * awrite)
 
 FILE * OpenTape(char * atapeName, char * awrite)
 {
-    register char *tp;
-    register FILE *tfile;
+    char *tp;
+    FILE *tfile;
     tp = TapeName(atapeName);
     tfile = fopen(tp, awrite);
     return tfile;
@@ -123,10 +123,10 @@ FILE * OpenTape(char * atapeName, char * awrite)
 static afs_int32 ScanForChildren(afs_int32 aparentID)
 {
     DIR *tdir;
-    register struct dirent *tde;
+    struct dirent *tde;
     afs_int32 dumpID, parent;
-    register FILE *tfile;
-    register afs_int32 code;
+    FILE *tfile;
+    afs_int32 code;
     afs_int32 j2, j3, j4;
     char dname[256];
     char dumpName[1024];
@@ -165,8 +165,8 @@ static afs_int32 ScanForChildren(afs_int32 aparentID)
 
 static afs_int32 DeleteDump(afs_int32 adumpID)
 {
-    register char *tp;
-    register afs_int32 code;
+    char *tp;
+    afs_int32 code;
     tp = DumpName(adumpID);
     code = unlink(tp);
     if (code)
@@ -178,8 +178,8 @@ static afs_int32 DeleteDump(afs_int32 adumpID)
 #if 0
 static afs_int32 DeleteTape(char * atapeName)
 {
-    register char *tp;
-    register afs_int32 code;
+    char *tp;
+    afs_int32 code;
     tp = TapeName(atapeName);
     code = unlink(tp);
     return code;
@@ -220,12 +220,12 @@ tailCompPtr(char *pathNamePtr)
  *     alevel - level of dump (0 = full, 1+ are incrementals)
  */
 afs_int32
-ScanDumpHdr(register FILE *afile, char *aname, char *dumpName, afs_int32 *aparent, afs_int32 *aincTime, afs_int32 *acreateTime, afs_int32 *alevel)
+ScanDumpHdr(FILE *afile, char *aname, char *dumpName, afs_int32 *aparent, afs_int32 *aincTime, afs_int32 *acreateTime, afs_int32 *alevel)
 {
     char tbuffer[256];
     char *tp;
     afs_int32 dbmagic, dbversion;
-    register afs_int32 code;
+    afs_int32 code;
 
     tp = fgets(tbuffer, sizeof(tbuffer), afile);
     if (!tp)
@@ -246,11 +246,11 @@ ScanDumpHdr(register FILE *afile, char *aname, char *dumpName, afs_int32 *aparen
 
 #if 0
 /* scan a tape header out of a tape file, leaving the file ptr positioned just past the header */
-static afs_int32 ScanTapeHdr(register FILE *afile, afs_int32 *adumpID, afs_int32 *aseq, afs_int32 *adamage)
+static afs_int32 ScanTapeHdr(FILE *afile, afs_int32 *adumpID, afs_int32 *aseq, afs_int32 *adamage)
 {
     char tbuffer[256];
     char *tp;
-    register afs_int32 code;
+    afs_int32 code;
 
     tp = fgets(tbuffer, sizeof(tbuffer), afile);
     if (!tp)
@@ -275,8 +275,8 @@ static afs_int32 ScanTapeHdr(register FILE *afile, afs_int32 *adumpID, afs_int32
 afs_int32 ScanTapeVolume(FILE *afile, char *avolName, afs_int32 *avolID, char *atapeName, afs_int32 *apos, afs_int32 *aseq, afs_int32 *alastp, afs_int32 *cloneTime)
 {
     char tbuffer[256];
-    register afs_int32 code;
-    register char *tp;
+    afs_int32 code;
+    char *tp;
 
     tp = fgets(tbuffer, sizeof(tbuffer), afile);
     if (!tp) {                 /* something went wrong, or eof hit */
@@ -323,10 +323,10 @@ afs_int32 ScanVolClone(FILE *tdump, char *volName, afs_int32 *cloneTime)
 
 #if 0
 /* seek a dump file (after a header scan has been done) to position apos */
-static int SeekDump(register FILE *afile, afs_int32 apos)
+static int SeekDump(FILE *afile, afs_int32 apos)
 {
-    register afs_int32 i;
-    register char *tp;
+    afs_int32 i;
+    char *tp;
     char tbuffer[256];
 
     /* now skip to appropriate position */
index 67daf4da5a87c3a729635a1716cd9705ac289aa2..5707e96521e581e482449a3f5cdc26f94570337d 100644 (file)
@@ -54,7 +54,7 @@ bc_GetPartitionID(char *aname, afs_int32 *aval)
 
     /*bc_GetPartitionID */
 
-    register char tc;
+    char tc;
     char ascii[3];
 
     /* special-case "anything" */
@@ -127,10 +127,10 @@ bc_ParseHost(char *aname, struct sockaddr_in *asockaddr)
 
 {                              /*bc_ParseHost */
 
-    register struct hostent *th;       /*Host entry */
+    struct hostent *th;        /*Host entry */
     afs_uint32 addr;           /*Converted address */
     afs_int32 b1, b2, b3, b4;  /*Byte-sized address chunks */
-    register afs_int32 code;   /*Return code from sscanf() */
+    afs_int32 code;    /*Return code from sscanf() */
     afs_int32 tmp1, tmp2;
 
     /*
@@ -192,7 +192,7 @@ int
 bc_CreateVolumeSet(struct bc_config *aconfig, char *avolName,
                   afs_int32 aflags)
 {
-    register struct bc_volumeSet **tlast, *tset, *nset;
+    struct bc_volumeSet **tlast, *tset, *nset;
 
     if (bc_FindVolumeSet(aconfig, avolName))
        return -1;              /* already exists */
@@ -217,7 +217,7 @@ bc_CreateVolumeSet(struct bc_config *aconfig, char *avolName,
 }
 
 static int
-FreeVolumeEntry(register struct bc_volumeEntry *aentry)
+FreeVolumeEntry(struct bc_volumeEntry *aentry)
 {
     free(aentry->name);
     free(aentry->serverName);
@@ -227,9 +227,9 @@ FreeVolumeEntry(register struct bc_volumeEntry *aentry)
 }
 
 static int
-FreeVolumeEntryList(register struct bc_volumeEntry *aentry)
+FreeVolumeEntryList(struct bc_volumeEntry *aentry)
 {
-    register struct bc_volumeEntry *tnext;
+    struct bc_volumeEntry *tnext;
 
     while (aentry) {
        tnext = aentry->next;
@@ -253,7 +253,7 @@ int
 bc_DeleteVolumeSet(struct bc_config *aconfig, char *avolName,
                   afs_int32 *flags)
 {
-    register struct bc_volumeSet **tlast, *tset;
+    struct bc_volumeSet **tlast, *tset;
 
     *flags = 0;
     tlast = &aconfig->vset;
@@ -274,9 +274,9 @@ int
 bc_DeleteVolumeItem(struct bc_config *aconfig, char *avolName,
                    afs_int32 anumber)
 {
-    register afs_int32 i;
-    register struct bc_volumeSet *tset;
-    register struct bc_volumeEntry *tentry, **tlast;
+    afs_int32 i;
+    struct bc_volumeSet *tset;
+    struct bc_volumeEntry *tentry, **tlast;
 
     tset = bc_FindVolumeSet(aconfig, avolName);
     if (!tset)
@@ -300,8 +300,8 @@ bc_AddVolumeItem(struct bc_config *aconfig, char *avolName, char *ahost,
                 char *apart, char *avol)
 {
     struct bc_volumeSet *tset;
-    register struct bc_volumeEntry **tlast, *tentry;
-    register afs_int32 code;
+    struct bc_volumeEntry **tlast, *tentry;
+    afs_int32 code;
 
     tset = bc_FindVolumeSet(aconfig, avolName);
     if (!tset)
@@ -337,7 +337,7 @@ struct bc_volumeSet *
 bc_FindVolumeSet(struct bc_config *aconfig, char *aname)
 {                              /*bc_FindVolumeSet */
 
-    register struct bc_volumeSet *tvs;
+    struct bc_volumeSet *tvs;
 
     for (tvs = aconfig->vset; tvs; tvs = tvs->next) {
        if (!strcmp(tvs->name, aname))
@@ -365,7 +365,7 @@ int
 bc_CreateDumpSchedule(struct bc_config *aconfig, char *adumpName, 
                      afs_int32 expDate, afs_int32 expType)
 {
-    register struct bc_dumpSchedule *tdump;
+    struct bc_dumpSchedule *tdump;
     struct bc_dumpSchedule *parent, *node;
     afs_int32 code;
 
@@ -406,8 +406,8 @@ int
 bc_DeleteDumpScheduleAddr(struct bc_config *aconfig, 
                           struct bc_dumpSchedule *adumpAddr)
 {
-    register struct bc_dumpSchedule **tlast, *tdump;
-    register struct bc_dumpSchedule *tnext;
+    struct bc_dumpSchedule **tlast, *tdump;
+    struct bc_dumpSchedule *tnext;
 
     /* knock off all children first */
     for (tdump = adumpAddr->firstChild; tdump; tdump = tnext) {
@@ -442,7 +442,7 @@ bc_DeleteDumpScheduleAddr(struct bc_config *aconfig,
 struct bc_dumpSchedule *
 bc_FindDumpSchedule(struct bc_config *aconfig, char *aname)
 {
-    register struct bc_dumpSchedule *tds;
+    struct bc_dumpSchedule *tds;
     for (tds = aconfig->dsched; tds; tds = tds->next) {
        if (!strcmp(tds->name, aname))
            return tds;
@@ -457,7 +457,7 @@ bc_FindDumpSchedule(struct bc_config *aconfig, char *aname)
 int
 bc_DeleteDumpSchedule(struct bc_config *aconfig, char *adumpName)
 {
-    register struct bc_dumpSchedule *tdump;
+    struct bc_dumpSchedule *tdump;
 
     /* does a linear search of the dump schedules in order to find
      * the one to delete
@@ -488,7 +488,7 @@ bc_DeleteDumpSchedule(struct bc_config *aconfig, char *adumpName)
 int
 bc_ProcessDumpSchedule(struct bc_config *aconfig)
 {
-    register struct bc_dumpSchedule *tds;
+    struct bc_dumpSchedule *tds;
     struct bc_dumpSchedule *parentptr, *nodeptr;
     int retval;
 
index c27424bd7f19796ffde66b8324a9eacde223f9d4..1a6e8e7b5673717ad9798850f51bebabdfabac84 100644 (file)
@@ -61,7 +61,7 @@ int
 bc_Dumper(int aindex)
 {
     struct rx_connection *tconn;
-    register struct bc_volumeDump *tde;
+    struct bc_volumeDump *tde;
     afs_int32 count, port;
     struct tc_dumpDesc *volDesc = 0;
     struct tc_dumpArray volArray;
@@ -70,9 +70,9 @@ bc_Dumper(int aindex)
 
     struct tc_dumpInterface dumpInterface;
     struct tc_dumpInterface *tcdiPtr = &dumpInterface;
-    register struct bc_dumpTask *dumpTaskPtr;
+    struct bc_dumpTask *dumpTaskPtr;
 
-    register afs_int32 code = 0;
+    afs_int32 code = 0;
 
     dumpTaskPtr = &bc_dumpTasks[aindex];
 
@@ -201,8 +201,8 @@ void *
 bc_DmpRstStart(void *param)
 {
     afs_int32 aindex = (intptr_t)param;
-    register struct bc_dumpTask *tdump;
-    register afs_int32 code;
+    struct bc_dumpTask *tdump;
+    afs_int32 code;
 
     tdump = &bc_dumpTasks[aindex];
 
@@ -247,8 +247,8 @@ bc_StartDmpRst(struct bc_config *aconfig, char *adname, char *avname,
               int (*aproc) (int), afs_int32 *ports, afs_int32 portCount, 
               struct bc_dumpSchedule *dsptr, int append, int dontExecute)
 {
-    register int i;
-    register afs_int32 code;
+    int i;
+    afs_int32 code;
     void *junk = NULL;
 
     for (i = 0; i < BC_MAXSIMDUMPS; i++)
index a2a49ab6f03d9e5822cabc9043beb134eab5ffd2..8bcc53e0a17dc37421b6aaa9309c4fd00ecf0b19 100644 (file)
@@ -61,10 +61,10 @@ static int ListDumpSchedule(struct bc_dumpSchedule *adump, int alevel);
 int
 bc_AddDumpCmd(struct cmd_syndesc *as, void *arock)
 {
-    register char *dname;      /* dump schedule name */
-    register int code;
+    char *dname;       /* dump schedule name */
+    int code;
     afs_int32 expType, expDate;
-    register struct cmd_item *ti;
+    struct cmd_item *ti;
     udbClientTextP ctPtr;
 
     /* if an expiration date has been specified */
@@ -150,8 +150,8 @@ bc_DeleteDumpCmd(struct cmd_syndesc *as, void *arock)
     /* parm 0 is vol set name
      * parm 1 is dump schedule name
      */
-    register char *dname;
-    register int code;
+    char *dname;
+    int code;
     udbClientTextP ctPtr;
 
     /* lock schedules and check validity */
@@ -201,10 +201,10 @@ bc_DeleteDumpCmd(struct cmd_syndesc *as, void *arock)
  */
 
 static int
-ListDumpSchedule(register struct bc_dumpSchedule *adump, int alevel)
+ListDumpSchedule(struct bc_dumpSchedule *adump, int alevel)
 {
-    register int i;
-    register struct bc_dumpSchedule *child;
+    int i;
+    struct bc_dumpSchedule *child;
 
     /* sanity check for loops */
     if (alevel > 100) {
@@ -264,7 +264,7 @@ bc_ListDumpScheduleCmd(struct cmd_syndesc *as, void *arock)
 {
     /* no parms */
     int code;
-    register struct bc_dumpSchedule *tdump;
+    struct bc_dumpSchedule *tdump;
 
     /* first check to see if schedules must be updated */
     code = bc_UpdateDumpSchedule();
@@ -295,12 +295,12 @@ bc_ListDumpScheduleCmd(struct cmd_syndesc *as, void *arock)
 int
 bc_SetExpCmd(struct cmd_syndesc *as, void *arock)
 {
-    register char *dname;      /* dump schedule name */
-    register struct cmd_item *ti;
+    char *dname;       /* dump schedule name */
+    struct cmd_item *ti;
     struct bc_dumpSchedule *node, *parent;
     afs_int32 expType, expDate;
     udbClientTextP ctPtr;
-    register int code;
+    int code;
 
     /* if an expiration date has been specified */
     if (as->parms[1].items) {
@@ -380,11 +380,11 @@ bc_ParseDumpSchedule(void)
     char *tp;
     afs_int32 code;
     udbClientTextP ctPtr;
-    register struct bc_dumpSchedule *tds;
+    struct bc_dumpSchedule *tds;
     struct bc_dumpSchedule **ppds, *pds;
     afs_int32 expDate, expType;
 
-    register FILE *stream;
+    FILE *stream;
 
     /* initialize locally used variables */
     ctPtr = &bc_globalConfig->configText[TB_DUMPSCHEDULE];
index 7364d0ba04ddfd6e85b637b7dabdca00311e2755..dd5a415d38de31573ecae19d02349310252d5450 100644 (file)
@@ -155,7 +155,7 @@ bc_HandleMisc(afs_int32 code)
 static int
 LineIsBlank(char *aline)
 {
-    register int tc;
+    int tc;
 
     while ((tc = *aline++))
        if ((tc != ' ') && (tc != '\t') && (tc != '\n'))
@@ -213,7 +213,7 @@ bc_InitTextConfig(void)
 static int
 backupInit(void)
 {
-    register afs_int32 code;
+    afs_int32 code;
     static int initd = 0;      /* ever called? */
     PROCESS watcherPid;
     PROCESS pid;               /* LWP process ID */
@@ -298,7 +298,7 @@ backupInit(void)
  */
 
 static int
-MyBeforeProc(register struct cmd_syndesc *as, void *arock)
+MyBeforeProc(struct cmd_syndesc *as, void *arock)
 {
     afs_int32 code;
 
@@ -453,7 +453,7 @@ main(int argc, char **argv)
     char *targv[MAXV];         /*Ptr to parsed argv stuff */
     afs_int32 targc;           /*Num parsed arguments */
     afs_int32 code;            /*Return code */
-    register struct cmd_syndesc *ts;   /*Ptr to parsed command line */
+    struct cmd_syndesc *ts;    /*Ptr to parsed command line */
     int i;
 
 
index f6315d4108e6234fad4ab99f956e2601fbabb404..c5ab6618fbbc58a4af8ee72937ecf03d279abd14 100644 (file)
@@ -54,7 +54,7 @@ bc_AddHostCmd(struct cmd_syndesc *as, void *arock)
     struct cmd_item *ti;
     udbClientTextP ctPtr;
     afs_int32 port = 0;
-    register afs_int32 code = 0;
+    afs_int32 code = 0;
 
     ctPtr = &bc_globalConfig->configText[TB_TAPEHOSTS];
     code = bc_LockText(ctPtr);
@@ -110,7 +110,7 @@ bc_DeleteHostCmd(struct cmd_syndesc *as, void *arock)
     struct cmd_item *ti;
     afs_int32 port = 0;
     udbClientTextP ctPtr;
-    register afs_int32 code = 0;
+    afs_int32 code = 0;
 
     ctPtr = &bc_globalConfig->configText[TB_TAPEHOSTS];
     code = bc_LockText(ctPtr);
@@ -173,7 +173,7 @@ int
 bc_ListHostsCmd(struct cmd_syndesc *as, void *arock)
 {
     afs_int32 code;
-    register struct bc_hostEntry *tentry;
+    struct bc_hostEntry *tentry;
 
     code = bc_UpdateHosts();
     if (code) {
@@ -200,7 +200,7 @@ bc_ListHostsCmd(struct cmd_syndesc *as, void *arock)
 int
 bc_ClearHosts(void)
 {
-    register struct bc_hostEntry *tentry, *temp;
+    struct bc_hostEntry *tentry, *temp;
 
     tentry = bc_globalConfig->tapeHosts;
     while (tentry != 0) {
@@ -299,10 +299,10 @@ bc_ParseHosts(void)
 int
 bc_SaveHosts(void)
 {
-    register afs_int32 code = 0;
+    afs_int32 code = 0;
 
     udbClientTextP ctPtr;
-    register FILE *stream;
+    FILE *stream;
     struct bc_hostEntry *hePtr;
 
     extern struct bc_config *bc_globalConfig;
index 5a71d264edeec613e337350c0e4d638f62b86e4b..57570ac36ed293ae9c72fc37afc1a9f1fb121ec4 100644 (file)
@@ -30,9 +30,9 @@ main(argc, argv)
      int argc;
      char **argv;
 {
-    register int i;
-    register afs_int32 code;
-    register struct rx_service *tservice;
+    int i;
+    afs_int32 code;
+    struct rx_service *tservice;
     struct rx_securityClass *rxsc[1];
 
     for (i = 1; i < argc; i++) {
@@ -76,9 +76,9 @@ STC_PerformDump(acall, adumpName, atapeSet, adumpArray, aparent, alevel,
      struct tc_dumpArray *adumpArray;
      afs_int32 *adumpID;
 {
-    register int i;
-    register struct tc_dumpDesc *tdescr;
-    register afs_int32 code;
+    int i;
+    struct tc_dumpDesc *tdescr;
+    afs_int32 code;
     struct sockaddr_in taddr;
     struct budb_dumpEntry tdentry;
     struct budb_volumeEntry tventry;
@@ -172,8 +172,8 @@ STC_PerformRestore(acall, aname, arestore, adumpID)
      struct tc_restoreArray *arestore;
      afs_int32 *adumpID;
 {
-    register int i;
-    register struct tc_restoreDesc *tdescr;
+    int i;
+    struct tc_restoreDesc *tdescr;
     struct sockaddr_in taddr;
 
     printf("tape controller received request to start restore %s.\n", aname);
index 3eea17806973f9a8977f129a9acdce0cfcf86699..c0a25be9eca2ccd85ef6623bd7d0ce3458c7b16f 100644 (file)
@@ -56,7 +56,7 @@ struct udbHandleS udbHandle;
  * -------------------------------------
  */
 
-afs_int32 bcdb_AddVolume(register struct budb_volumeEntry *veptr)
+afs_int32 bcdb_AddVolume(struct budb_volumeEntry *veptr)
 {
     afs_int32 code;
 
@@ -64,7 +64,7 @@ afs_int32 bcdb_AddVolume(register struct budb_volumeEntry *veptr)
     return (code);
 }
 
-afs_int32 bcdb_AddVolumes(register struct budb_volumeEntry *veptr, afs_int32 count)
+afs_int32 bcdb_AddVolumes(struct budb_volumeEntry *veptr, afs_int32 count)
 {
     struct budb_volumeList volumeList;
     afs_int32 code;
@@ -76,7 +76,7 @@ afs_int32 bcdb_AddVolumes(register struct budb_volumeEntry *veptr, afs_int32 cou
 }
 
 
-afs_int32 bcdb_CreateDump(register struct budb_dumpEntry *deptr)
+afs_int32 bcdb_CreateDump(struct budb_dumpEntry *deptr)
 {
     afs_int32 code;
 
@@ -200,7 +200,7 @@ bcdb_FindDump(char *volumeName, afs_int32 beforeDate,
 int
 bcdb_FindDumpByID(afs_int32 dumpID, struct budb_dumpEntry *deptr)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 nextindex;
     afs_int32 dbTime;
     budb_dumpList dl;
@@ -407,7 +407,7 @@ bcdb_FindVolumes(afs_int32 dumpID, char *volumeName,
 }
 
 int
-bcdb_FinishDump(register struct budb_dumpEntry *deptr)
+bcdb_FinishDump(struct budb_dumpEntry *deptr)
 {
     afs_int32 code;
     code = ubik_BUDB_FinishDump(udbHandle.uh_client, 0, deptr);
@@ -415,7 +415,7 @@ bcdb_FinishDump(register struct budb_dumpEntry *deptr)
 }
 
 int
-bcdb_FinishTape(register struct budb_tapeEntry *teptr)
+bcdb_FinishTape(struct budb_tapeEntry *teptr)
 {
     afs_int32 code;
     code = ubik_BUDB_FinishTape(udbHandle.uh_client, 0, teptr);
@@ -477,7 +477,7 @@ bcdb_UseTape(struct budb_tapeEntry *teptr, afs_int32 *newFlag)
  */
 
 int
-bcdb_GetTextFile(register udbClientTextP ctPtr)
+bcdb_GetTextFile(udbClientTextP ctPtr)
 {
     afs_int32 bufferSize;
     afs_int32 offset, nextOffset;
@@ -1004,10 +1004,10 @@ ubik_Call_SingleServer(int (*aproc) (), struct ubik_client *aclient,
                       char *p9, char *p10, char *p11, char *p12, char *p13, 
                       char *p14, char *p15, char *p16)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 someCode, newHost, thisHost;
-    register afs_int32 i;
-    register afs_int32 count;
+    afs_int32 i;
+    afs_int32 count;
     int chaseCount;
     int pass;
     struct rx_connection *tc;
index 2820c62f8d75a9d8fe0f02282e79cd5aeeb63fad..a517ed0fea6e5434a0c0b9865dd310498a8b4e46 100644 (file)
@@ -58,7 +58,7 @@ static int ListVolSet(struct bc_volumeSet *aset);
 int
 bc_AddVolEntryCmd(struct cmd_syndesc *as, void *arock)
 {
-    register int code;
+    int code;
     char *volSetName, *serverName, *partitionName, *volRegExp;
     udbClientTextP ctPtr;
     struct bc_volumeSet *tset;
@@ -130,8 +130,8 @@ int
 bc_AddVolSetCmd(struct cmd_syndesc *as, void *arock)
 {
     /* parm 0 is vol set name */
-    register int code;
-    register struct cmd_item *ti;
+    int code;
+    struct cmd_item *ti;
     udbClientTextP ctPtr;
     afs_int32 flags;
 
@@ -188,7 +188,7 @@ bc_AddVolSetCmd(struct cmd_syndesc *as, void *arock)
 int
 bc_DeleteVolEntryCmd(struct cmd_syndesc *as, void *arock)
 {
-    register int code;
+    int code;
     afs_int32 entry;
     char *vsname;
     udbClientTextP ctPtr;
@@ -276,8 +276,8 @@ int
 bc_DeleteVolSetCmd(struct cmd_syndesc *as, void *arock)
 {
     /* parm 0 is vol set name */
-    register int code;
-    register struct cmd_item *ti;
+    int code;
+    struct cmd_item *ti;
     udbClientTextP ctPtr;
     afs_int32 c;
     afs_int32 flags, tosave = 0;
@@ -359,8 +359,8 @@ int
 bc_ListVolSetCmd(struct cmd_syndesc *as, void *arock)
 {
     /* parm 0 is optional volume set to display */
-    register struct bc_volumeSet *tset;
-    register struct cmd_item *ti;
+    struct bc_volumeSet *tset;
+    struct cmd_item *ti;
     int code = 0;
 
     code = bc_UpdateVolumeSet();
@@ -437,16 +437,16 @@ bc_ParseVolumeSet(void)
     char vsname[256];          /*Volume set name */
     char serverName[256];      /*Server name */
     char partName[256];                /*Partition name */
-    register struct bc_volumeEntry *tve;       /*Ptr to generated volume spec struct */
-    register struct bc_volumeSet *tvs = NULL;  /*Ptr to volume set struct */
+    struct bc_volumeEntry *tve;        /*Ptr to generated volume spec struct */
+    struct bc_volumeSet *tvs = NULL;   /*Ptr to volume set struct */
     struct bc_volumeEntry **ppve, *pve;
     struct bc_volumeSet **ppvs, *pvs;
-    register afs_int32 code;   /*Generalized return code */
+    afs_int32 code;    /*Generalized return code */
     char *tp;                  /*Result of fgets(), malloc() */
     int readHeader;            /*Is next thing to read a volume set hdr? */
 
     udbClientTextP ctPtr;
-    register FILE *stream;
+    FILE *stream;
     struct bc_config *configPtr;
 
     extern struct bc_config *bc_globalConfig;
@@ -595,12 +595,12 @@ bc_ParseVolumeSet(void)
 int
 bc_SaveVolumeSet(void)
 {
-    register afs_int32 code = 0;
-    register struct bc_volumeSet *tset;
-    register struct bc_volumeEntry *tentry;
+    afs_int32 code = 0;
+    struct bc_volumeSet *tset;
+    struct bc_volumeEntry *tentry;
 
     udbClientTextP ctPtr;
-    register FILE *stream;
+    FILE *stream;
     struct bc_config *configPtr;
 
     extern struct bc_config *bc_globalConfig;
index b30986ab497cd42687f09f303a38a5489c43de51..79a7d7014f01825fbfa4992583a63b314c6fe976 100644 (file)
@@ -126,7 +126,7 @@ convert_cell_to_ubik(struct afsconf_cell *cellinfo, afs_uint32 *myHost,
  *      If it were, this routine would never have been called.
  */
 static int
-MyBeforeProc(register struct cmd_syndesc *as, void *arock)
+MyBeforeProc(struct cmd_syndesc *as, void *arock)
 {
     helpOption = 0;
     return 0;
index a78b4c397c4064a2e7f857ab2e5e2e8c4d85c3fc..312e4b8f1d34e0fc389ec61ddc3fd5c9ea0e7562 100644 (file)
@@ -118,8 +118,8 @@ FreeNode(afs_int32 taskID)
 afs_int32
 GetNthNode(afs_int32 aindex, afs_int32 *aresult)
 {
-    register struct dumpNode *tn;
-    register int i;
+    struct dumpNode *tn;
+    int i;
 
     tn = dumpQHeader->next;
     for (i = 0;; i++) {
index a111c7bbd411e839fad03a4861c070c1dd7f95cc..75194971715dabcd1f10fdfe64a5c366e89a4eb3 100644 (file)
@@ -715,7 +715,7 @@ afs_int32
 PromptForTape(int flag, char *name, afs_uint32 dbDumpId, afs_uint32 taskId,
              int tapecount)
 {
-    register afs_int32 code = 0;
+    afs_int32 code = 0;
     afs_int32 wcode;
     afs_int32 start = 0;
     char inchr;
index 67d4088037cbc1cd03e57bcb2d9880bd7b340c6d..f7cecbd8a0b2b8e50fba1942d147781e3b361b11 100644 (file)
@@ -123,10 +123,10 @@ osi_audit(void)
 }
 
 static afs_int32
-SafeATOL(register char *anum)
+SafeATOL(char *anum)
 {
-    register afs_int32 total;
-    register int tc;
+    afs_int32 total;
+    int tc;
 
     total = 0;
     while ((tc = *anum)) {
@@ -838,7 +838,7 @@ GetConfigParams(char *filename, afs_int32 port)
 static int
 WorkerBee(struct cmd_syndesc *as, void *arock)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct rx_securityClass *(securityObjects[3]);
     struct rx_service *service;
     time_t tokenExpires;
@@ -1161,8 +1161,8 @@ WorkerBee(struct cmd_syndesc *as, void *arock)
 int
 main(int argc, char **argv)
 {
-    register struct cmd_syndesc *ts;
-    register struct cmd_item *ti;
+    struct cmd_syndesc *ts;
+    struct cmd_item *ti;
 
 #ifdef AFS_AIX32_ENV
     /*
index bec7279f0c217ddded6634c956d7f2a153cc66e4..5fa540b6cc047faea7eb647feae18f55a57831de 100644 (file)
@@ -33,8 +33,8 @@ main(argc, argv)
 {
     char tbuffer[10000];
     int fd;
-    register afs_int32 code;
-    register char *lp;
+    afs_int32 code;
+    char *lp;
     afs_int32 count;
 
 #ifdef AFS_AIX32_ENV
index 14195bf2b7edddd2262c9f7d3721133d8641af84..12f0cff9610199e8e488fcef651c5e2db5957165 100644 (file)
@@ -49,7 +49,7 @@ UV_Bind(aserver, port)
      afs_uint32 aserver;
      afs_int32 port;
 {
-    register struct rx_connection *tc;
+    struct rx_connection *tc;
     struct rx_securityClass *uvclass;
 
     uvclass = rxnull_NewClientSecurityObject();
@@ -63,10 +63,10 @@ afs_uint32
 GetServer(aname)
      char *aname;
 {
-    register struct hostent *th;
+    struct hostent *th;
     afs_uint32 addr;
     char b1, b2, b3, b4;
-    register afs_int32 code;
+    afs_int32 code;
 
     code = sscanf(aname, "%d.%d.%d.%d", &b1, &b2, &b3, &b4);
     if (code == 4) {
@@ -82,7 +82,7 @@ GetServer(aname)
 
 
 static int
-PerformDump(register struct cmd_syndesc *as, void *arock)
+PerformDump(struct cmd_syndesc *as, void *arock)
 {
     struct rx_connection *aconn;
     afs_uint32 server;
@@ -132,7 +132,7 @@ PerformDump(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-PerformRestore(register struct cmd_syndesc *as, void *arock)
+PerformRestore(struct cmd_syndesc *as, void *arock)
 {
     struct rx_connection *aconn;
     afs_uint32 server;
@@ -174,7 +174,7 @@ PerformRestore(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-CheckDump(register struct cmd_syndesc *as, void *arock)
+CheckDump(struct cmd_syndesc *as, void *arock)
 {
     struct rx_connection *aconn;
     afs_uint32 server;
@@ -194,7 +194,7 @@ CheckDump(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-AbortDump(register struct cmd_syndesc *as, void *arock)
+AbortDump(struct cmd_syndesc *as, void *arock)
 {
     struct rx_connection *aconn;
     afs_uint32 server;
@@ -214,7 +214,7 @@ AbortDump(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-WaitForDump(register struct cmd_syndesc *as, void *arock)
+WaitForDump(struct cmd_syndesc *as, void *arock)
 {
     struct rx_connection *aconn;
     afs_uint32 server;
@@ -234,7 +234,7 @@ WaitForDump(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-EndDump(register struct cmd_syndesc *as, void *arock)
+EndDump(struct cmd_syndesc *as, void *arock)
 {
     struct rx_connection *aconn;
     afs_uint32 server;
@@ -274,9 +274,9 @@ main(argc, argv)
      int argc;
      char **argv;
 {
-    register afs_int32 code;
+    afs_int32 code;
 
-    register struct cmd_syndesc *ts;
+    struct cmd_syndesc *ts;
 
 #ifdef AFS_AIX32_ENV
     /*
index 3b5302e3fdae75f6559128e0edd2f12cf61e6518..652b56b26f584e47ab0078d8a68ae3e1513e5e57 100644 (file)
@@ -51,10 +51,10 @@ NName(char *a1, char *a2)
 
 /* return true if asub is a substring of amain */
 static int
-SubString(register char *amain, register char *asub)
+SubString(char *amain, char *asub)
 {
     int mlen, slen;
-    register int i, j;
+    int i, j;
     mlen = (int) strlen(amain);
     slen = (int) strlen(asub);
     j = mlen - slen;
@@ -69,9 +69,9 @@ SubString(register char *amain, register char *asub)
 }
 
 static int
-FindType(register struct cmd_syndesc *as, register char *aname)
+FindType(struct cmd_syndesc *as, char *aname)
 {
-    register int i;
+    int i;
     size_t cmdlen;
     int ambig;
     int best;
@@ -108,7 +108,7 @@ FindType(register struct cmd_syndesc *as, register char *aname)
 static struct cmd_syndesc *
 FindSyntax(char *aname, int *aambig)
 {
-    register struct cmd_syndesc *ts;
+    struct cmd_syndesc *ts;
     struct cmd_syndesc *best;
     size_t cmdLen;
     int ambig;
@@ -151,7 +151,7 @@ FindSyntax(char *aname, int *aambig)
 
 /* print the help for a single parameter */
 static void
-PrintParmHelp(register struct cmd_parmdesc *aparm)
+PrintParmHelp(struct cmd_parmdesc *aparm)
 {
     if (aparm->type == CMD_FLAG) {
 #ifdef notdef
@@ -172,17 +172,17 @@ PrintParmHelp(register struct cmd_parmdesc *aparm)
 extern char *AFSVersion;
 
 static int
-VersionProc(register struct cmd_syndesc *as, void *arock)
+VersionProc(struct cmd_syndesc *as, void *arock)
 {
     printf("%s\n", AFSVersion);
     return 0;
 }
 
 void
-PrintSyntax(register struct cmd_syndesc *as)
+PrintSyntax(struct cmd_syndesc *as)
 {
-    register int i;
-    register struct cmd_parmdesc *tp;
+    int i;
+    struct cmd_parmdesc *tp;
 
     /* now print usage, from syntax table */
     if (noOpcodes)
@@ -213,9 +213,9 @@ PrintSyntax(register struct cmd_syndesc *as)
 
 /* must print newline in any case, to terminate preceding line */
 static void
-PrintAliases(register struct cmd_syndesc *as)
+PrintAliases(struct cmd_syndesc *as)
 {
-    register struct cmd_syndesc *ts;
+    struct cmd_syndesc *ts;
 
     if (as->flags & CMD_ALIAS) {
        ts = as->aliasOf;
@@ -233,10 +233,10 @@ PrintAliases(register struct cmd_syndesc *as)
 }
 
 void
-PrintFlagHelp(register struct cmd_syndesc *as)
+PrintFlagHelp(struct cmd_syndesc *as)
 {
-    register int i;
-    register struct cmd_parmdesc *tp;
+    int i;
+    struct cmd_parmdesc *tp;
     int flag_width;
     char *flag_prefix;
 
@@ -276,9 +276,9 @@ PrintFlagHelp(register struct cmd_syndesc *as)
 }
 
 static int
-AproposProc(register struct cmd_syndesc *as, void *arock)
+AproposProc(struct cmd_syndesc *as, void *arock)
 {
-    register struct cmd_syndesc *ts;
+    struct cmd_syndesc *ts;
     char *tsub;
     int didAny;
 
@@ -301,10 +301,10 @@ AproposProc(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-HelpProc(register struct cmd_syndesc *as, void *arock)
+HelpProc(struct cmd_syndesc *as, void *arock)
 {
-    register struct cmd_syndesc *ts;
-    register struct cmd_item *ti;
+    struct cmd_syndesc *ts;
+    struct cmd_item *ti;
     int ambig;
     int code = 0;
 
@@ -369,7 +369,7 @@ cmd_SetAfterProc(int (*aproc) (struct cmd_syndesc * ts, void *afterRock),
 static int
 SortSyntax(struct cmd_syndesc *as)
 {
-    register struct cmd_syndesc **ld, *ud;
+    struct cmd_syndesc **ld, *ud;
 
     for (ld = &allSyntax, ud = *ld; ud; ld = &ud->next, ud = *ld) {
        if (strcmp(ud->name, as->name) > 0) {   /* next guy is bigger than us */
@@ -387,7 +387,7 @@ cmd_CreateSyntax(char *aname,
                 int (*aproc) (struct cmd_syndesc * ts, void *arock),
                 void *arock, char *ahelp)
 {
-    register struct cmd_syndesc *td;
+    struct cmd_syndesc *td;
 
     /* can't have two cmds in no opcode mode */
     if (noOpcodes)
@@ -430,9 +430,9 @@ cmd_CreateSyntax(char *aname,
 }
 
 int
-cmd_CreateAlias(register struct cmd_syndesc *as, char *aname)
+cmd_CreateAlias(struct cmd_syndesc *as, char *aname)
 {
-    register struct cmd_syndesc *td;
+    struct cmd_syndesc *td;
 
     td = (struct cmd_syndesc *)malloc(sizeof(struct cmd_syndesc));
     assert(td);
@@ -455,14 +455,14 @@ cmd_CreateAlias(register struct cmd_syndesc *as, char *aname)
 }
 
 int
-cmd_IsAdministratorCommand(register struct cmd_syndesc *as)
+cmd_IsAdministratorCommand(struct cmd_syndesc *as)
 {
     as->flags |= CMD_ADMIN;
     return 0;
 }
 
 int
-cmd_Seek(register struct cmd_syndesc *as, int apos)
+cmd_Seek(struct cmd_syndesc *as, int apos)
 {
     if (apos >= CMD_MAXPARMS)
        return CMD_EXCESSPARMS;
@@ -471,10 +471,10 @@ cmd_Seek(register struct cmd_syndesc *as, int apos)
 }
 
 int
-cmd_AddParm(register struct cmd_syndesc *as, char *aname, int atype,
+cmd_AddParm(struct cmd_syndesc *as, char *aname, int atype,
            afs_int32 aflags, char *ahelp)
 {
-    register struct cmd_parmdesc *tp;
+    struct cmd_parmdesc *tp;
 
     if (as->nParms >= CMD_MAXPARMS)
        return CMD_EXCESSPARMS;
@@ -497,9 +497,9 @@ cmd_AddParm(register struct cmd_syndesc *as, char *aname, int atype,
 
 /* add a text item to the end of the parameter list */
 static int
-AddItem(register struct cmd_parmdesc *aparm, register char *aval)
+AddItem(struct cmd_parmdesc *aparm, char *aval)
 {
-    register struct cmd_item *ti, *ni;
+    struct cmd_item *ti, *ni;
     ti = (struct cmd_item *)calloc(1, sizeof(struct cmd_item));
     assert(ti);
     ti->data = (char *)malloc(strlen(aval) + 1);
@@ -518,10 +518,10 @@ AddItem(register struct cmd_parmdesc *aparm, register char *aval)
 
 /* skip to next non-flag item, if any */
 static int
-AdvanceType(register struct cmd_syndesc *as, register afs_int32 aval)
+AdvanceType(struct cmd_syndesc *as, afs_int32 aval)
 {
-    register afs_int32 next;
-    register struct cmd_parmdesc *tp;
+    afs_int32 next;
+    struct cmd_parmdesc *tp;
 
     /* first see if we should try to grab rest of line for this dude */
     if (as->parms[aval].flags & CMD_EXPANDS)
@@ -538,11 +538,11 @@ AdvanceType(register struct cmd_syndesc *as, register afs_int32 aval)
 
 /* discard parameters filled in by dispatch */
 static void
-ResetSyntax(register struct cmd_syndesc *as)
+ResetSyntax(struct cmd_syndesc *as)
 {
     int i;
-    register struct cmd_parmdesc *tp;
-    register struct cmd_item *ti, *ni;
+    struct cmd_parmdesc *tp;
+    struct cmd_item *ti, *ni;
 
     tp = as->parms;
     for (i = 0; i < CMD_MAXPARMS; i++, tp++) {
@@ -566,10 +566,10 @@ ResetSyntax(register struct cmd_syndesc *as)
 
 /* move the expands flag to the last one in the list */
 static int
-SetupExpandsFlag(register struct cmd_syndesc *as)
+SetupExpandsFlag(struct cmd_syndesc *as)
 {
-    register struct cmd_parmdesc *tp;
-    register int last, i;
+    struct cmd_parmdesc *tp;
+    int last, i;
 
     last = -1;
     /* find last CMD_LIST type parameter, optional or not, and make it expandable
@@ -628,10 +628,10 @@ InsertInitOpcode(int *aargc, char **aargv)
 }                              /*InsertInitOpcode */
 
 static int
-NoParmsOK(register struct cmd_syndesc *as)
+NoParmsOK(struct cmd_syndesc *as)
 {
-    register int i;
-    register struct cmd_parmdesc *td;
+    int i;
+    struct cmd_parmdesc *td;
 
     for (i = 0; i < CMD_MAXPARMS; i++) {
        td = &as->parms[i];
@@ -911,9 +911,9 @@ cmd_Dispatch(int argc, char **argv)
 
 /* free token list returned by parseLine */
 static int
-FreeTokens(register struct cmd_token *alist)
+FreeTokens(struct cmd_token *alist)
 {
-    register struct cmd_token *nlist;
+    struct cmd_token *nlist;
     for (; alist; alist = nlist) {
        nlist = alist->next;
        free(alist->key);
@@ -924,9 +924,9 @@ FreeTokens(register struct cmd_token *alist)
 
 /* free an argv list returned by parseline */
 int
-cmd_FreeArgv(register char **argv)
+cmd_FreeArgv(char **argv)
 {
-    register char *tp;
+    char *tp;
     for (tp = *argv; tp; argv++, tp = *argv)
        free(tp);
     return 0;
@@ -937,10 +937,10 @@ cmd_FreeArgv(register char **argv)
     later on */
 #define INITSTR ""
 static int
-CopyBackArgs(register struct cmd_token *alist, register char **argv,
+CopyBackArgs(struct cmd_token *alist, char **argv,
             afs_int32 * an, afs_int32 amaxn)
 {
-    register struct cmd_token *next;
+    struct cmd_token *next;
     afs_int32 count;
 
     count = 0;
@@ -970,7 +970,7 @@ CopyBackArgs(register struct cmd_token *alist, register char **argv,
 }
 
 static int
-quote(register int x)
+quote(int x)
 {
     if (x == '"' || x == 39 /* single quote */ )
        return 1;
@@ -979,7 +979,7 @@ quote(register int x)
 }
 
 static int
-space(register int x)
+space(int x)
 {
     if (x == 0 || x == ' ' || x == '\t' || x == '\n')
        return 1;
@@ -991,11 +991,11 @@ int
 cmd_ParseLine(char *aline, char **argv, afs_int32 * an, afs_int32 amaxn)
 {
     char tbuffer[256];
-    register char *tptr = 0;
+    char *tptr = 0;
     int inToken, inQuote;
     struct cmd_token *first, *last;
-    register struct cmd_token *ttok;
-    register int tc;
+    struct cmd_token *ttok;
+    int tc;
 
     inToken = 0;               /* not copying token chars at start */
     first = (struct cmd_token *)0;
index fc143ff8448ed89ff4a6028a04f1ba5d3dbb40f7..1ca0e63ecd44be34410970219d0b1a633898799b 100644 (file)
@@ -76,8 +76,8 @@ extern int cmd_Dispatch(int argc, char **argv);
 extern int cmd_FreeArgv(char **argv);
 extern int cmd_ParseLine(char *aline, char **argv, afs_int32 * an,
                         afs_int32 amaxn);
-extern int cmd_IsAdministratorCommand(register struct cmd_syndesc *as);
-extern void PrintSyntax(register struct cmd_syndesc *as);
-extern void PrintFlagHelp(register struct cmd_syndesc *as);
+extern int cmd_IsAdministratorCommand(struct cmd_syndesc *as);
+extern void PrintSyntax(struct cmd_syndesc *as);
+extern void PrintFlagHelp(struct cmd_syndesc *as);
 
 #endif /* __CMD_INCL__ */
index 7784189ca79a0f0f76bf9e8157b588a92edfb19c..5e0ef76f87c2ad9ee564c961ef189e39422dbc7f 100644 (file)
@@ -24,7 +24,7 @@ cproc1(struct cmd_syndesc *as, void *arock)
 static int
 cproc2(struct cmd_syndesc *as, void *arock)
 {
-    register struct cmd_item *ti;
+    struct cmd_item *ti;
     printf("in the pear command\n");
     printf("number is %s\n", as->parms[0].items->data);
     if (as->parms[1].items)
@@ -40,7 +40,7 @@ cproc2(struct cmd_syndesc *as, void *arock)
 int
 main(int argc, char **argv)
 {
-    register struct cmd_syndesc *ts;
+    struct cmd_syndesc *ts;
 
     ts = cmd_CreateSyntax("apple", cproc1, NULL, "describe apple");
     cmd_CreateAlias(ts, "appl");
index f64d74bf22be302bf5d398353c5e3110919383d9..a5201da3691b9d37e7877751ef163de3dff3413e 100644 (file)
@@ -17,7 +17,7 @@
 static int
 cproc(struct cmd_syndesc *as, void *arock)
 {
-    register struct cmd_item *ti;
+    struct cmd_item *ti;
     printf("in the pear command\n");
     printf("number is %s\n", as->parms[0].items->data);
     if (as->parms[1].items)
@@ -31,7 +31,7 @@ cproc(struct cmd_syndesc *as, void *arock)
 int
 main(int argc, char **argv)
 {
-    register struct cmd_syndesc *ts;
+    struct cmd_syndesc *ts;
 
     ts = cmd_CreateSyntax(NULL, cproc, NULL, "describe pear");
     cmd_AddParm(ts, "-num", CMD_SINGLE, 0, "number of pears");
index 0c577b872c16c08a8cb3d8fb64bc71ee161f643f..5f402aafbabcdcf7366f3d46372ea5f0dd0513bc 100644 (file)
@@ -25,7 +25,7 @@ cproc1(struct cmd_syndesc *as, void *arock)
 static int
 cproc2(struct cmd_syndesc *as, void *arock)
 {
-    register struct cmd_item *ti;
+    struct cmd_item *ti;
     printf("in the pear command\n");
     printf("number is %s\n", as->parms[0].items->data);
     if (as->parms[1].items)
@@ -47,7 +47,7 @@ cproc3(struct cmd_syndesc *as, void *arock)
 int
 main(int argc, char **argv)
 {
-    register struct cmd_syndesc *ts;
+    struct cmd_syndesc *ts;
     char tline[1000];
     long tc;
     char *tp;
index d68bd7018c938a1cf19fcf3be4852d509e783cfd..cdb2702f397043587410069cbbf8116b770c0c21 100644 (file)
@@ -311,7 +311,7 @@ void set_table_num(char *string)
 
 void set_table_fun(char *astring)
 {
-    register char *tp;
+    char *tp;
     unsigned int tc;
 
     for(tp=astring; (tc = *tp) != 0; tp++) {
index f269c6b6401905ef412fdd0c5c8bcb62e60c7084..b2eafd21f1e81715d40bbd29c45323cd5bd63099 100755 (executable)
@@ -361,9 +361,9 @@ __yy_memcpy(from, to, count)
      char *to;
      int count;
 {
-    register char *f = from;
-    register char *t = to;
-    register int i = count;
+    char *f = from;
+    char *t = to;
+    int i = count;
 
     while (i-- > 0)
        *t++ = *f++;
@@ -376,9 +376,9 @@ __yy_memcpy(from, to, count)
 static void
 __yy_memcpy(char *from, char *to, int count)
 {
-    register char *f = from;
-    register char *t = to;
-    register int i = count;
+    char *f = from;
+    char *t = to;
+    int i = count;
 
     while (i-- > 0)
        *t++ = *f++;
@@ -406,10 +406,10 @@ int
 yyparse(YYPARSE_PARAM)
     YYPARSE_PARAM_DECL
 {
-    register int yystate;
-    register int yyn;
-    register short *yyssp;
-    register YYSTYPE *yyvsp;
+    int yystate;
+    int yyn;
+    short *yyssp;
+    int YYSTYPE *yyvsp;
     int yyerrstatus;           /*  number of tokens to shift before error messages enabled */
     int yychar1 = 0;           /*  lookahead token as an internal (translated) token number */
 
@@ -1138,7 +1138,7 @@ set_table_num(char *string)
 void
 set_table_fun(char *astring)
 {
-    register char *tp;
+    char *tp;
     unsigned int tc;
 
     for (tp = astring; (tc = *tp) != 0; tp++) {
index 70b8848588d36cb4d3902459211217f14dc3d394..1be8805c76de454e3ad4a1aefdd12e33b60d2ed6 100644 (file)
@@ -10,7 +10,7 @@ end           return END;
 
 [\t\n\r ]              ;
 
-\"{PC}*\"      { register char *p; yylval.dynstr = ds((char *)yytext+1);
+\"{PC}*\"      { char *p; yylval.dynstr = ds((char *)yytext+1);
                  if ((p=strrchr(yylval.dynstr, '"'))) *p='\0';
                  return QUOTED_STRING;
                }
index 028581d1cc875b3e0a1dca93ae0fb15c86acf391..c7f6f7360d8dbc9aaced5ed5b5e83f6823074fcc 100644 (file)
@@ -542,9 +542,9 @@ YY_MALLOC_DECL
 
 YY_DECL
        {
-       register yy_state_type yy_current_state;
-       register char *yy_cp, *yy_bp;
-       register int yy_act;
+       int yy_state_type yy_current_state;
+       char *yy_cp, *yy_bp;
+       int yy_act;
 
 #line 3 "et_lex.lex.l"
 
@@ -598,7 +598,7 @@ YY_DECL
 yy_match:
                do
                        {
-                       register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
+                       int YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
                        while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
                                {
                                yy_current_state = (int) yy_def[yy_current_state];
@@ -677,7 +677,7 @@ YY_RULE_SETUP
 case 7:
 YY_RULE_SETUP
 #line 13 "et_lex.lex.l"
-{ register char *p; yylval.dynstr = ds((char *)yytext+1);
+{ char *p; yylval.dynstr = ds((char *)yytext+1);
                  if (p=strrchr(yylval.dynstr, '"')) *p='\0';
                  return QUOTED_STRING;
                }
@@ -844,9 +844,9 @@ ECHO;
 
 static int yy_get_next_buffer()
        {
-       register char *dest = yy_current_buffer->yy_ch_buf;
-       register char *source = yytext_ptr;
-       register int number_to_move, i;
+       char *dest = yy_current_buffer->yy_ch_buf;
+       char *source = yytext_ptr;
+       int number_to_move, i;
        int ret_val;
 
        if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
@@ -974,8 +974,8 @@ static int yy_get_next_buffer()
 
 static yy_state_type yy_get_previous_state()
        {
-       register yy_state_type yy_current_state;
-       register char *yy_cp;
+       int yy_state_type yy_current_state;
+       char *yy_cp;
 
        yy_current_state = yy_start;
        yy_state_ptr = yy_state_buf;
@@ -983,7 +983,7 @@ static yy_state_type yy_get_previous_state()
 
        for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
                {
-               register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
+               int YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
                while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
                        {
                        yy_current_state = (int) yy_def[yy_current_state];
@@ -1011,9 +1011,9 @@ static yy_state_type yy_try_NUL_trans( yy_current_state )
 yy_state_type yy_current_state;
 #endif
        {
-       register int yy_is_jam;
+       int yy_is_jam;
 
-       register YY_CHAR yy_c = 1;
+       int YY_CHAR yy_c = 1;
        while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
                {
                yy_current_state = (int) yy_def[yy_current_state];
@@ -1030,14 +1030,14 @@ yy_state_type yy_current_state;
 
 #ifndef YY_NO_UNPUT
 #ifdef YY_USE_PROTOS
-static void yyunput( int c, register char *yy_bp )
+static void yyunput( int c, char *yy_bp )
 #else
 static void yyunput( c, yy_bp )
 int c;
-register char *yy_bp;
+char *yy_bp;
 #endif
        {
-       register char *yy_cp = yy_c_buf_p;
+       char *yy_cp = yy_c_buf_p;
 
        /* undo effects of setting up yytext */
        *yy_cp = yy_hold_char;
@@ -1045,10 +1045,10 @@ register char *yy_bp;
        if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
                { /* need to shift things up to make room */
                /* +2 for EOB chars. */
-               register int number_to_move = yy_n_chars + 2;
-               register char *dest = &yy_current_buffer->yy_ch_buf[
+               int number_to_move = yy_n_chars + 2;
+               char *dest = &yy_current_buffer->yy_ch_buf[
                                        yy_current_buffer->yy_buf_size + 2];
-               register char *source =
+               char *source =
                                &yy_current_buffer->yy_ch_buf[number_to_move];
 
                while ( source > yy_current_buffer->yy_ch_buf )
@@ -1506,7 +1506,7 @@ yyconst char *s2;
 int n;
 #endif
        {
-       register int i;
+       int i;
        for ( i = 0; i < n; ++i )
                s1[i] = s2[i];
        }
index fd376cc8ade863d77600bbca5b5075152d2f5c69..076f073b9c742949af4a2eb6c710f0d58a95bc80 100644 (file)
@@ -23,10 +23,10 @@ int mc_copy(FILE *, FILE *, char **);
 int
 main(int argc, char **argv)
 {
-    register FILE *infile;
-    register FILE *outfile;
+    FILE *infile;
+    FILE *outfile;
     char *alist[5];
-    register int code;
+    int code;
     char *sysname;
 
     if (argc != 4) {
index d877ff695b8a2a7794a450c014178837b1855c60..b3e3690196d14a30546c260280c1b737b34f2e66 100644 (file)
@@ -27,9 +27,9 @@ struct token {
 
 /* free token list returned by parseLine */
 static int
-FreeTokens(register struct token *alist)
+FreeTokens(struct token *alist)
 {
-    register struct token *nlist;
+    struct token *nlist;
     for (; alist; alist = nlist) {
        nlist = alist->next;
        free(alist->key);
@@ -43,11 +43,11 @@ static int
 ParseLine(char *aline, struct token **alist)
 {
     char tbuffer[MAXTOKLEN + 1];
-    register char *tptr = NULL;
+    char *tptr = NULL;
     int inToken;
     struct token *first, *last;
-    register struct token *ttok;
-    register int tc;
+    struct token *ttok;
+    int tc;
     int dontUse = 0;
 
     inToken = 0;               /* not copying token chars at start */
@@ -108,9 +108,9 @@ ParseLine(char *aline, struct token **alist)
 /* read a line into a buffer, putting in null termination and stopping on appropriate
     end of line char.  Returns 0 at eof, > 0 at normal line end, and < 0 on error */
 static int
-GetLine(FILE * afile, register char *abuffer, int amax)
+GetLine(FILE * afile, char *abuffer, int amax)
 {
-    register int tc;
+    int tc;
     int first;
 
     first = 1;
@@ -133,13 +133,13 @@ GetLine(FILE * afile, register char *abuffer, int amax)
 }
 
 int
-mc_copy(register FILE * ain, register FILE * aout, char *alist[])
+mc_copy(FILE * ain, FILE * aout, char *alist[])
 {
     char tbuffer[MAXLINELEN];
     struct token *tokens;
-    register char **tp;
-    register struct token *tt;
-    register int code;
+    char **tp;
+    struct token *tt;
+    int code;
     int copying;
     int done;
 
index c987e7ab952a0a5924eece1f78ba231c729f9347..1f0d11a5857a897a7d8f83d57dec8045a81e1f12 100644 (file)
 /*
     des_cblock *in;            * >= length bytes of input text *
     des_cblock *out;           * >= length bytes of output text *
-    register afs_int32 length; * in bytes *
+    afs_int32 length;  * in bytes *
     int encrypt;               * 0 ==> decrypt, else encrypt *
     des_key_schedule key;              * precomputed key schedule *
     des_cblock *iv;            * 8 bytes of ivec *
 */
 afs_int32
-des_cbc_encrypt(void * in, void * out, register afs_int32 length,
+des_cbc_encrypt(void * in, void * out, afs_int32 length,
                des_key_schedule key, des_cblock * iv, int encrypt)
 {
-    register afs_uint32 *input = (afs_uint32 *) in;
-    register afs_uint32 *output = (afs_uint32 *) out;
-    register afs_uint32 *ivec = (afs_uint32 *) iv;
+    afs_uint32 *input = (afs_uint32 *) in;
+    afs_uint32 *output = (afs_uint32 *) out;
+    afs_uint32 *ivec = (afs_uint32 *) iv;
 
     afs_uint32 i, j;
     afs_uint32 t_input[2];
index 4faf547a11df523f176245a6aefef5c44ff9bf68..60caa216468bdf63ffcd3aefac2d64abed82d1a4 100644 (file)
 /*
     des_cblock *in;            * >= length bytes of inputtext *
     des_cblock *out;           * >= length bytes of outputtext *
-    register afs_int32 length; * in bytes *
+    afs_int32 length;  * in bytes *
     des_key_schedule key;       * precomputed key schedule *
     des_cblock *iv;            * 8 bytes of ivec *
 */
 
 afs_uint32
-des_cbc_cksum(des_cblock * in, des_cblock * out, register afs_int32 length,
+des_cbc_cksum(des_cblock * in, des_cblock * out, afs_int32 length,
              des_key_schedule key, des_cblock * iv)
 {
-    register afs_uint32 *input = (afs_uint32 *) in;
-    register afs_uint32 *output = (afs_uint32 *) out;
+    afs_uint32 *input = (afs_uint32 *) in;
+    afs_uint32 *output = (afs_uint32 *) out;
     afs_uint32 *ivec = (afs_uint32 *) iv;
 
     afs_uint32 i, j;
index 73e1719676d2385eb3b04e52e046f15a7858c261..bfe330d7d9fdd209090293a60281a738dc6fdfcc 100644 (file)
@@ -295,11 +295,11 @@ typedef union {
        { C_block tblk; permute(cpp,&tblk,p,4); LOAD (d,d0,d1,tblk); }
 
 STATIC void
-permute(unsigned char *cp, C_block *out, register C_block *p, int chars_in)
+permute(unsigned char *cp, C_block *out, C_block *p, int chars_in)
 {
-    register DCL_BLOCK(D, D0, D1);
-    register C_block *tp;
-    register int t;
+    DCL_BLOCK(D, D0, D1);
+    C_block *tp;
+    int t;
 
     ZERO(D, D0, D1);
     do {
@@ -480,11 +480,11 @@ static char cryptresult[1 + 4 + 4 + 11 + 1];      /* encrypted result */
  * followed by an encryption produced by the "key" and "setting".
  */
 char *
-crypt(register const char *key, register const char *setting)
+crypt(const char *key, const char *setting)
 {
-    register char *encp;
-    register long i;
-    register int t;
+    char *encp;
+    long i;
+    int t;
     long salt;
     int num_iter, salt_size;
     C_block keyblock, rsltblock;
@@ -593,11 +593,11 @@ static C_block KS[KS_SIZE];
  * Set up the key schedule from the key.
  */
 STATIC int
-des_setkey(register const char *key)
+des_setkey(const char *key)
 {
-    register DCL_BLOCK(K, K0, K1);
-    register C_block *ptabp;
-    register int i;
+    DCL_BLOCK(K, K0, K1);
+    C_block *ptabp;
+    int i;
     static int des_ready = 0;
 
     if (!des_ready) {
@@ -631,11 +631,11 @@ des_cipher(const char *in, char *out, long salt, int num_iter)
 {
     /* variables that we want in registers, most important first */
 #if defined(pdp11)
-    register int j;
+    int j;
 #endif
-    register long L0, L1, R0, R1, k;
-    register C_block *kp;
-    register int ks_inc, loop_count;
+    long L0, L1, R0, R1, k;
+    C_block *kp;
+    int ks_inc, loop_count;
     C_block B;
 
     L0 = salt;
@@ -758,9 +758,9 @@ des_cipher(const char *in, char *out, long salt, int num_iter)
 STATIC void
 init_des(void)
 {
-    register int i, j;
-    register long k;
-    register int tableno;
+    int i, j;
+    long k;
+    int tableno;
     static unsigned char perm[64], tmp32[32];  /* "static" for speed */
 
     /*
@@ -900,7 +900,7 @@ STATIC void
 init_perm(C_block perm[64 / CHUNKBITS][1 << CHUNKBITS], 
          unsigned char p[64], int chars_in, int chars_out)
 {
-    register int i, j, k, l;
+    int i, j, k, l;
 
     for (k = 0; k < chars_out * 8; k++) {      /* each output bit position */
        l = p[k] - 1;           /* where this bit comes from */
@@ -921,9 +921,9 @@ init_perm(C_block perm[64 / CHUNKBITS][1 << CHUNKBITS],
 #if 0                          /* static and doesn't appear to be referenced */
 STATIC int
 setkey(key)
-     register const char *key;
+     const char *key;
 {
-    register int i, j, k;
+    int i, j, k;
     C_block keyblock;
 
     for (i = 0; i < 8; i++) {
@@ -944,10 +944,10 @@ setkey(key)
  */
 int
 encrypt(block, flag)
-     register char *block;
+     char *block;
      int flag;
 {
-    register int i, j, k;
+    int i, j, k;
     C_block cblock;
 
     for (i = 0; i < 8; i++) {
@@ -975,7 +975,7 @@ encrypt(block, flag)
 STATIC
 prtab(char *s, unsigned char *t, int num_rows)
 {
-    register int i, j;
+    int i, j;
 
     (void)printf("%s:\n", s);
     for (i = 0; i < num_rows; i++) {
index 95cd72e47a22064a40d75abedbd810fe0944cd8f..dc25d95865f745863c529ee2428f69fb4c2fd743 100644 (file)
 
 afs_int32
 des_ecb_encrypt(void * clear, void * cipher,
-               register des_key_schedule schedule, int encrypt)
+               des_key_schedule schedule, int encrypt)
 {
     /* better pass 8 bytes, length not checked here */
 
-    register afs_uint32 R1 = 0;
-    register afs_uint32 L1 = 0;        /* R1 = r10, L1 = r9 */
-    register afs_uint32 R2 = 0, L2 = 0;        /* R2 = r8, L2 = r7 */
+    afs_uint32 R1 = 0;
+    afs_uint32 L1 = 0; /* R1 = r10, L1 = r9 */
+    afs_uint32 R2 = 0, L2 = 0; /* R2 = r8, L2 = r7 */
     afs_int32 i;
     /* one more registers left on VAX, see below P_temp_p */
 #ifdef BITS16
index 6c2baf6d689f844e9588261cddf0647d1359b174..9c5e62cc47f32ac2f5cdccaf770bff503be836da 100644 (file)
@@ -34,19 +34,19 @@ charptr_to_cblockptr(char *key) {
 
 /* cbc_encrypt.c */
 extern afs_int32 des_cbc_encrypt(void * in, void * out,
-                                register afs_int32 length,
+                                afs_int32 length,
                                 des_key_schedule key, des_cblock * iv,
                                 int encrypt);
 
 /* pcbc_encrypt.c */
 extern afs_int32 des_pcbc_encrypt(void * in, void * out,
-                                 register afs_int32 length,
+                                 afs_int32 length,
                                  des_key_schedule key, des_cblock * iv,
                                  int encrypt);
 
 /* des.c */
 extern afs_int32 des_ecb_encrypt(void * clear, void * cipher,
-                                register des_key_schedule schedule,
+                                des_key_schedule schedule,
                                 int encrypt);
 
 /* util.c */
@@ -63,12 +63,12 @@ extern void gen(FILE * stream);
 extern int des_is_weak_key(des_cblock key);
 
 /* key_parity.c */
-extern void des_fixup_key_parity(register des_cblock key);
-extern int des_check_key_parity(register des_cblock key);
+extern void des_fixup_key_parity(des_cblock key);
+extern int des_check_key_parity(des_cblock key);
 
 /* cksum.c */
 extern afs_uint32 des_cbc_cksum(des_cblock * in, des_cblock * out,
-                               register afs_int32 length,
+                               afs_int32 length,
                                des_key_schedule key, des_cblock * iv);
 
 /* quad_cksum.c */
@@ -77,13 +77,13 @@ extern afs_uint32 des_quad_cksum(unsigned char *in, afs_uint32 * out,
                                 des_cblock * c_seed);
 
 /* key_sched.c */
-extern int afs_des_key_sched(register des_cblock k,
+extern int afs_des_key_sched(des_cblock k,
                             des_key_schedule schedule);
-extern int des_key_sched(register des_cblock k, des_key_schedule schedule);
+extern int des_key_sched(des_cblock k, des_key_schedule schedule);
 
 
 /* strng_to_key.c */
-extern void des_string_to_key(char *str, register des_cblock * key);
+extern void des_string_to_key(char *str, des_cblock * key);
 
 /* new_rnd_key.c */
 extern int des_random_key(des_cblock key);
index ac264400ef1724ab13daeb690d14bd64821cc4d0..72687b11f6fd22c1313aaf14ec2328a049fe6dcd 100644 (file)
@@ -32,9 +32,9 @@ main(argc, argv)
      int argc;
      char *argv[];
 {
-    register int encrypt;
-    register afs_int32 length;
-    register int *p;
+    int encrypt;
+    afs_int32 length;
+    int *p;
     afs_int32 ivec[2];
     if (argc != 4) {
        fprintf(stderr, "%s: Usage: %s infile outfile mode.\n", argv[0],
index 0ff9acd5790538e07b4182dd1146bc519d8f0b41..fbfb383877cefaef436eeabda6cbd423e888bc05 100644 (file)
@@ -32,7 +32,7 @@
  *                       vax order.
  */
 void
-des_fixup_key_parity(register des_cblock key)
+des_fixup_key_parity(des_cblock key)
 {
     int i;
 
@@ -48,7 +48,7 @@ des_fixup_key_parity(register des_cblock key)
  *                       correct des parity.
  */
 int
-des_check_key_parity(register des_cblock key)
+des_check_key_parity(des_cblock key)
 {
     int i;
 
index 131577f3fa81cd67480e572150c55980b8324aef..d8569148148990af9e50a22f8f0b22e5a8124f98 100644 (file)
@@ -47,17 +47,17 @@ static int make_key_sched(key Key, des_key_schedule Schedule);
 #ifdef AFS_DUX40_ENV
 #pragma weak des_key_sched = afs_des_key_sched
 int
-afs_des_key_sched(register des_cblock k, des_key_schedule schedule)
+afs_des_key_sched(des_cblock k, des_key_schedule schedule)
 #else
 int
-des_key_sched(register des_cblock k, des_key_schedule schedule)
+des_key_sched(des_cblock k, des_key_schedule schedule)
 #endif
 {
     /* better pass 8 bytes, length not checked here */
 
-    register int i, j, n;      /* i = r10, j = r9, n = r8 */
-    register unsigned int temp;        /*  r7 */
-    register char *p_char;     /* r6 */
+    int i, j, n;       /* i = r10, j = r9, n = r8 */
+    unsigned int temp; /*  r7 */
+    char *p_char;      /* r6 */
     key k_char;
     i = 8;
     n = 0;
@@ -123,7 +123,7 @@ des_key_sched(register des_cblock k, des_key_schedule schedule)
 }
 
 static int
-make_key_sched(register key Key, des_key_schedule Schedule)
+make_key_sched(key Key, des_key_schedule Schedule)
 {
     /*
      * The key has been converted to an array to make this run faster;
@@ -137,10 +137,10 @@ make_key_sched(register key Key, des_key_schedule Schedule)
      */
 
     /* r10, unroll by AUTH_DES_ITER */
-    register int iter = AUTH_DES_ITER;
-    register afs_uint32 *k;    /* r9 */
-    register int *kp;          /* r8 */
-    register afs_uint32 temp;  /* r7 */
+    int iter = AUTH_DES_ITER;
+    afs_uint32 *k;     /* r9 */
+    int *kp;           /* r8 */
+    afs_uint32 temp;   /* r7 */
 
     kp = (int *)key_perm;
     k = (afs_uint32 *) Schedule;
index c06be79a93d9792bf28480378dc6d0b7580b0c85..01c91e1c73380b3809f0c7887f4851452b4936f9 100644 (file)
@@ -20,7 +20,7 @@
 
 main()
 {
-    register i;
+    int i;
 
     /* clear the output */
     fprintf(stdout, "\n\tL2 = 0; R2 = 0;");
index 3a9cb8bf441cf2a510f7eb6088d161e824723ab8..b91ed8746d7bf78bd942239f22524192177b9002 100644 (file)
@@ -24,7 +24,7 @@
 void
 gen(FILE * stream)
 {
-    register int i;
+    int i;
 #ifdef AFS_DARWIN80_ENV
     int j;
 
index 174141ad9e87ae48944b009a6bd3ea3d2fc2718e..c92365536e61705844f6b4ad93207672767041ac 100644 (file)
@@ -28,7 +28,7 @@
 void
 gen(FILE * stream)
 {
-    register int i;
+    int i;
 #ifdef AFS_DARWIN80_ENV
     int j;
 
index f240431989189fc178371d4f9a62616ee679bf95..1e4f35ba3a708bd813473a3c160492d604df5a86 100644 (file)
@@ -85,7 +85,7 @@ void
 gen(FILE * stream)
 {
     /*  Local Declarations */
-    register int i, j, iter;
+    int i, j, iter;
 
     /*
      * initialize the key_position array s.t. key_position[i] = i;
index 8c1e3a43fa2d45143af81b9e7853eb3ed33b2184..10ebe99bbe893246bb8eea95bf2cb1bb6cb23a73 100644 (file)
@@ -21,7 +21,7 @@ gen(FILE *stream)
      * map a byte into its equivalent with odd parity, where odd
      * parity is in the least significant bit
      */
-    register int i, j, k, odd;
+    int i, j, k, odd;
 
     fprintf(stream, "static unsigned char const odd_parity[256] = {\n");
 
index 0858ac44d8f35db38c451936381c8a0880f5a9aa..9e570928345b65f10a2fb7ce10cdf53655f82ed2 100644 (file)
@@ -25,7 +25,7 @@ static afs_uint32 P_prime[4][256];
 void
 gen(FILE * stream)
 {
-    register int i, j, k, m;
+    int i, j, k, m;
     /* P permutes 32 bit input R1 into 32 bit output R2 */
 
 #ifdef BIG
index f0c233de00f0ac9cb46982cabc67330fa345e444..e06d5ea00067efa6d79d5b2b7854969b2ebaab47 100644 (file)
@@ -24,7 +24,7 @@ int des_debug;
 void
 gen(FILE * stream)
 {
-    register afs_uint32 i, j, k, l, m, n;
+    afs_uint32 i, j, k, l, m, n;
 
     /* rearrange the S table entries, and adjust for host bit order */
 
index be800f2542abeb0a025ec640952667aff07c642e..2ceffe76ff74b190429b005fff5a68463fd813cf 100644 (file)
@@ -38,7 +38,7 @@ swap_bits(char *array)
     /* just return */
     return;
 #else /* LSBFIRST */
-    register int old, new, i, j;
+    int old, new, i, j;
 
     /* for an eight byte block-- */
     /* flips the bit order within each byte from 0 lsb to 0 msb */
@@ -65,7 +65,7 @@ long_swap_bits(afs_uint32 x)
     return x;
 #else
     char *array = (char *)&x;
-    register int old, new, i, j;
+    int old, new, i, j;
 
     /* flips the bit order within each byte from 0 lsb to 0 msb */
     for (i = 0; i <= (sizeof(afs_int32) - 1); i++) {
@@ -89,7 +89,7 @@ long_swap_bits(afs_uint32 x)
 afs_uint32
 swap_six_bits_to_ansi(afs_uint32 old)
 {
-    register afs_uint32 new, j;
+    afs_uint32 new, j;
 
     /* flips the bit order within each byte from 0 lsb to 0 msb */
     new = 0;
@@ -107,7 +107,7 @@ swap_six_bits_to_ansi(afs_uint32 old)
 afs_uint32
 swap_four_bits_to_ansi(afs_uint32 old)
 {
-    register afs_uint32 new, j;
+    afs_uint32 new, j;
 
     /* flips the bit order within each byte from 0 lsb to 0 msb */
     new = 0;
@@ -131,7 +131,7 @@ swap_bit_pos_1(afs_uint32 x)
      * given the number of a bit position, >=1, flips the bit order
      * each byte. e.g. bit 3 --> bit 6, bit 13 --> bit 12
      */
-    register int y, z;
+    int y, z;
 
     /* always do it, only used by des_make_key_perm.c so far */
     y = (x - 1) / 8;
@@ -155,7 +155,7 @@ swap_bit_pos_0(afs_uint32 x)
 #ifdef MSBFIRST
     return x;
 #else /* LSBFIRST */
-    register int y, z;
+    int y, z;
 
     /*
      * given the number of a bit position, >=0, flips the bit order
@@ -180,7 +180,7 @@ swap_bit_pos_0_to_ansi(afs_uint32 x)
      * bit 0 ==> msb, bit 7 lsb.
      */
 
-    register int y, z;
+    int y, z;
     /*
      * given the number of a bit position, >=0, flips the bit order each
      * byte. e.g. bit 3 --> bit 6, bit 13 --> bit 12
@@ -209,7 +209,7 @@ rev_swap_bit_pos_0(afs_uint32 x)
     return x;
 #else /* MSBFIRST */
 
-    register int y, z;
+    int y, z;
 
     /*
      * given the number of a bit position, >=0, flips the bit order each
@@ -232,7 +232,7 @@ swap_byte_bits(afs_uint32 x)
 #else /* LSBFIRST */
 
     char *array = (char *)&x;
-    register afs_uint32 old, new, j;
+    afs_uint32 old, new, j;
 
     /* flips the bit order within each byte from 0 lsb to 0 msb */
     old = *array;
index c22b296ae7c3407740a8dd5e3f7ad8a482fc1fbd..d0ac533685d25b15686077474cfc33c0d4a0230f 100644 (file)
@@ -219,7 +219,7 @@ pthread_mutex_t des_random_mutex
 void
 des_set_random_generator_seed(des_cblock key)
 {
-    register int i;
+    int i;
 
     /* select the new stream: (note errors are not possible here...) */
     LOCK_RANDOM;
index fd88793db5dd9fcde289774a5877d8cbd327e3e4..563dd7de86ba02aa3625c52897bbacab26cc1a6c 100644 (file)
 /*
     des_cblock *in;             * >= length bytes of input text *
     des_cblock *out;            * >= length bytes of output text *
-    register afs_int32 length;  * in bytes *
+    afs_int32 length;  * in bytes *
     int encrypt;                * 0 ==> decrypt, else encrypt *
     des_key_schedule key;       * precomputed key schedule *
     des_cblock *iv;             * 8 bytes of ivec *
 */
 afs_int32
-des_pcbc_encrypt(void * in, void * out, register afs_int32 length,
+des_pcbc_encrypt(void * in, void * out, afs_int32 length,
                 des_key_schedule key, des_cblock * iv, int encrypt)
 {
-    register afs_uint32 *input = (afs_uint32 *) in;
-    register afs_uint32 *output = (afs_uint32 *) out;
-    register afs_uint32 *ivec = (afs_uint32 *) iv;
+    afs_uint32 *input = (afs_uint32 *) in;
+    afs_uint32 *output = (afs_uint32 *) out;
+    afs_uint32 *ivec = (afs_uint32 *) iv;
 
     afs_uint32 i, j;
     afs_uint32 t_input[2];
index e3f183943c035ca393843b449cd93ab6dac77bd6..c982d1d6584fa5a2ca93955489067b01e6fe801a 100644 (file)
@@ -115,13 +115,13 @@ des_quad_cksum(unsigned char *in, afs_uint32 * out, afs_int32 length,
      * checksum is written unto the address pointed to.
      */
 
-    register afs_uint32 z;
-    register afs_uint32 z2;
-    register afs_uint32 x;
-    register afs_uint32 x2;
-    register unsigned char *p;
-    register afs_int32 len;
-    register int i;
+    afs_uint32 z;
+    afs_uint32 z2;
+    afs_uint32 x;
+    afs_uint32 x2;
+    unsigned char *p;
+    afs_int32 len;
+    int i;
 
     /* use all 8 bytes of seed */
 
index 6b1841de31fd350242e6967426972fc050b691a1..670a2d8848ec78e28a35074ada5a04950000e833 100644 (file)
@@ -130,7 +130,7 @@ des_read_pw_string(char *s, int maxa, char *prompt, int verify)
     int ok = 0, cnt1 = 0;
     char *ptr;
 #if defined(AFS_HPUX_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
-    register int fno;
+    int fno;
     struct sigaction newsig, oldsig;
     struct termios save_ttyb, ttyb;
 #endif
@@ -372,7 +372,7 @@ static sigtype(*old_sigfunc[NSIG]) ();
 static
 push_signals()
 {
-    register i;
+    int i;
     for (i = 0; i < NSIG; i++)
        old_sigfunc[i] = signal(i, sig_restore);
 }
@@ -380,7 +380,7 @@ push_signals()
 static
 pop_signals()
 {
-    register i;
+    int i;
     for (i = 0; i < NSIG; i++)
        (void)signal(i, old_sigfunc[i]);
 }
index 65abd9bbbabccb77f60674a4526ef06533c94548..61507494b13b04e46945fff1f6ba0cd91f540cfb 100644 (file)
  * convert an arbitrary length string to a DES key
  */
 void
-des_string_to_key(char *str, register des_cblock * key)
+des_string_to_key(char *str, des_cblock * key)
 {
-    register char *in_str;
-    register unsigned temp, i, j;
-    register afs_int32 length;
+    char *in_str;
+    unsigned temp, i, j;
+    afs_int32 length;
     unsigned char *k_p;
     int forward;
-    register char *p_char;
+    char *p_char;
     char k_char[64];
     des_key_schedule key_sked;
 
index 2f64f4209f3bab09e40d87ae045bf0cdff2726ac..3579cba346fcc6e9598e4a30f9929125d2a71a8a 100644 (file)
@@ -176,7 +176,7 @@ main(argc, argv)
 flip(array)
      char *array;
 {
-    register old, new, i, j;
+    int old, new, i, j;
     /* flips the bit order within each byte from 0 lsb to 0 msb */
     for (i = 0; i <= 7; i++) {
        old = *array;
index c4f59c3b834590a15f01333214cbec63ac2bd71f..1212341e49f6659dbd195a7767b16b45bb3856f2 100644 (file)
@@ -209,7 +209,7 @@ main(argc, argv)
 flip(array)
      char *array;
 {
-    register old, new, i, j;
+    int old, new, i, j;
     /* flips the bit order within each byte from 0 lsb to 0 msb */
     for (i = 0; i <= 7; i++) {
        old = *array;
index 3408f7b5054d42c3dfdfea0e02d45bca7ca2934b..77763253ed9e55011ccf99fc2573ea9d8a9794a1 100644 (file)
@@ -23,7 +23,7 @@ int
 des_cblock_print_file(des_cblock * x, FILE * fp)
 {
     unsigned char *y = (unsigned char *)x;
-    register int i = 0;
+    int i = 0;
     fprintf(fp, " 0x { ");
 
     while (i++ < 8) {
index e652accb64188eea42d7344186b40dd43a0d047a..f5eea9c0db04834fa970a8faca90f4d9e47c1214 100644 (file)
@@ -109,9 +109,9 @@ int
 DInit(int abuffers)
 {
     /* Initialize the venus buffer system. */
-    register int i, tsize;
-    register struct buffer *tb;
-    register char *tp;
+    int i, tsize;
+    struct buffer *tb;
+    char *tp;
 
     Lock_Init(&afs_bufferLock);
     /* Align each element of Buffers on a doubleword boundary */
@@ -149,10 +149,10 @@ DInit(int abuffers)
  *    @retval NULL read failed
  */
 void *
-DRead(register afs_int32 *fid, register int page)
+DRead(afs_int32 *fid, int page)
 {
     /* Read a page from the disk. */
-    register struct buffer *tb, *tb2, **bufhead;
+    struct buffer *tb, *tb2, **bufhead;
 
     ObtainWriteLock(&afs_bufferLock);
     calls++;
@@ -228,10 +228,10 @@ DRead(register afs_int32 *fid, register int page)
 }
 
 static int
-FixupBucket(register struct buffer *ap)
+FixupBucket(struct buffer *ap)
 {
-    register struct buffer **lp, *tp;
-    register int i;
+    struct buffer **lp, *tp;
+    int i;
 
     /* first try to get it out of its current hash bucket, in which it might not be */
     i = ap->hashIndex;
@@ -252,12 +252,12 @@ FixupBucket(register struct buffer *ap)
 }
 
 struct buffer *
-newslot(afs_int32 *afid, afs_int32 apage, register struct buffer *lp)
+newslot(afs_int32 *afid, afs_int32 apage, struct buffer *lp)
 {
     /* Find a usable buffer slot */
-    register afs_int32 i;
+    afs_int32 i;
     afs_int32 lt;
-    register struct buffer **tbp;
+    struct buffer **tbp;
 
     if (lp && (lp->lockers == 0)) {
        lt = lp->accesstime;
@@ -310,7 +310,7 @@ void
 DRelease(void *loc, int flag)
 {
     struct buffer *bp = (struct buffer *)loc;
-    register int index;
+    int index;
 
     if (!bp)
        return;
@@ -324,11 +324,11 @@ DRelease(void *loc, int flag)
 }
 
 int
-DVOffset(register void *ap)
+DVOffset(void *ap)
 {
     /* Return the byte within a file represented by a buffer pointer. */
-    register struct buffer *bp = ap;
-    register int index;
+    struct buffer *bp = ap;
+    int index;
 
     index = ((char *)bp - BufferData) >> LOGPS;
     if (index < 0 || index >= nbuffers)
@@ -338,10 +338,10 @@ DVOffset(register void *ap)
 }
 
 void
-DZap(register afs_int32 *fid)
+DZap(afs_int32 *fid)
 {
     /* Destroy all buffers pertaining to a particular fid. */
-    register struct buffer *tb;
+    struct buffer *tb;
     ObtainReadLock(&afs_bufferLock);
     for (tb = phTable[pHash(fid)]; tb; tb = tb->hashNext)
        if (FidEq(tb->fid, fid)) {
@@ -354,11 +354,11 @@ DZap(register afs_int32 *fid)
 }
 
 int
-DFlushVolume(register afs_int32 vid)
+DFlushVolume(afs_int32 vid)
 {
     /* Flush all data and release all inode handles for a particular volume */
-    register struct buffer *tb;
-    register int code, rcode = 0;
+    struct buffer *tb;
+    int code, rcode = 0;
     ObtainReadLock(&afs_bufferLock);
     for (tb = phTable[vHash(vid)]; tb; tb = tb->hashNext)
        if (FidVolEq(tb->fid, vid)) {
@@ -377,10 +377,10 @@ DFlushVolume(register afs_int32 vid)
 }
 
 int
-DFlushEntry(register afs_int32 *fid)
+DFlushEntry(afs_int32 *fid)
 {
     /* Flush pages modified by one entry. */
-    register struct buffer *tb;
+    struct buffer *tb;
     int code;
 
     ObtainReadLock(&afs_bufferLock);
@@ -406,8 +406,8 @@ int
 DFlush(void)
 {
     /* Flush all the modified buffers. */
-    register int i;
-    register struct buffer **tbp;
+    int i;
+    struct buffer **tbp;
     afs_int32 code, rcode;
 
     rcode = 0;
@@ -436,12 +436,12 @@ DFlush(void)
 }
 
 void *
-DNew(register afs_int32 *fid, register int page)
+DNew(afs_int32 *fid, int page)
 {
     /* Same as read, only do *not* even try to read the page,
      * since it probably doesn't exist.
      */
-    register struct buffer *tb;
+    struct buffer *tb;
     ObtainWriteLock(&afs_bufferLock);
     if ((tb = newslot(fid, page, 0)) == 0) {
        ReleaseWriteLock(&afs_bufferLock);
index 7d9bd942d0ff6ece2d41c2cc1a05320793718826..25f5b6d37fe984baadb16e62377b85ac25488b09 100644 (file)
@@ -61,8 +61,8 @@ extern void *DNew(struct dcache *adc, int page);
 
 /* afs_buffer.c */
 /* These are needed because afs_prototypes.h is not included here */
-extern void *DRead(register afs_int32 *fid, register int page);
-extern void *DNew(register afs_int32 *fid, register int page);
+extern void *DRead(afs_int32 *fid, int page);
+extern void *DNew(afs_int32 *fid, int page);
 
 #endif /* !defined(UKERNEL) */
 #include "afs/afs_osi.h"
@@ -115,7 +115,7 @@ static struct DirEntry *FindItem(void *dir, char *ename,
 int
 NameBlobs(char *name)
 {
-    register int i;
+    int i;
     i = strlen(name) + 1;
     return 1 + ((i + 15) >> 5);
 }
@@ -127,10 +127,10 @@ Create(void *dir, char *entry, void *voidfid)
 {
     afs_int32 *vfid = (afs_int32 *) voidfid;
     int blobs, firstelt;
-    register int i;
-    register struct DirEntry *ep;
+    int i;
+    struct DirEntry *ep;
     unsigned short *pp = NULL;
-    register struct DirHeader *dhp;
+    struct DirHeader *dhp;
 
     /* check name quality */
     if (*entry == 0)
@@ -194,7 +194,7 @@ Delete(void *dir, char *entry)
 {
     /* Delete an entry from a directory, including update of all free entry descriptors. */
     int nitems, index;
-    register struct DirEntry *firstitem;
+    struct DirEntry *firstitem;
     unsigned short *previtem;
     firstitem = FindItem(dir, entry, &previtem);
     if (firstitem == 0)
@@ -212,9 +212,9 @@ int
 FindBlobs(void *dir, int nblobs)
 {
     /* Find a bunch of contiguous entries; at least nblobs in a row. */
-    register int i, j, k;
+    int i, j, k;
     int failed = 0;
-    register struct DirHeader *dhp;
+    struct DirHeader *dhp;
     struct PageHeader *pp;
     int pgcount;
 
@@ -281,8 +281,8 @@ FindBlobs(void *dir, int nblobs)
 void
 AddPage(void *dir, int pageno)
 {                              /* Add a page to a directory. */
-    register int i;
-    register struct PageHeader *pp;
+    int i;
+    struct PageHeader *pp;
 
     pp = (struct PageHeader *)DNew(dir, pageno);       /* Get a new buffer labelled dir,pageno */
     pp->tag = htons(1234);
@@ -298,9 +298,9 @@ AddPage(void *dir, int pageno)
 /* Free a whole bunch of directory entries. */
 
 void
-FreeBlobs(void *dir, register int firstblob, int nblobs)
+FreeBlobs(void *dir, int firstblob, int nblobs)
 {
-    register int i;
+    int i;
     int page;
     struct DirHeader *dhp;
     struct PageHeader *pp;
@@ -328,8 +328,8 @@ FreeBlobs(void *dir, register int firstblob, int nblobs)
 int
 MakeDir(void *dir, afs_int32 * me, afs_int32 * parent)
 {
-    register int i;
-    register struct DirHeader *dhp;
+    int i;
+    struct DirHeader *dhp;
     dhp = (struct DirHeader *)DNew(dir, 0);
     dhp->header.pgcount = htons(1);
     dhp->header.tag = htons(1234);
@@ -355,7 +355,7 @@ int
 Lookup(void *dir, char *entry, void *voidfid)
 {
     afs_int32 *fid = (afs_int32 *) voidfid;
-    register struct DirEntry *firstitem;
+    struct DirEntry *firstitem;
     unsigned short *previtem;
 
     firstitem = FindItem(dir, entry, &previtem);
@@ -374,7 +374,7 @@ int
 LookupOffset(void *dir, char *entry, void *voidfid, long *offsetp)
 {
     afs_int32 *fid = (afs_int32 *) voidfid;
-    register struct DirEntry *firstitem;
+    struct DirEntry *firstitem;
     unsigned short *previtem;
 
     firstitem = FindItem(dir, entry, &previtem);
@@ -397,10 +397,10 @@ EnumerateDir(void *dir, int (*hookproc) (void *dir, char *name,
     /* Enumerate the contents of a directory.
      * Break when hook function returns non 0.
      */
-    register int i;
+    int i;
     int num;
-    register struct DirHeader *dhp;
-    register struct DirEntry *ep;
+    struct DirHeader *dhp;
+    struct DirEntry *ep;
     int code = 0;
 
     dhp = (struct DirHeader *)DRead(dir, 0);
@@ -439,10 +439,10 @@ int
 IsEmpty(void *dir)
 {
     /* Enumerate the contents of a directory. */
-    register int i;
+    int i;
     int num;
-    register struct DirHeader *dhp;
-    register struct DirEntry *ep;
+    struct DirHeader *dhp;
+    struct DirEntry *ep;
     dhp = (struct DirHeader *)DRead(dir, 0);
     if (!dhp)
        return 0;
@@ -479,12 +479,12 @@ GetBlob(void *dir, afs_int32 blobno)
 }
 
 int
-DirHash(register char *string)
+DirHash(char *string)
 {
     /* Hash a string to a number between 0 and NHASHENT. */
-    register unsigned char tc;
+    unsigned char tc;
     unsigned int hval;
-    register int tval;
+    int tval;
     hval = 0;
     while ((tc = (*string++))) {
        hval *= 173;
@@ -508,10 +508,10 @@ DirHash(register char *string)
 static struct DirEntry *
 FindItem(void *dir, char *ename, unsigned short **previtem)
 {
-    register int i;
-    register struct DirHeader *dhp;
-    register unsigned short *lp;
-    register struct DirEntry *tp;
+    int i;
+    struct DirHeader *dhp;
+    unsigned short *lp;
+    struct DirEntry *tp;
     i = DirHash(ename);
     dhp = (struct DirHeader *)DRead(dir, 0);
     if (!dhp)
@@ -557,10 +557,10 @@ FindFid (void *dir, afs_uint32 vnode, afs_uint32 unique)
      * however, no items are left locked, and a null pointer is returned 
      * instead. 
      */
-    register int i;
-    register struct DirHeader *dhp;
-    register unsigned short *lp;
-    register struct DirEntry *tp;
+    int i;
+    struct DirHeader *dhp;
+    unsigned short *lp;
+    struct DirEntry *tp;
     dhp = (struct DirHeader *) DRead(dir,0);
     if (!dhp) return 0;
     for (i=0; i<NHASHENT; i++) {
@@ -594,7 +594,7 @@ InverseLookup (void *dir, afs_uint32 vnode, afs_uint32 unique, char *name,
               afs_uint32 length)
 {
     /* Look for the name pointing to given vnode and unique in a directory */
-    register struct DirEntry *entry;
+    struct DirEntry *entry;
     int code = 0;
     
     entry = FindFid(dir, vnode, unique);
index 60fc5f02857717c99c1a48a5392861f3cc44337b..d558e1ded9bbfa5b31bfefa3951fa0a9df908fb6 100644 (file)
@@ -90,7 +90,7 @@ extern int Length(void *dir);
 extern int Delete(void *dir, char *entry);
 extern int FindBlobs(void *dir, int nblobs);
 extern void AddPage(void *dir, int pageno);
-extern void FreeBlobs(void *dir, register int firstblob, int nblobs);
+extern void FreeBlobs(void *dir, int firstblob, int nblobs);
 extern int MakeDir(void *dir, afs_int32 * me, afs_int32 * parent);
 extern int Lookup(void *dir, char *entry, void *fid);
 extern int LookupOffset(void *dir, char *entry, void *fid, long *offsetp);
@@ -100,13 +100,13 @@ extern int EnumerateDir(void *dir,
                        void *hook);
 extern int IsEmpty(void *dir);
 extern struct DirEntry *GetBlob(void *dir, afs_int32 blobno);
-extern int DirHash(register char *string);
+extern int DirHash(char *string);
 
 extern int DStat(int *abuffers, int *acalls, int *aios);
 extern void DRelease(void *loc, int flag);
-extern int DVOffset(register void *ap);
-extern int DFlushVolume(register afs_int32 vid);
-extern int DFlushEntry(register afs_int32 *fid);
+extern int DVOffset(void *ap);
+extern int DFlushVolume(afs_int32 vid);
+extern int DFlushEntry(afs_int32 *fid);
 extern int InverseLookup (void *dir, afs_uint32 vnode, afs_uint32 unique,
                          char *name, afs_uint32 length);
 
@@ -114,10 +114,10 @@ extern int InverseLookup (void *dir, afs_uint32 vnode, afs_uint32 unique,
    in afs_prototypes.h */
 #ifndef KERNEL
 extern int DInit(int abuffers);
-extern void *DRead(register afs_int32 *fid, register int page);
+extern void *DRead(afs_int32 *fid, int page);
 extern int DFlush(void);
-extern void *DNew(register afs_int32 *fid, register int page);
-extern void DZap(register afs_int32 *fid);
+extern void *DNew(afs_int32 *fid, int page);
+extern void DZap(afs_int32 *fid);
 
 /* salvage.c */
 
index fc6e521a9c7b0f5a9ac5c6c23e4a5dbf260daf60..1bb702e0185059ac624df48f4e85c1b7e7233601 100644 (file)
@@ -51,9 +51,9 @@ extern afs_int32 DErrno;
 /* figure out how many pages in use in a directory, given ptr to its (locked) 
  * header */
 static int
-ComputeUsedPages(register struct DirHeader *dhp)
+ComputeUsedPages(struct DirHeader *dhp)
 {
-    register afs_int32 usedPages, i;
+    afs_int32 usedPages, i;
 
     if (dhp->header.pgcount != 0) {
        /* new style */
@@ -449,8 +449,8 @@ DirSalvage(void *fromFile, void *toFile, afs_int32 vn, afs_int32 vu,
     /* First do a MakeDir on the target. */
     afs_int32 dot[3], dotdot[3], lfid[3], code, usedPages;
     char tname[256];
-    register int i;
-    register char *tp;
+    int i;
+    char *tp;
     struct DirHeader *dhp;
     struct DirEntry *ep;
     int entry;
index 819c5c938b6945c07812fe294fbb07e29a935891..446918b458fa091e6b8711386ec89adccc6bb336 100644 (file)
@@ -83,7 +83,7 @@ main(argc, argv)
 }
 
 LookupDir(dname, ename)
-     register char *dname, *ename;
+     char *dname, *ename;
 {
     dirhandle dir;
     long fid[3], code;
@@ -99,7 +99,7 @@ LookupDir(dname, ename)
 }
 
 AddEntry(dname, ename)
-     register char *dname, *ename;
+     char *dname, *ename;
 {
     dirhandle dir;
     long fid[3], code;
@@ -162,7 +162,7 @@ DelTest(dname, ename)
      char *ename;
 {
     dirhandle dir;
-    register long code;
+    long code;
 
     OpenDir(dname, &dir);
     code = Delete(&dir, ename);
@@ -177,7 +177,7 @@ CRTest(dname, ename, count)
      int count;
 {
     char tbuffer[200];
-    register long i, code;
+    long i, code;
     long fid[3];
     dirhandle dir;
 
index 53bad9589b1bf55cb4de268105b5633f2610a3c3..2a58f089e4392ca384642738c5ec8b33bc128b2e 100644 (file)
@@ -90,21 +90,21 @@ ReallyWrite(fid, block, data)
 
 int
 FidZap(afid)
-     register long *afid;
+     long *afid;
 {                              /* Zero out a file */
     *afid = 0;
 }
 
 int
 FidZero(afid)
-     register long *afid;
+     long *afid;
 {                              /* Zero out a file */
     *afid = 0;
 }
 
 int
 FidEq(afid, bfid)
-     register long *afid, *bfid;
+     long *afid, *bfid;
 {                              /* Compare two fids for equality. */
     if (*afid != *bfid)
        return 0;
@@ -113,14 +113,14 @@ FidEq(afid, bfid)
 
 int
 FidVolEq(afid, bfid)
-     register long *afid, *bfid;
+     long *afid, *bfid;
 {                              /* Is fid in a particular volume */
     return 1;
 }
 
 int
 FidCpy(dfid, sfid)
-     register long *dfid, *sfid;
+     long *dfid, *sfid;
 {                              /* Assign one fid to another. */
     *dfid = *sfid;
 }
index 14cb37604493fe42c012c584c5237db000ebe8e3..763a5f4efc26502a86e249eea4e5e09748b56e37 100644 (file)
@@ -34,8 +34,8 @@ extern int sysconfig(int cmd, void *arg, int len);
 main(argc, argv)
      char **argv;
 {
-    register add, del;
-    register c;
+    int add, del;
+    int c;
     int res;
     char *file;
     mid_t kmid;
index fa2b85df3e2961ee79f8801333c922d0d8411bc3..1268f2f1eda50396749bff6e56e5429ddb27ebb7 100644 (file)
@@ -40,8 +40,8 @@ char *xstrings;
 main(argc, argv)
      char **argv;
 {
-    register add, del, opts;
-    register c;
+    int add, del, opts;
+    int c;
     char *file;
     mid_t kmid;
     struct cfg_load cload;
@@ -377,12 +377,12 @@ get_syms(conf, syms)
  */
 #define SYMBUFSIZE 1048576
 xlate_xtok(xp, kp, strp, szp)
-     register struct syment *xp;
-     register sym_t *kp;
+     struct syment *xp;
+     sym_t *kp;
      char **strp;
      uint *szp;
 {
-    register len;
+    int len;
     static char *export_strings = NULL, *prev = "";
     static left, offset, sz;
 
@@ -499,11 +499,11 @@ xlate_xtok(xp, kp, strp, szp)
  *     This is rather inefficient.
  */
 find_suffix(p, strings, max, offp)
-     register char *p, *strings;
+     char *p, *strings;
      uint *offp;
 {
-    register char *q, *e;
-    register len = strlen(p) - 1;
+    char *q, *e;
+    int len = strlen(p) - 1;
 
     strings += sizeof(uint);
     max -= sizeof(uint);
@@ -541,10 +541,10 @@ find_suffix(p, strings, max, offp)
  * C_EXT < C_HIDEXT;
  */
 xsym_compar(xp, xq)
-     register struct syment *xp, *xq;
+     struct syment *xp, *xq;
 {
-    register char *p, *q;
-    register compar;
+    char *p, *q;
+    int compar;
 
 #ifndef __XCOFF64__
     p = (xp->n_zeroes ? xp->n_name : xp->n_nptr);
index c8a295da9ac3c148498c0a64515be5301198ddbc..393d47458d769c2057aad6f9ed2ecb1c94a957a0 100644 (file)
@@ -76,12 +76,12 @@ export(cmd, uiop)
  * config -    process configuration data
  */
 config(uiop)
-     register struct uio *uiop;
+     struct uio *uiop;
 {
     struct k_conf conf;
-    register struct export_nl *np;
-    register sym_t *sym;
-    register err;
+    struct export_nl *np;
+    sym_t *sym;
+    int err;
 
     if (err = uiomove((char *)&conf, sizeof(conf), UIO_WRITE, uiop))
        return err;
@@ -163,8 +163,8 @@ u_int32 *myg_toc;
 
 import_kfunc(struct k_func * kfp)
 {
-    register sym_t *sym;
-    register i, pri;
+    sym_t *sym;
+    int i, pri;
 #if 0
     static caddr_t *g_toc;
 #endif
@@ -207,8 +207,8 @@ import_kfunc(struct k_func * kfp)
  */
 import_kvar(struct k_var * kvp, caddr_t * toc)
 {
-    register sym_t *sym;
-    register i, pri;
+    sym_t *sym;
+    int i, pri;
     label_t jmpbuf;
 
     switch (setjmpx(&jmpbuf)) {
index 98603cea9b78fc643f93e79eab176ad99db6baa1..1d8e3ecda56f0075833d25366cec2d8bdc9b4305 100644 (file)
@@ -35,7 +35,7 @@ sym_lookup(name, value)
 {
     static sym_t *symsrch(), *search();
     char buf[64];
-    register sym_t *sym;
+    sym_t *sym;
 
     if (name) {
        /*
@@ -62,8 +62,8 @@ static sym_t *
 search(addr)
      unsigned addr;
 {
-    register sym_t *sp;
-    register sym_t *save;
+    sym_t *sp;
+    sym_t *save;
     unsigned value;
 
     value = 0;
@@ -82,12 +82,12 @@ search(addr)
 
 static sym_t *
 symsrch(s)
-     register char *s;
+     char *s;
 {
-    register sym_t *sp;
-    register sym_t *found;
-    register len;
-    register char *p;
+    sym_t *sp;
+    sym_t *found;
+    int len;
+    char *p;
 
     /*
      * determine length of symbol
@@ -128,7 +128,7 @@ symsrch(s)
  */
 sym_t *
 sym_flex(sym)
-     register sym_t *sym;
+     sym_t *sym;
 {
     static sym_t symbol;
     static char name[48];
index bbfda3804dcea893b14498483bfe205d36703b38..a8ef8b76a83584bf5516c4b4817d6ec1b3a23269 100644 (file)
@@ -85,11 +85,11 @@ xdr_wrapstring(XDR * xdrs, char **cpp)
  * > xdr_elem: routine to XDR each element
  */
 bool_t
-xdr_vector(register XDR * xdrs, register char *basep, register u_int nelem,
-          register u_int elemsize, register xdrproc_t xdr_elem)
+xdr_vector(XDR * xdrs, char *basep, u_int nelem,
+          u_int elemsize, xdrproc_t xdr_elem)
 {
-    register u_int i;
-    register char *elptr;
+    u_int i;
+    char *elptr;
 
     elptr = basep;
     for (i = 0; i < nelem; i++) {
index a2d9a06409abe32d4bf1d9943def4ff7b20d82d5..a308af20c53df5f900d9f0ed064195d1922a983a 100644 (file)
@@ -226,7 +226,7 @@ fsprobe_LWP(void *unused)
 {                              /*fsprobe_LWP */
 
     static char rn[] = "fsprobe_LWP";  /*Routine name */
-    register afs_int32 code;   /*Results of calls */
+    afs_int32 code;    /*Results of calls */
     struct timeval tv;         /*Time structure */
     int conn_idx;              /*Connection index */
     struct fsprobe_ConnectionInfo *curr_conn;  /*Current connection */
@@ -391,7 +391,7 @@ XListPartitions(struct rx_connection *aconn, struct partList *ptrPartList,
 {
     struct pIDs partIds;
     struct partEntries partEnts;
-    register int i, j = 0, code;
+    int i, j = 0, code;
 
     *cntp = 0;
     if (newvolserver == 1) {
@@ -482,7 +482,7 @@ fsprobe_Init(int a_numServers, struct sockaddr_in *a_socketArray,
 {                              /*fsprobe_Init */
 
     static char rn[] = "fsprobe_Init"; /*Routine name */
-    register afs_int32 code;   /*Return value */
+    afs_int32 code;    /*Return value */
     static struct rx_securityClass *CBsecobj;  /*Callback security object */
     struct rx_securityClass *secobj;   /*Client security object */
     struct rx_service *rxsrv_afsserver;        /*Server for AFS */
index 73ca6f8965e538c65867a42f662f489b0e8f9e88..54b93f45802f8ff0a010b5a5825e31f4008cdef6 100644 (file)
@@ -145,7 +145,7 @@ main(int argc, char **argv)
 {                              /*Main routine */
 
     static char rn[] = "fsprobe_test"; /*Routine name */
-    register afs_int32 code;   /*Return code */
+    afs_int32 code;    /*Return code */
     struct sockaddr_in FSSktArray[3];  /*socket array */
     struct hostent *he;                /*Host entry */
     struct timeval tv;         /*Time structure */
index bfccf4ce834aac7d51b70c29dfa3b3572543d630..0fd933e49539051c73e9c35c771ed1d4d0a38683 100644 (file)
@@ -26,7 +26,7 @@ main(argc, argv)
 
 {                              /*main */
 
-    register afs_int32 code;   /*Return code */
+    afs_int32 code;    /*Return code */
     struct gator_textcb_hdr *newCB;    /*Ptr to new CB hdr */
     char buf[1024];            /*Text buffer */
     int do_debugging;          /*Print out debugging info? */
index a1b3cdfc5904a578804e1ffb9d1ffb9fe7f7763c..f40bc886d8596ec86bf7cd70de3a02b4438e2ec5 100644 (file)
@@ -50,9 +50,9 @@ gtxframe_CtrlHCmd(void *aparam, void *arock)
 {
     struct gwin *awindow = (struct gwin *) aparam;
     
-    register struct gtx_frame *tframe;
-    register char *tp;
-    register int pos;
+    struct gtx_frame *tframe;
+    char *tp;
+    int pos;
 
     tframe = awindow->w_frame;
     if (!(tp = tframe->defaultLine))
@@ -69,7 +69,7 @@ gtxframe_RecursiveEndCmd(void *aparam, void *arock)
 {
     struct gwin *awindow = (struct gwin *) aparam;
     
-    register struct gtx_frame *tframe;
+    struct gtx_frame *tframe;
 
     tframe = awindow->w_frame;
     tframe->flags |= GTXFRAME_RECURSIVEEND;
@@ -82,7 +82,7 @@ gtxframe_RecursiveErrCmd(void *aparam, void *arock)
 {
     struct gwin *awindow = (struct gwin *) aparam;
     
-    register struct gtx_frame *tframe;
+    struct gtx_frame *tframe;
 
     tframe = awindow->w_frame;
     tframe->flags |= GTXFRAME_RECURSIVEEND;
@@ -97,9 +97,9 @@ gtxframe_SelfInsertCmd(void *aparam, void *rockparam)
     
     int arock = (intptr_t)rockparam;
     
-    register struct gtx_frame *tframe;
-    register int pos;
-    register char *tp;
+    struct gtx_frame *tframe;
+    int pos;
+    char *tp;
 
     tframe = awindow->w_frame;
     if (!(tp = tframe->defaultLine))
@@ -115,7 +115,7 @@ static int
 SaveMap(struct gtx_frame *aframe)
 {
     char tstring[2];
-    register int i;
+    int i;
 
     if (!recursiveMap) {
        /* setup recursive edit map if not previously done */
@@ -182,7 +182,7 @@ gtxframe_GetFrame(struct gwin *awin)
 int
 gtxframe_AddMenu(struct gtx_frame *aframe, char *alabel, char *astring)
 {
-    register struct gtxframe_menu *tmenu;
+    struct gtxframe_menu *tmenu;
 
     if (aframe->menus)
        for (tmenu = aframe->menus; tmenu; tmenu = tmenu->next) {
@@ -216,7 +216,7 @@ gtxframe_AddMenu(struct gtx_frame *aframe, char *alabel, char *astring)
 int
 gtxframe_DeleteMenu(struct gtx_frame *aframe, char *alabel)
 {
-    register struct gtxframe_menu *tm, **lm;
+    struct gtxframe_menu *tm, **lm;
 
     for (lm = &aframe->menus, tm = *lm; tm; lm = &tm->next, tm = *lm) {
        if (strcmp(alabel, tm->name) == 0) {
@@ -236,7 +236,7 @@ int
 gtxframe_ClearMenus(struct gtx_frame *aframe)
 {
 
-    register struct gtxframe_menu *tm, *nm;
+    struct gtxframe_menu *tm, *nm;
 
     if (aframe->menus != (struct gtxframe_menu *)0) {
        for (tm = aframe->menus; tm; tm = nm) {
@@ -255,8 +255,8 @@ int
 gtxframe_AskForString(struct gtx_frame *aframe, char *aprompt, 
                      char *adefault, char *aresult, int aresultSize)
 {
-    register int code;
-    register char *tp;
+    int code;
+    char *tp;
 
     /* Ensure recursive-edit map is initialized */
     SaveMap(aframe);
@@ -332,7 +332,7 @@ ShowMessageLine(struct gtx_frame *aframe)
 {
     struct gwin_strparams strparms;
     struct gwin_sizeparams sizeparms;
-    register char *tp;
+    char *tp;
 
     if (!aframe->window)
        return -1;
@@ -444,8 +444,8 @@ gtxframe_Delete(struct gtx_frame *aframe)
 int
 gtxframe_Display(struct gtx_frame *aframe, struct gwin *awm)
 {
-    register struct gtxframe_dlist *tlist;
-    register struct gtxframe_menu *tm;
+    struct gtxframe_dlist *tlist;
+    struct gtxframe_menu *tm;
     struct gwin_strparams strparms;
 
     /* Run through the menus, displaying them on the top line */
@@ -479,7 +479,7 @@ gtxframe_Display(struct gtx_frame *aframe, struct gwin *awm)
 int
 gtxframe_AddToList(struct gtx_frame *aframe, struct onode *aobj)
 {
-    register struct gtxframe_dlist *tlist;
+    struct gtxframe_dlist *tlist;
 
     for (tlist = aframe->display; tlist; tlist = tlist->next) {
        if (tlist->data == (char *)aobj) {
@@ -507,7 +507,7 @@ gtxframe_AddToList(struct gtx_frame *aframe, struct onode *aobj)
 int
 gtxframe_RemoveFromList(struct gtx_frame *aframe, struct onode *aobj)
 {
-    register struct gtxframe_dlist *tlist, **plist;
+    struct gtxframe_dlist *tlist, **plist;
 
     plist = &aframe->display;
     for (tlist = *plist; tlist; plist = &tlist->next, tlist = *plist) {
@@ -524,7 +524,7 @@ gtxframe_RemoveFromList(struct gtx_frame *aframe, struct onode *aobj)
 int
 gtxframe_ClearList(struct gtx_frame *aframe)
 {
-    register struct gtxframe_dlist *tlist, *nlist;
+    struct gtxframe_dlist *tlist, *nlist;
 
     if (aframe->display != (struct gtxframe_dlist *)0) {
        /*
index 780380ba9e1201d4d7b051cc38910db005fce027..f07be8ef6abc5a1cca0e9365fc944d7c55b8395e 100644 (file)
@@ -34,8 +34,8 @@ ChangeMenuCmd(void *param1, void *param2)
     struct gwin * awin = (struct gwin *) param1;
     afs_int32 arock = (intptr_t)param2;
     
-    register struct gtx_frame *tf;
-    register afs_int32 code;
+    struct gtx_frame *tf;
+    afs_int32 code;
 
     tf = awin->w_frame;
     if (!tf)
@@ -61,8 +61,8 @@ ChangeListCmd(void *param1, void *param2)
     struct gwin *awin = (struct gwin *) param1;
     afs_int32 arock = (intptr_t)param2;
     
-    register struct gtx_frame *tf;
-    register afs_int32 code;
+    struct gtx_frame *tf;
+    afs_int32 code;
 
     tf = awin->w_frame;
     if (!tf)
@@ -97,7 +97,7 @@ ChangeCmd(void *param, void *unused)
 {
     struct gwin *awin = (struct gwin *) param;
     char tbuffer[100];
-    register afs_int32 code;
+    afs_int32 code;
 
     code =
        gtxframe_AskForString(awin->w_frame, "New object string: ", "TestNew",
@@ -143,7 +143,7 @@ main(int argc, char **argv)
     struct gwin *win;
     struct gator_textobj_params textcrparams;
     struct gator_light_crparams lightcrparams;
-    register struct keymap_map *tmap;
+    struct keymap_map *tmap;
 
     win = gtx_Init(0, -1);
 
index b905073ba0780ec4e5d5edc7fcdac8aaa1b7b010..4fe3cb3193f8d96533ee2430d9ddba1e58b7b0c2 100644 (file)
@@ -31,9 +31,9 @@ gtx_InputServer(void *param)
 {
     struct gwin *awin = (struct gwin *) param;
     
-    register int tc;
-    register int code;
-    register struct gtx_frame *tframe;
+    int tc;
+    int code;
+    struct gtx_frame *tframe;
 
     WOP_DISPLAY(awin);         /* start off with a clean display */
     while (1) {
@@ -70,8 +70,8 @@ gtx_Init(int astartInput,
     PROCESS junk;
     struct onode_initparams oi_params; /* object init params */
     struct gwin_initparams wi_params;  /* window initialization params */
-    register struct gwin *twin;
-    register int code;
+    struct gwin *twin;
+    int code;
 
     /* setup the main window structure */
     wi_params.i_type = GATOR_WIN_CURSES;
index 1cc8c3df06eeb32c973c6033a32f95fda6aff383..99fddb5a8a490238b1c31f578bd7bbc56b621024 100644 (file)
@@ -19,7 +19,7 @@
 struct keymap_map *
 keymap_Create(void)
 {
-    register struct keymap_map *tmap;
+    struct keymap_map *tmap;
 
     tmap = (struct keymap_map *)malloc(sizeof(struct keymap_map));
     if (tmap != (struct keymap_map *)0)
@@ -29,9 +29,9 @@ keymap_Create(void)
 
 /* make a copy of a string; generic utility */
 char *
-gtx_CopyString(register char *aval)
+gtx_CopyString(char *aval)
 {
-    register char *tp;
+    char *tp;
 
     if (!aval)
        return NULL;            /* propagate null strings around */
@@ -44,8 +44,8 @@ gtx_CopyString(register char *aval)
 static int
 BindIt(struct keymap_map *amap, int aslot, int atype, void *aproc, char *aname, void *arock)
 {
-    register char *tp;
-    register struct keymap_entry *tentry;
+    char *tp;
+    struct keymap_entry *tentry;
 
     if (aslot < 0 || aslot >= KEYMAP_NENTRIES)
        return -1;
@@ -69,9 +69,9 @@ keymap_BindToString(struct keymap_map *amap, char *astring,
                    int (*aproc)(void *, void *), 
                    char *aname, void *arock)
 {
-    register char *cptr;
-    register int tc;
-    register afs_int32 code;
+    char *cptr;
+    int tc;
+    afs_int32 code;
     struct keymap_map *tmap;
 
     cptr = astring;
@@ -111,8 +111,8 @@ keymap_BindToString(struct keymap_map *amap, char *astring,
 int
 keymap_Delete(struct keymap_map *amap)
 {
-    register int i;
-    register struct keymap_entry *tentry;
+    int i;
+    struct keymap_entry *tentry;
 
     for (i = 0; i < KEYMAP_NENTRIES; i++) {
        tentry = &amap->entries[i];
@@ -137,8 +137,8 @@ keymap_InitState(struct keymap_state *astate, struct keymap_map *amap)
 int
 keymap_ProcessKey(struct keymap_state *astate, int akey, void *arock)
 {
-    register struct keymap_entry *tentry;
-    register afs_int32 code;
+    struct keymap_entry *tentry;
+    afs_int32 code;
 
     if (akey < 0 || akey >= KEYMAP_NENTRIES)
        return -1;
index b4db221200ea2b517adf6997c29fd15594cfaa17..b9f55e2fbd75d82fce60c450f681313c22b5d02b 100644 (file)
@@ -63,7 +63,7 @@ test_objects(pkg)
 {                              /*test_objects */
 
     static char rn[] = "test_objects"; /*Routine name */
-    register int code;         /*Return code */
+    int code;          /*Return code */
     struct onode_initparams oi_params; /*Init params */
     struct gwin_initparams wi_params;  /*Window initialization params */
 #if 0
@@ -431,8 +431,8 @@ main(argc, argv)
 {                              /*main */
 
     static char rn[] = "main"; /*Routine name */
-    register afs_int32 code;   /*Return code */
-    register struct cmd_syndesc *ts;   /*Ptr to cmd line syntax descriptor */
+    afs_int32 code;    /*Return code */
+    struct cmd_syndesc *ts;    /*Ptr to cmd line syntax descriptor */
 
     /*
      * Set up the commands we understand.
index 51e004cecdf0b2a73fe496ada01a99aa8164dca1..98fe9a390c501aa0b6345e7d18b45ac7ee29d9a7 100644 (file)
@@ -69,7 +69,7 @@ gator_objects_init(struct onode_initparams *params)
 
     static char rn[] = "gator_objects_init";   /*Routine name */
     static int initialized = 0;        /*Have we been called? */
-    register int code;         /*Return code */
+    int code;          /*Return code */
 
     /*
      * If we've already been called, just return.
@@ -172,7 +172,7 @@ gator_objects_create(struct onode_createparams *params)
 {                              /*gator_objects_create */
 
     static char rn[] = "gator_objects_create"; /*Routine name */
-    register int code;         /*Return code */
+    int code;          /*Return code */
     struct onode *new_onode;   /*Ptr to new onode */
 
     if (objects_debug) {
index 06c3a7e4026d36e47189a8f716db5e64ce20868e..6811b7efad4d41b4e886437782f4135034ae5b05 100644 (file)
@@ -60,7 +60,7 @@ test_this_package(pkg)
 {                              /*test_this_package */
 
     static char rn[] = "test_this_package";    /*Routine name */
-    register int code;         /*Return code */
+    int code;          /*Return code */
     struct gwin_initparams init_params;        /*Window initialization params */
     struct gator_cursesgwin_params c_crparams; /*Curses window creation params */
     struct gator_dumbgwin_params d_crparams;   /*Dumb terminal window creation params */
@@ -268,8 +268,8 @@ main(argc, argv)
 {                              /*main */
 
     static char rn[] = "main"; /*Routine name */
-    register afs_int32 code;   /*Return code */
-    register struct cmd_syndesc *ts;   /*Ptr to cmd line syntax descriptor */
+    afs_int32 code;    /*Return code */
+    struct cmd_syndesc *ts;    /*Ptr to cmd line syntax descriptor */
 
     /*
      * There really aren't any opcodes here, but we do want to interpret switches
index 9aac1125c61d3b4e3ecd9003668bd541a0ee7c2c..7afd91e4bd5e0f64cd12d5152bd286fc1555ac44 100644 (file)
@@ -417,7 +417,7 @@ gator_text_Write(struct onode *onp, char *strToWrite, int numChars,
 {                              /*gator_text_Write */
 
     static char rn[] = "gator_text_Write";     /*Routine name */
-    register int code;         /*Return value on routines */
+    int code;          /*Return value on routines */
     struct gator_textobj *text_data;   /*Ptr to text obj data */
     struct gator_textcb_hdr *cbHdr;    /*Ptr to text CB header */
     int i;                     /*Loop variable */
@@ -557,7 +557,7 @@ gator_text_BlankLine(struct onode *onp, int numBlanks)
 {                              /*gator_text_BlankLine */
 
     static char rn[] = "gator_text_BlankLine"; /*Routine name */
-    register int code;         /*Return value on routines */
+    int code;          /*Return value on routines */
     struct gator_textobj *text_data;   /*Ptr to text obj data */
 
     /*
index c71c237716bf891fa8c0c78bdf8eb6d1db61923a..3cc4c4475d0689404cd5824f14f8359f306ce640 100644 (file)
@@ -61,7 +61,7 @@ gw_init(struct gwin_initparams *params)
 {                              /*gw_init */
 
     static char rn[] = "gw_init";      /*Routine name */
-    register int code;         /*Return code */
+    int code;          /*Return code */
     int gwin_debug;            /*Is debugging turned on? */
 
     /*
index 31718d492ba3bc1456069d4c89c3446255619746..7e18078174fc03a895891dcd885ad938e5f8e29f 100644 (file)
@@ -1643,7 +1643,7 @@ ListTickets(struct cmd_syndesc *as, void *arock)
 }
 
 static void
-add_std_args(register struct cmd_syndesc *ts)
+add_std_args(struct cmd_syndesc *ts)
 {
     cmd_Seek(ts, 12);
     /* 12 */ cmd_AddParm(ts, "-admin_username", CMD_SINGLE, CMD_OPTIONAL,
@@ -1660,8 +1660,8 @@ add_std_args(register struct cmd_syndesc *ts)
 afs_int32
 ka_AdminInteractive(int cmd_argc, char *cmd_argv[])
 {
-    register int code;
-    register struct cmd_syndesc *ts;
+    int code;
+    struct cmd_syndesc *ts;
 
     char line[BUFSIZ];
     afs_int32 argc;
index 14b58599a949dd257294222da832d8d9e1ecfb63..e7e4acf9e2d468be494e5bb82a5b46e6386996c5 100644 (file)
@@ -69,8 +69,8 @@ main(argc, argv)
      int argc;
      char **argv;
 {
-    register int i;
-    register long code;
+    int i;
+    long code;
     long cc, upos = 0, gpos;
     struct ubik_hdr *uh;
     char *dfile = 0;
@@ -244,7 +244,7 @@ int
 display_entry(offset)
      int offset;
 {
-    register int i;
+    int i;
     struct kaentry dbentry;
     int count;
     unsigned char x[8];
index 8471260c21233e92cf0f1803d104bf1bb42ae95e..f80f1c64700b4d7e8e751d65db655d3550186fe6 100644 (file)
@@ -35,10 +35,10 @@ extern Date cheaderReadTime;        /* time cheader last read in */
 static int index_OK(afs_int32);
 
 afs_int32
-NameHash(register char *aname, register char *ainstance)
+NameHash(char *aname, char *ainstance)
 {
-    register unsigned int hash;
-    register int i;
+    unsigned int hash;
+    int i;
 
     /* stolen directly from the HashString function in the vol package */
     hash = 0;
@@ -205,7 +205,7 @@ CheckInit(struct ubik_trans *at,
 afs_int32
 AllocBlock(struct ubik_trans *at, struct kaentry *tentry)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 temp;
 
     if (cheader.freePtr) {
@@ -268,8 +268,8 @@ afs_int32
 FindBlock(struct ubik_trans *at, char *aname, char *ainstance, afs_int32 *toP, 
          struct kaentry *tentry)
 {
-    register afs_int32 i, code;
-    register afs_int32 to;
+    afs_int32 i, code;
+    afs_int32 to;
 
     *toP = 0;
     i = NameHash(aname, ainstance);
@@ -320,8 +320,8 @@ ThreadBlock(struct ubik_trans *at, afs_int32 index,
 afs_int32
 UnthreadBlock(struct ubik_trans *at, struct kaentry *aentry)
 {
-    register afs_int32 i, code;
-    register afs_int32 to;
+    afs_int32 i, code;
+    afs_int32 to;
     afs_int32 lo;
     struct kaentry tentry;
 
index f675d054cde7da78194be0d3e7d686327c1b4ef4..035994c80da4fb517a2d7ee54d5b550a134734d8 100644 (file)
@@ -553,7 +553,7 @@ create_user(struct ubik_trans *tt, char *name, char *instance,
            struct ktc_encryptionKey *key, afs_int32 caller,
            afs_int32 flags)
 {
-    register int code;
+    int code;
     afs_int32 to;
     struct kaentry tentry;
     afs_int32 maxLifetime;
@@ -624,7 +624,7 @@ afs_int32
 kamCreateUser(struct rx_call *call, char *aname, char *ainstance, 
              EncryptionKey ainitpw)
 {
-    register int code;
+    int code;
     struct ubik_trans *tt;
     afs_int32 caller;          /* Disk offset of caller's entry */
 
@@ -669,7 +669,7 @@ afs_int32
 ChangePassWord(struct rx_call *call, char *aname, char *ainstance, 
               ka_CBS *arequest, ka_BBS *oanswer)
 {
-    register int code;
+    int code;
     struct ubik_trans *tt;
     afs_int32 to;              /* offset of block */
     struct kaentry tentry;
@@ -881,7 +881,7 @@ afs_int32
 kamSetPassword(struct rx_call *call, char *aname, char *ainstance,
               afs_int32 akvno, EncryptionKey apassword)
 {
-    register int code;
+    int code;
     struct ubik_trans *tt;
     afs_int32 caller;          /* Disk offset of caller's entry */
     struct kaentry tentry;
@@ -1481,7 +1481,7 @@ SKAM_DeleteUser(struct rx_call *call, char *aname, char *ainstance)
 afs_int32
 kamDeleteUser(struct rx_call *call, char *aname, char *ainstance)
 {
-    register int code;
+    int code;
     struct ubik_trans *tt;
     afs_int32 caller;
     afs_int32 to;
@@ -1562,7 +1562,7 @@ kamGetEntry(struct rx_call *call,
            afs_int32 aversion,         /* major version assumed by caller */
            kaentryinfo *aentry)        /* entry data copied here */
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct ubik_trans *tt;
     afs_int32 callerIndex;
     struct kaentry caller;
@@ -1688,7 +1688,7 @@ kamListEntry(struct rx_call *call,
             afs_int32 *count,          /* total entries in database */
             kaident *name)             /* name & instance of this entry */
 {
-    register int code;
+    int code;
     struct ubik_trans *tt;
     afs_int32 caller;
     struct kaentry tentry;
@@ -2237,7 +2237,7 @@ SKAM_Unlock(struct rx_call *call,
            afs_int32 spare3, 
            afs_int32 spare4)
 {
-    register int code;
+    int code;
     struct ubik_trans *tt;
     afs_int32 caller;
     afs_int32 to;
@@ -2282,7 +2282,7 @@ SKAM_LockStatus(struct rx_call *call,
                afs_int32 spare3, 
                afs_int32 spare4)
 {
-    register int code;
+    int code;
     struct ubik_trans *tt;
     afs_int32 callerIndex;
     afs_int32 to;
index 8dc507d9ea2ddf582f70cb784b49c50bb876e2d9..f197d609c79e928149b07c0a9c09e77ac8ae00d7 100644 (file)
@@ -160,9 +160,9 @@ ka_KeyCheckSum(char *key, afs_uint32 * cksumP)
 
 /* is the key all zeros? */
 int
-ka_KeyIsZero(register char *akey, register int alen)
+ka_KeyIsZero(char *akey, int alen)
 {
-    register int i;
+    int i;
     for (i = 0; i < alen; i++) {
        if (*akey++ != 0)
            return 0;
index 2738a8b655ecfa5adb7287b344e76847bdf0a96b..3eb1ee5a18e7a205b06c4531365955716d50061f 100644 (file)
@@ -140,7 +140,7 @@ extern int umin(afs_uint32 a, afs_uint32 b);
 
 extern afs_int32 ka_KeyCheckSum(char *key, afs_uint32 * cksumP);
 
-extern int ka_KeyIsZero(register char *akey, register int alen);
+extern int ka_KeyIsZero(char *akey, int alen);
 
 extern void ka_timestr(afs_int32 time, char *tstr, afs_int32 tlen);
 
index fcbb7f991a63a165d82868e93bb21a30af72450e..3a654bf55968735e2f0b8d558cf10edbc7b3c9d5 100644 (file)
 const char *dbmfile;
 
 static int
-cmdproc(register struct cmd_syndesc *as, void * arock)
+cmdproc(struct cmd_syndesc *as, void * arock)
 {
     DBM *kdb;
     datum key, data;
     kalog_elt rdata;
     afs_int32 cnt = 0;
-    register struct cmd_item *ti;
+    struct cmd_item *ti;
 
     if (as->parms[0].items) {
        dbmfile = as->parms[0].items->data;
@@ -106,8 +106,8 @@ cmdproc(register struct cmd_syndesc *as, void * arock)
 int
 main(int argc, char **argv)
 {
-    register struct cmd_syndesc *ts;
-    register afs_int32 code;
+    struct cmd_syndesc *ts;
+    afs_int32 code;
     char dbmfile_help[AFSDIR_PATH_MAX];
 
     sprintf(dbmfile_help, "dbmfile to use (default %s)",
index 6e5357302d852dfbdb6ffd7a0f5b49d00db1ff03..b420abd29145a423702cb3fa837bfe6ba700bb68 100644 (file)
@@ -206,10 +206,10 @@ find_me(char *arg, char *parent_dir)
 
 /* this function returns TRUE (1) if the file is in AFS, otherwise false (0) */
 static int
-InAFS(register char *apath)
+InAFS(char *apath)
 {
     struct ViceIoctl blob;
-    register afs_int32 code;
+    afs_int32 code;
     char space[AFS_PIOCTL_MAXSIZE];
 
     blob.in_size = 0;
index ff5eb34761e50405b708413595326450ffd5b6da..927f459c65b710aae764a80a947e0fe75cad31b3 100644 (file)
@@ -137,7 +137,7 @@ getpipepass(void)
 {
     static char gpbuf[BUFSIZ];
     /* read a password from stdin, stop on \n or eof */
-    register int i, tc;
+    int i, tc;
     memset(gpbuf, 0, sizeof(gpbuf));
     for (i = 0; i < (sizeof(gpbuf) - 1); i++) {
        tc = fgetc(stdin);
index 6cf25ef1bf5ade04dd7c355a5227714b9c9b6dea..af363e5c608aac499c5254fe1f5587b0fc43543a 100644 (file)
@@ -47,7 +47,7 @@
 #include <grp.h>
 
 static gid_t tty_gid(int default_gid);
-static void getloginname(register struct utmp *up);
+static void getloginname(struct utmp *up);
 
 #define TTYGRPNAME     "tty"   /* name of group to own ttys */
 #define TTYGID(gid)    tty_gid(gid)    /* gid that owns all ttys */
@@ -122,7 +122,7 @@ osi_audit(void)
 int
 main(int argc, char **argv)
 {
-    register char *namep;
+    char *namep;
     int pflag = 0, hflag = 0, t, f, c;
     int invalid, quietlog;
     FILE *nlfd;
@@ -451,9 +451,9 @@ main(int argc, char **argv)
 }
 
 static void
-getloginname(register struct utmp *up)
+getloginname(struct utmp *up)
 {
-    register char *namep;
+    char *namep;
     int c;
 
     while (up->ut_name[0] == '\0') {
@@ -494,7 +494,7 @@ catch(void)
 int
 rootterm(char *tty)
 {
-    register struct ttyent *t;
+    struct ttyent *t;
 
     if ((t = getttynam(tty)) != NULL) {
        if (t->ty_status & TTY_SECURE)
@@ -507,7 +507,7 @@ static void
 showmotd(void)
 {
     FILE *mf;
-    register c;
+    int c;
 
     signal(SIGINT, catch);
     if ((mf = fopen("/etc/motd", "r")) != NULL) {
@@ -524,7 +524,7 @@ showmotd(void)
 char *
 stypeof(char *ttyid)
 {
-    register struct ttyent *t;
+    struct ttyent *t;
 
     if (ttyid == NULL || (t = getttynam(ttyid)) == NULL)
        return (UNKNOWN);
@@ -574,7 +574,7 @@ char *speeds[] = { "0", "50", "75", "110", "134", "150", "200", "300",
 static void
 doremoteterm(char *term, struct sgttyb *tp)
 {
-    register char *cp = strchr(term, '/'), **cpp;
+    char *cp = strchr(term, '/'), **cpp;
     char *speed;
 
     if (cp) {
index e48c1f0fc22677a1b69dcc4a5f21a09e90801e27..0d53ee062e7057431c0e37fac1253fdcf3b07f32 100644 (file)
@@ -101,7 +101,7 @@ GetTokens(afs_int32 ahost, afs_int32 auid)
     int index, newIndex;
     char *stp;                 /* secret token ptr */
     struct ClearToken ct;
-    register char *tp;
+    char *tp;
     afs_int32 temp, gotit = 0;
     int maxLen;                        /* biggest ticket we can copy */
     int tktLen;                        /* server ticket length */
@@ -340,12 +340,12 @@ NFSCopyToken(afs_int32 ahost, afs_int32 auid)
 }
 
 static int
-cmdproc(register struct cmd_syndesc *as, void *arock)
+cmdproc(struct cmd_syndesc *as, void *arock)
 {
-    register struct hostent *the;
+    struct hostent *the;
     char *tp, *sysname = 0;
     afs_int32 uid, addr;
-    register afs_int32 code;
+    afs_int32 code;
 
     the = (struct hostent *)
        hostutil_GetHostByName(tp = as->parms[0].items->data);
@@ -428,8 +428,8 @@ cmdproc(register struct cmd_syndesc *as, void *arock)
 int
 main(int argc, char **argv)
 {
-    register struct cmd_syndesc *ts;
-    register afs_int32 code;
+    struct cmd_syndesc *ts;
+    afs_int32 code;
 
 #ifdef AFS_AIX32_ENV
     /*
index f937ccf72915de44cc727e706b49529127cb9d24..aef0a93d34e2bd1ad84167c3662967ae1fa2d53a 100644 (file)
@@ -142,7 +142,7 @@ static void
 getpipepass(char *gpbuf, int len)
 {
     /* read a password from stdin, stop on \n or eof */
-    register int i, tc;
+    int i, tc;
     memset(gpbuf, 0, len);
     for (i = 0; i < len; i++) {
        tc = fgetc(stdin);
index 0e19395d1e732d47d9946e87a7470e2f9d3000f6..eece610d9bd40a341778e30a33cffbbfac4fc67e 100644 (file)
@@ -138,7 +138,7 @@ getpipepass()
 {
     static char gpbuf[BUFSIZ];
     /* read a password from stdin, stop on \n or eof */
-    register int i, tc;
+    int i, tc;
     memset(gpbuf, 0, sizeof(gpbuf));
     for (i = 0; i < (sizeof(gpbuf) - 1); i++) {
        tc = fgetc(stdin);
index 32288a255d00fe94805023b488cf02baf2c9f183..b30101b464e03f8f0d557fe4f67bc195b21873ae 100644 (file)
@@ -237,7 +237,7 @@ static int (*old_sigfunc[NSIG]) (int);
 static
 push_signals(void)
 {
-    register i;
+    int i;
     for (i = 0; i < NSIG; i++)
        old_sigfunc[i] = signal(i, sig_restore);
 }
@@ -245,7 +245,7 @@ push_signals(void)
 static
 pop_signals(void)
 {
-    register i;
+    int i;
     for (i = 0; i < NSIG; i++)
        signal(i, old_sigfunc[i]);
 }
index 90b47403535ae8b9c3c5a6622090cf8203561708..adaa7d5fce8c73c8bc7ab61e50b917cd7e8a2f19 100644 (file)
@@ -115,7 +115,7 @@ getpipepass()
 {
     static char gpbuf[BUFSIZ];
     /* read a password from stdin, stop on \n or eof */
-    register int i, tc;
+    int i, tc;
     memset(gpbuf, 0, sizeof(gpbuf));
     for (i = 0; i < (sizeof(gpbuf) - 1); i++) {
        tc = fgetc(stdin);
index 64ad3d4422e422198d7175dd22407c2743fb94a1..535ba5546df84d945d4023107615a3c769050100 100644 (file)
@@ -496,7 +496,7 @@ main(argc, argv)
      IN int argc;
      IN char *argv[];
 {
-    register struct cmd_syndesc *ts;
+    struct cmd_syndesc *ts;
     long code;
 
     initialize_U_error_table();
index fc2c7089f4f28e420c4d12b4bb21724dd1fe07ec..76bd60ec0fd2803f6642320b1215c583e0eecc05 100644 (file)
@@ -301,7 +301,7 @@ CheckAuth2(server)
 static void
 ListCellsCmd()
 {
-    register long code;
+    long code;
     long i, j;
     char *tcp;
     long clear;
@@ -383,7 +383,7 @@ AclToString(acl)
 
 char *
 SkipLine(astr)
-     register char *astr;
+     char *astr;
 {
     while (*astr != '\n')
        astr++;
@@ -448,7 +448,7 @@ ParseAcl(astr)
 ZapList(alist)
      struct AclEntry *alist;
 {
-    register struct AclEntry *tp, *np;
+    struct AclEntry *tp, *np;
     for (tp = alist; tp; tp = np) {
        np = tp->next;
        free(tp);
@@ -482,7 +482,7 @@ static int
 AddTester(pathname)
      char *pathname;
 {
-    register long code;
+    long code;
     struct ViceIoctl blob;
     struct Acl *al;
     char space[AFS_PIOCTL_MAXSIZE];
index 1f3d0919b0422b418ede543d975461898a8f701a..bf39e655ea65ee8ef5a1600f5f0a08e4ce9c8248 100644 (file)
@@ -359,7 +359,7 @@ main(argc, argv)
      IN int argc;
      IN char *argv[];
 {
-    register struct cmd_syndesc *ts;
+    struct cmd_syndesc *ts;
     long code;
 
     initialize_U_error_table();
index e2dbd3b060b01e69aefef329ab1c452e78271e87..c6c3bea615585eecb427d3515afac546c90d58e3 100644 (file)
@@ -177,10 +177,10 @@ acl_Externalize_pr(int (*func)(idlist *ids, namelist *names), struct acl_accessL
      * exceeds ACL_MAXENTRIES, or a failure code from the protection server 
      * if the problem occured there. */
 
-    register int i;
-    register int j;
-    register int code;
-    register char *nextc;
+    int i;
+    int j;
+    int code;
+    char *nextc;
     idlist lids;
     namelist lnames;
 
@@ -241,10 +241,10 @@ acl_Internalize_pr(int (*func)(namelist *names, idlist *ids), char *elist, struc
     /* Converts the external access list elist into the access list acl.  
      * Returns 0 on success, -1 if ANY name is not translatable, or if 
      * the number of entries exceeds al_maxExtEntries. */
-    register int i;
-    register int j;
-    register char *nextc;
-    register afs_int32 code;
+    int i;
+    int j;
+    char *nextc;
+    afs_int32 code;
     int p, n;
     namelist lnames;
     idlist lids;
index 1d3fe69adf109396b99631ce4699956949afeaa1..e7725623b359f47c16488f9508c91b8fd207bd6e 100644 (file)
@@ -35,7 +35,7 @@ char *externalstore[20];
 
 int
 PRights(arights)
-     register long arights;
+     long arights;
 {
     if (arights & PRSFS_READ)
        printf("r");
@@ -55,11 +55,11 @@ PRights(arights)
 
 long
 Convert(arights)
-     register char *arights;
+     char *arights;
 {
-    register int i, len;
+    int i, len;
     long mode;
-    register char tc;
+    char tc;
     if (!strcmp(arights, "read"))
        return PRSFS_READ | PRSFS_LOOKUP;
     if (!strcmp(arights, "write"))
@@ -102,7 +102,7 @@ Convert(arights)
 
 main()
 {
-    register long code;
+    long code;
 
     char op[3];
     char name[64];
index 6f4adebafacf3c895ab3d7ee6f0d65aa407b2ded..3f50786a770405851aebd7a4c600d70bdfcb8e96 100644 (file)
@@ -1237,7 +1237,7 @@ client_ExtractDriveLetter(char *path)
 static int
 Parent(char *directory, char *parentDirectory)
 {
-    register char *tp;
+    char *tp;
     int rc = 0;
 
     strcpy(parentDirectory, directory);
index 3661d2cc4f2bac87796079c1e8f14aa59febfcb6..97bacbac77781bc098acff0b724705ef58de631b 100644 (file)
@@ -65,7 +65,7 @@ static char *day[] = {
 static int
 LocalFreeTokens(struct token *alist)
 {
-    register struct token *nlist;
+    struct token *nlist;
     for (; alist; alist = nlist) {
        nlist = alist->next;
        free(alist->key);
@@ -90,8 +90,8 @@ LocalParseLine(char *aline, struct token **alist)
     char *tptr = NULL;
     int inToken;
     struct token *first, *last;
-    register struct token *ttok;
-    register int tc;
+    struct token *ttok;
+    int tc;
 
     inToken = 0;               /* not copying token chars at start */
     first = NULL;
@@ -154,8 +154,8 @@ ParseTime(bos_RestartTime_p ak, char *astr)
 {
     int field;
     short temp;
-    register char *tp;
-    register int tc;
+    char *tp;
+    int tc;
 
     field = 0;                 /* 0=hour, 1=min, 2=sec */
     temp = 0;
@@ -194,7 +194,7 @@ int
 ktime_ParsePeriodic(char *adate, bos_RestartTime_p ak)
 {
     struct token *tt;
-    register afs_int32 code;
+    afs_int32 code;
     struct ptemp *tp;
 
     memset(ak, 0, sizeof(*ak));
index 533b58b5780d0d6c5045987fd606519c5972e242..6aa8338ce97c1e63e401be5166009610614726c4 100644 (file)
@@ -1626,10 +1626,10 @@ DoVosVolumeQuotaChange(struct cmd_syndesc *as, void *arock)
 static afs_uint32
 GetServer(char *aname)
 {
-    register struct hostent *th;
+    struct hostent *th;
     afs_uint32 addr;
     int b1, b2, b3, b4;
-    register afs_int32 code;
+    afs_int32 code;
     char hostname[MAXHOSTCHARS];
 
     code = sscanf(aname, "%d.%d.%d.%d", &b1, &b2, &b3, &b4);
index 31d2683dfa282333d593205405db512807aad528..880eef63ffdd706f8ff2633767fba54993663bc9 100644 (file)
@@ -327,7 +327,7 @@ vos_BackupVolumeCreateMultiple(const void *cellHandle,
     size_t prefix_len = 0;
     nbulkentries arrayEntries;
     afs_int32 nentries = 0;
-    register struct nvldbentry *entry;
+    struct nvldbentry *entry;
     int i;
     afs_int32 rw_volid, rw_server, rw_partition;
     int previdx;
index 624d9d0d35014911f5809cf8041dd7136a4e1099..aeb493fc42fd8bbbcd07527cd923fb2ecea57727 100644 (file)
@@ -27,7 +27,7 @@ static int
 OldVLDB_to_NewVLDB(struct vldbentry *source, struct nvldbentry *dest,
                   afs_status_p st)
 {
-    register int i;
+    int i;
     int rc = 0;
     afs_status_t tst = 0;
 
@@ -62,7 +62,7 @@ static int
 NewVLDB_to_OldVLDB(struct nvldbentry *source, struct vldbentry *dest,
                   afs_status_p st)
 {
-    register int i;
+    int i;
     afs_status_t tst = 0;
     int rc = 0;
 
index 9fe0cd12c4ebbf3ec5ee82796cb4dd87afa3eb1c..f313f41195993c59e45ed2a2dff0ac9d4185ad3b 100644 (file)
@@ -1987,11 +1987,11 @@ UV_ReleaseVolume(afs_cell_handle_p cellHandle, afs_uint32 afromvol,
 }
 
 static int
-ReceiveFile(register int fd, register struct rx_call *call,
-           register struct stat *status)
+ReceiveFile(int fd, struct rx_call *call,
+           struct stat *status)
 {
-    register char *buffer = (char *)0;
-    register int blockSize;
+    char *buffer = (char *)0;
+    int blockSize;
     afs_int32 bytesread, nbytes, bytesleft, w;
     fd_set out;
     afs_int32 error = 0;
@@ -2184,8 +2184,8 @@ UV_DumpVolume(afs_cell_handle_p cellHandle, afs_uint32 afromvol,
 }
 
 int
-SendFile(register int fd, register struct rx_call *call,
-        register struct stat *status)
+SendFile(int fd, struct rx_call *call,
+        struct stat *status)
 {
     char *buffer = (char *)0;
     int blockSize;
@@ -2736,7 +2736,7 @@ UV_ListPartitions(struct rx_connection *server, struct partList *ptrPartList,
     afs_status_t tst = 0;
     struct pIDs partIds;
     struct partEntries partEnts;
-    register int i, j = 0;
+    int i, j = 0;
 
     *cntp = 0;
 
@@ -3632,8 +3632,8 @@ UV_SyncServer(afs_cell_handle_p cellHandle, struct rx_connection *server,
     struct VldbListByAttributes attributes;
     nbulkentries arrayEntries;
     int totalF;
-    register struct nvldbentry *vllist;
-    register int j;
+    struct nvldbentry *vllist;
+    int j;
     afs_int32 si, nsi;
     afs_int32 modified = 0;
 
index fc48630cc053569588fdc5310fbdac4036bd3055..bcc93abc091edc034744392da9d8747321fbc175 100644 (file)
@@ -34,7 +34,7 @@ main(int argc, char **argv)
 {
     struct ktc_token token;
     struct ktc_principal sname;
-    register afs_int32 code;
+    afs_int32 code;
     struct afsconf_dir *dir;
     afs_int32 now;
     char skey[9];
index d8721613bf4ef589a47a1c575a5f0ef1e90c6708..764fe440a2689e3a96a1948fe925407ae53e518e 100644 (file)
@@ -100,7 +100,7 @@ int
 main(int argc, char *argv[])
 {                              /*Main routine */
     struct cmd_syndesc *ts;
-    register afs_int32 code;
+    afs_int32 code;
 
 #ifdef AFS_AIX32_ENV
     /*
index c55a5f6c04f66fd30f604bc18960e864fe51c8c9..439d95d1a20bb8c0fac08d8103185fb07bbb77a9 100644 (file)
@@ -80,7 +80,7 @@ FT_Init(int printErrors, int notReally)
 int
 FT_GetTimeOfDay(struct timeval *tv, struct timezone *tz)
 {
-    register int ret;
+    int ret;
     ret = gettimeofday(tv, tz);
     if (!ret) {
        /* need to bounds check 'cause Unix can fail these checks, (esp on Suns)
index fcdba046f62c0f8aabbc9b6bc8f364ae3c0af70e..a1ef7019cb9e7f86264de95c59054399ab8a4b5b 100644 (file)
@@ -416,7 +416,7 @@ static void *IOMGR(void *dummy)
            FT_GetTimeOfDay(&junk, 0);    /* force accurate time check */
            TM_Rescan(Requests);
            for (;;) {
-               register struct IoRequest *req;
+               struct IoRequest *req;
                struct TM_Elem *expired;
                expired = TM_GetExpired(Requests);
                if (expired == NULL) break;
@@ -450,7 +450,7 @@ static void *IOMGR(void *dummy)
        IOMGR_nfds = 0;
 
        FOR_ALL_ELTS(r, Requests, {
-           register struct IoRequest *req;
+           struct IoRequest *req;
            req = (struct IoRequest *) r -> BackPointer;
            FDSetSet(req->nfds, &IOMGR_readfds,   req->readfds);
            FDSetSet(req->nfds, &IOMGR_writefds,  req->writefds);
@@ -635,8 +635,8 @@ static void SignalIO(int fds, fd_set *readfds, fd_set *writefds,
     int nfds;
     /* Look at everyone who's bit mask was affected */
     FOR_ALL_ELTS(r, Requests, {
-       register struct IoRequest *req;
-       register PROCESS pid;
+       struct IoRequest *req;
+       PROCESS pid;
        req = (struct IoRequest *) r -> BackPointer;
        nfds = MIN(fds, req->nfds);
        if (FDSetCmp(nfds, req->readfds, readfds) ||
@@ -658,8 +658,8 @@ static void SignalTimeout(int code, struct timeval *timeout)
 {
     /* Find everyone who has specified timeout */
     FOR_ALL_ELTS(r, Requests, {
-       register struct IoRequest *req;
-       register PROCESS pid;
+       struct IoRequest *req;
+       PROCESS pid;
        req = (struct IoRequest *) r -> BackPointer;
        if (TM_eql(&r->TimeLeft, timeout)) {
            req -> result = code;
@@ -693,8 +693,8 @@ static void SigHandler (int signo)
 static int SignalSignals (void)
 {
     bool gotone = FALSE;
-    register int i;
-    register void *(*p)(void *);
+    int i;
+    void *(*p)(void *);
     afs_int32 stackSize;
 
     anySigsDelivered = FALSE;
@@ -731,7 +731,7 @@ static PROCESS IOMGR_Id = NULL;
 
 int IOMGR_SoftSig(void *(*aproc)(void *), void *arock)
 {
-    register int i;
+    int i;
     for (i=0;i<NSOFTSIG;i++) {
        if (sigProc[i] == 0) {
            /* a free entry */
@@ -792,7 +792,7 @@ int IOMGR_Poll(void) {
     FT_GetTimeOfDay(&tv, 0);    /* force accurate time check */
     TM_Rescan(Requests);
     for (;;) {
-       register struct IoRequest *req;
+       struct IoRequest *req;
        struct TM_Elem *expired;
        expired = TM_GetExpired(Requests);
        if (expired == NULL) break;
@@ -827,7 +827,7 @@ int IOMGR_Poll(void) {
     fds = 0;
 
     FOR_ALL_ELTS(r, Requests, {
-       register struct IoRequest *req;
+       struct IoRequest *req;
        req = (struct IoRequest *) r -> BackPointer;
        FDSetSet(req->nfds, readfds,   req->readfds);
        FDSetSet(req->nfds, writefds,  req->writefds);
@@ -861,7 +861,7 @@ int IOMGR_Poll(void) {
 int IOMGR_Select(int fds, fd_set *readfds, fd_set *writefds, 
                 fd_set *exceptfds, struct timeval *timeout)
 {
-    register struct IoRequest *request;
+    struct IoRequest *request;
     int result;
 
 #ifndef AFS_NT40_ENV
@@ -958,7 +958,7 @@ again:
 \f
 int IOMGR_Cancel(PROCESS pid)
 {
-    register struct IoRequest *request;
+    struct IoRequest *request;
 
     if ((request = pid->iomgrRequest) == 0) return -1; /* Pid not found */
 
index 5286038a3869981abe708f36d9e3911b7be472d2..bf5030ef062c99cb8399d339c1bfc40476bc5b91 100644 (file)
@@ -195,7 +195,7 @@ Afs_Lock_ReleaseW(struct Lock *lock)
 
 /* release a write lock and sleep on an address, atomically */
 void
-LWP_WaitProcessR(register void *addr, register struct Lock *alock)
+LWP_WaitProcessR(void *addr, struct Lock *alock)
 {
     ReleaseReadLock(alock);
     LWP_WaitProcess(addr);
@@ -203,7 +203,7 @@ LWP_WaitProcessR(register void *addr, register struct Lock *alock)
 
 /* release a write lock and sleep on an address, atomically */
 void
-LWP_WaitProcessW(register void *addr, register struct Lock *alock)
+LWP_WaitProcessW(void *addr, struct Lock *alock)
 {
     ReleaseWriteLock(alock);
     LWP_WaitProcess(addr);
@@ -211,7 +211,7 @@ LWP_WaitProcessW(register void *addr, register struct Lock *alock)
 
 /* release a write lock and sleep on an address, atomically */
 void
-LWP_WaitProcessS(register void *addr, register struct Lock *alock)
+LWP_WaitProcessS(void *addr, struct Lock *alock)
 {
     ReleaseSharedLock(alock);
     LWP_WaitProcess(addr);
index 323024194c4ef9deb065f004cf27a1dadf1d7848..f7f689dbe683e192cdec54a7c2e1ee1fda58f28f 100644 (file)
@@ -106,7 +106,7 @@ static void Dispatcher(void);
 static void Create_Process_Part2(void);
 static void Exit_LWP(void);
 static afs_int32 Initialize_Stack(char *stackptr, int stacksize);
-static int Stack_Used(register char *stackptr, int stacksize);
+static int Stack_Used(char *stackptr, int stacksize);
 
 static void Abort_LWP(char *msg);
 static void Overflow_Complain(void);
@@ -151,7 +151,7 @@ int lwp_nextindex;
 int lwp_MinStackSize = 0;
 
 static int
-lwp_remove(register PROCESS p, register struct QUEUE *q)
+lwp_remove(PROCESS p, struct QUEUE *q)
 {
     /* Special test for only element on queue */
     if (q->count == 1)
@@ -170,7 +170,7 @@ lwp_remove(register PROCESS p, register struct QUEUE *q)
 }
 
 static int
-insert(register PROCESS p, register struct QUEUE *q)
+insert(PROCESS p, struct QUEUE *q)
 {
     if (q->head == NULL) {     /* Queue is empty */
        q->head = p;
@@ -198,8 +198,8 @@ move(PROCESS p, struct QUEUE *from, struct QUEUE *to)
 /* Iterator macro */
 #define for_all_elts(var, q, body)\
        {\
-           register PROCESS var, _NEXT_;\
-           register int _I_;\
+           PROCESS var, _NEXT_;\
+           int _I_;\
            for (_I_=q.count, var = q.head; _I_>0; _I_--, var=_NEXT_) {\
                _NEXT_ = var -> next;\
                body\
@@ -240,7 +240,7 @@ static struct lwp_ctl *lwp_init = 0;
 int
 LWP_QWait(void)
 {
-    register PROCESS tp;
+    PROCESS tp;
     (tp = lwp_cpptr)->status = QWAITING;
     move(tp, &runnable[tp->priority], &qwaiting);
     Set_LWP_RC();
@@ -248,7 +248,7 @@ LWP_QWait(void)
 }
 
 int
-LWP_QSignal(register PROCESS pid)
+LWP_QSignal(PROCESS pid)
 {
     if (pid->status == QWAITING) {
        pid->status = READY;
@@ -260,7 +260,7 @@ LWP_QSignal(register PROCESS pid)
 
 #ifdef AFS_AIX32_ENV
 char *
-reserveFromStack(register afs_int32 size)
+reserveFromStack(afs_int32 size)
 {
     char *x;
     x = alloca(size);
@@ -573,7 +573,7 @@ int
 Dump_Processes(void)
 {
     if (lwp_init) {
-       register int i;
+       int i;
        for (i = 0; i < MAX_PRIORITIES; i++)
            for_all_elts(x, runnable[i], {
                         printf("[Priority %d]\n", i);
@@ -608,7 +608,7 @@ LWP_InitializeProcessSupport(int priority, PROCESS * pid)
 {
     PROCESS temp;
     struct lwp_pcb dummy;
-    register int i;
+    int i;
     char *value;
 
     Debug(0, ("Entered LWP_InitializeProcessSupport"));
@@ -673,7 +673,7 @@ LWP_INTERNALSIGNAL(void *event, int yield)
 int
 LWP_TerminateProcessSupport(void)
 {                              /* terminate all LWP support */
-    register int i;
+    int i;
 
     Debug(0, ("Entered Terminate_Process_Support"));
     if (lwp_init == NULL)
@@ -711,7 +711,7 @@ LWP_WaitProcess(void *event)
 int
 LWP_MwaitProcess(int wcount, void *evlist[])
 {                              /* wait on m of n events */
-    register int ecount, i;
+    int ecount, i;
 
 
     Debug(0, ("Entered Mwait_Process [waitcnt = %d]", wcount));
@@ -808,7 +808,7 @@ Create_Process_Part2(void)
 }
 
 static int
-Delete_PCB(register PROCESS pid)
+Delete_PCB(PROCESS pid)
 {                              /* remove a PCB from the process list */
     Debug(4, ("Entered Delete_PCB"));
     lwp_remove(pid,
@@ -886,7 +886,7 @@ int LWP_TraceProcesses = 0;
 static void
 Dispatcher(void)
 {                              /* Lightweight process dispatcher */
-    register int i;
+    int i;
 #ifdef DEBUG
     static int dispatch_count = 0;
 
@@ -1038,7 +1038,7 @@ static void
 Initialize_PCB(PROCESS temp, int priority, char *stack, int stacksize,
               void *(*ep) (void *), void *parm, char *name)
 {
-    register int i = 0;
+    int i = 0;
 
     Debug(4, ("Entered Initialize_PCB"));
     if (name != NULL)
@@ -1074,10 +1074,10 @@ Initialize_PCB(PROCESS temp, int priority, char *stack, int stacksize,
 }
 
 static int
-Internal_Signal(register void *event)
+Internal_Signal(void *event)
 {
     int rc = LWP_ENOWAIT;
-    register int i;
+    int i;
 
     Debug(0, ("Entered Internal_Signal [event id 0x%x]", event));
     if (!lwp_init)
@@ -1105,7 +1105,7 @@ Internal_Signal(register void *event)
 static afs_int32
 Initialize_Stack(char *stackptr, int stacksize)
 {
-    register int i;
+    int i;
 
     Debug(4, ("Entered Initialize_Stack"));
     if (lwp_stackUseEnabled)
@@ -1121,9 +1121,9 @@ Initialize_Stack(char *stackptr, int stacksize)
 }
 
 static int
-Stack_Used(register char *stackptr, int stacksize)
+Stack_Used(char *stackptr, int stacksize)
 {
-    register int i;
+    int i;
 
 #if defined(__hp9000s800) || defined(AFS_PARISC_LINUX24_ENV)
     if (*(afs_int32 *) (stackptr + stacksize - 4) == STACKMAGIC)
@@ -1161,8 +1161,8 @@ LWP_NewRock(int Tag, char *Value)
      * a rock whose contents can change.
      */
 {
-    register int i;
-    register struct rock *ra;  /* rock array */
+    int i;
+    struct rock *ra;   /* rock array */
 
     ra = lwp_cpptr->lwp_rlist;
 
@@ -1188,8 +1188,8 @@ LWP_GetRock(int Tag, char **Value)
      * LWP_EBADROCK     rock specified does not exist
      */
 {
-    register int i;
-    register struct rock *ra;
+    int i;
+    struct rock *ra;
 
     ra = lwp_cpptr->lwp_rlist;
 
index a7b3151dcb17c02a12f959554e97893784451050..355124e5cd6d3b2a278a21f787bfda953d4774d0 100644 (file)
@@ -383,7 +383,7 @@ extern int LWP_DispatchProcess(void);
 extern int LWP_WaitProcess(void *event);
 extern PROCESS LWP_ThreadId(void);
 extern int LWP_QWait(void);
-extern int LWP_QSignal(register PROCESS pid);
+extern int LWP_QSignal(PROCESS pid);
 #endif
 
 extern afs_int32 savecontext(void (*ep)(void), 
index 460feb3b52f8cf61a339e38962e34d039c1238e2..edfa07c1e64516a65d8167303b34955aa171aeae 100644 (file)
@@ -94,8 +94,8 @@ struct QUEUE {
 /* Iterator macro */
 #define for_all_elts(var, q, body)\
        {\
-           register PROCESS var, _NEXT_;\
-           register int _I_;\
+           PROCESS var, _NEXT_;\
+           int _I_;\
            for (_I_=q.count, var = q.head; _I_>0; _I_--, var=_NEXT_) {\
                _NEXT_ = var -> next;\
                body\
@@ -140,7 +140,7 @@ int lwp_MinStackSize = 0;
 int LWP_InitializeProcessSupport(int priority, PROCESS *pid)
 {
     PROCESS pcb;
-    register int i;
+    int i;
     char* value;
 
     Debug(0, ("Entered LWP_InitializeProcessSupport"))
@@ -324,7 +324,7 @@ int LWP_DispatchProcess(void)               /* explicit voluntary preemption */
 static void Dump_Processes(void)
 {
     if (lwp_init) {
-       register int i;
+       int i;
        for (i=0; i<MAX_PRIORITIES; i++)
            for_all_elts(x, runnable[i], {
                printf("[Priority %d]\n", i);
@@ -392,7 +392,7 @@ int LWP_INTERNALSIGNAL(void *event, int yield)
 
 int LWP_TerminateProcessSupport()      /* terminate all LWP support */
 {
-    register int i;
+    int i;
 
     Debug(0, ("Entered Terminate_Process_Support"))
     if (lwp_init == NULL) return LWP_EINIT;
@@ -566,7 +566,7 @@ int LWP_TraceProcesses = 0;
 
 static void Dispatcher(void)
 {
-    register int i;
+    int i;
 #ifdef DEBUG
     static int dispatch_count = 0;
 
index 36082c9640bfffb550b449e0a40eb8a5016f2eb7..6572b4f8901b3242f2ff383ac26245bbb542e7eb 100644 (file)
@@ -108,7 +108,7 @@ read_process(id)
 
     PRE_PreemptMe();
     for (;;) {
-       register int i;
+       int i;
 
        /* Wait until there is something in the queue */
        asleep++;
index d1ddcf287b1436b3e43d4c2a9c53ee9d17d4d4a7..720da1f333d403b5367e3c848f0e2e4c441bfd28 100644 (file)
@@ -32,7 +32,7 @@ main(argc, argv)
 {
     struct timeval t1, t2;
     int pid, otherpid;
-    register int i, count, x;
+    int i, count, x;
     char *waitarray[2];
     static char c[] = "OtherProcess";
 
index 8c6b3439b71856714e4e04316fb1f0486ccb3651..76476cb895937297c77455036858a22979e3c694 100644 (file)
@@ -67,8 +67,8 @@ struct QUEUE {
 int stack_offset;
 
 static remove(p, q)
-    register PROCESS p;
-    register struct QUEUE *q;
+    PROCESS p;
+    struct QUEUE *q;
 {
     /* Special test for only element on queue */
     if (q->count == 1)
@@ -85,8 +85,8 @@ static remove(p, q)
 }
 
 static insert(p, q)
-    register PROCESS p;
-    register struct QUEUE *q;
+    PROCESS p;
+    struct QUEUE *q;
 {
     if (q->head == NULL) {     /* Queue is empty */
        q -> head = p;
@@ -111,8 +111,8 @@ static move(p, from, to)
 /* Iterator macro */
 #define for_all_elts(var, q, body)\
        {\
-           register PROCESS var, _NEXT_;\
-           register int _I_;\
+           PROCESS var, _NEXT_;\
+           int _I_;\
            for (_I_=q.count, var = q.head; _I_>0; _I_--, var=_NEXT_) {\
                _NEXT_ = var -> next;\
                body\
@@ -248,7 +248,7 @@ int LWP_DispatchProcess()           /* explicit voluntary preemption */
 Dump_Processes()
 {
     if (lwp_init) {
-       register int i;
+       int i;
        for (i=0; i<MAX_PRIORITIES; i++)
            for_all_elts(x, runnable[i], {
                printf("[Priority %d]\n", i);
@@ -278,7 +278,7 @@ int LWP_InitializeProcessSupport(priority, pid)
 {
     PROCESS temp;
     struct lwp_pcb dummy;
-    register int i;
+    int i;
 
     Debug(0, ("Entered LWP_InitializeProcessSupport"))
     if (lwp_init != NULL) return LWP_EINIT;
@@ -326,7 +326,7 @@ int LWP_INTERNALSIGNAL(event, yield)                /* signal the occurence of an event */
 int LWP_TerminateProcessSupport()      /* terminate all LWP support */
 {
     int pc;
-    register int i;
+    int i;
 
     Debug(0, ("Entered Terminate_Process_Support"))
     if (lwp_init == NULL) return LWP_EINIT;
@@ -354,8 +354,8 @@ int LWP_WaitProcess(event)          /* wait on a single event */
 }
 
 int LWP_MwaitProcess(wcount, evlist, ecount)   /* wait on m of n events */
-    register int wcount, ecount;
-    register char *evlist[];
+    int wcount, ecount;
+    char *evlist[];
 {
     Debug(0, ("Entered Mwait_Process [waitcnt = %d]", wcount))
 
@@ -443,7 +443,7 @@ static Create_Process_Part2 ()      /* creates a context for the new process */
 }
 
 static Delete_PCB(pid)         /* remove a PCB from the process list */
-    register PROCESS pid;
+    PROCESS pid;
 {
     Debug(4, ("Entered Delete_PCB"))
     remove(pid, (pid->blockflag || pid->status==WAITING || pid->status==DESTROYED
@@ -501,7 +501,7 @@ int LWP_TraceProcesses = 0;
 
 static Dispatcher()            /* Lightweight process dispatcher */
 {
-    register int i;
+    int i;
 #ifdef DEBUG
     static int dispatch_count = 0;
 
@@ -570,7 +570,7 @@ static Initialize_PCB(temp, priority, stack, stacksize, ep, parm, name)
     char *parm;
     char *name,*stack;
 {
-    register int i = 0;
+    int i = 0;
 
     Debug(4, ("Entered Initialize_PCB"))
     if (name != NULL)
@@ -592,10 +592,10 @@ static Initialize_PCB(temp, priority, stack, stacksize, ep, parm, name)
 }
 
 static int Internal_Signal(event)
-    register char *event;
+    char *event;
 {
     int rc = LWP_ENOWAIT;
-    register int i;
+    int i;
 
     Debug(0, ("Entered Internal_Signal [event id 0x%x]", event))
     if (!lwp_init) return LWP_EINIT;
@@ -625,17 +625,17 @@ static Initialize_Stack(stackptr, stacksize)
     char *stackptr;
     int stacksize;
 {
-    register int i;
+    int i;
 
     Debug(4, ("Entered Initialize_Stack"))
     for (i=0; i<stacksize; i++) stackptr[i] = i & 0xff;
 }
 
 static int Stack_Used(stackptr, stacksize)
-   register char *stackptr;
+   char *stackptr;
    int stacksize;
 {
-    register int i;
+    int i;
 
     for (i=0;i<stacksize;i++)
     if ((unsigned char) stackptr[i] != (i & 0xff))
index 7f6e31accaaf80224db77c50dc5b07bb792c1bf7..2474540ea7af571a3781ae0c637abdeb34ec161a 100644 (file)
@@ -51,10 +51,10 @@ static int globalInitDone = 0;
 
 /* t1 = t2 - t3 */
 static void
-subtract(register struct timeval *t1, register struct timeval *t2, 
-        register struct timeval *t3)
+subtract(struct timeval *t1, struct timeval *t2, 
+        struct timeval *t3)
 {
-    register int sec2, usec2, sec3, usec3;
+    int sec2, usec2, sec3, usec3;
 
     sec2 = t2->tv_sec;
     usec2 = t2->tv_usec;
@@ -84,7 +84,7 @@ subtract(register struct timeval *t1, register struct timeval *t2,
 /* t1 += t2; */
 
 static void
-add(register struct timeval *t1, register struct timeval *t2)
+add(struct timeval *t1, struct timeval *t2)
 {
     t1->tv_usec += t2->tv_usec;
     t1->tv_sec += t2->tv_sec;
@@ -106,7 +106,7 @@ TM_eql(struct timeval *t1, struct timeval *t2)
 
 /*
 obsolete, commentless procedure, all done by hand expansion now.
-static bool geq(register struct timeval *t1, register struct timeval *t2)
+static bool geq(struct timeval *t1, struct timeval *t2)
 {
     return (t1->tv_sec > t2->tv_sec) ||
           (t1->tv_sec == t2->tv_sec && t1->tv_usec >= t2->tv_usec);
@@ -114,7 +114,7 @@ static bool geq(register struct timeval *t1, register struct timeval *t2)
 */
 
 static bool
-blocking(register struct TM_Elem *t)
+blocking(struct TM_Elem *t)
 {
     return (t->TotalTime.tv_sec < 0 || t->TotalTime.tv_usec < 0);
 }
@@ -126,7 +126,7 @@ blocking(register struct TM_Elem *t)
 */
 
 int
-TM_Init(register struct TM_Elem **list)
+TM_Init(struct TM_Elem **list)
 {
     if (!globalInitDone) {
        FT_Init(0, 0);
@@ -149,7 +149,7 @@ TM_Init(register struct TM_Elem **list)
 }
 
 int
-TM_Final(register struct TM_Elem **list)
+TM_Final(struct TM_Elem **list)
 {
     if (list == NULL || *list == NULL)
        return -1;
@@ -167,7 +167,7 @@ TM_Final(register struct TM_Elem **list)
 void
 TM_Insert(struct TM_Elem *tlistPtr, struct TM_Elem *elem)
 {
-    register struct TM_Elem *next;
+    struct TM_Elem *next;
 
     /* TimeLeft must be set for function IOMGR with infinite timeouts */
     elem->TimeLeft = elem->TotalTime;
@@ -208,7 +208,7 @@ int
 TM_Rescan(struct TM_Elem *tlist)       /* head pointer of timer list */
 {
     struct timeval time;
-    register int expired;
+    int expired;
 
     FT_AGetTimeOfDay(&time, 0);
     expired = 0;
@@ -250,7 +250,7 @@ TM_GetExpired(struct TM_Elem *tlist)        /* head pointer of timer list */
 struct TM_Elem *
 TM_GetEarliest(struct TM_Elem *tlist)
 {
-    register struct TM_Elem *e;
+    struct TM_Elem *e;
 
     e = tlist->Next;
     return (e == tlist ? NULL : e);
index bdaa911ffda1f084ca87921b095902ae4965e524..4934cbf02b51b560881ab88737355abddf233c0d 100644 (file)
@@ -36,12 +36,12 @@ extern struct TM_Elem *TM_GetExpired(struct TM_Elem *tlist);
 extern struct TM_Elem *TM_GetEarliest(struct TM_Elem *tlist);
 #endif
 
-extern int TM_Init(register struct TM_Elem **list);
-extern int TM_Final(register struct TM_Elem **list);
+extern int TM_Init(struct TM_Elem **list);
+extern int TM_Final(struct TM_Elem **list);
 
 #define FOR_ALL_ELTS(var, list, body)\
        {\
-           register struct TM_Elem *_LIST_, *var, *_NEXT_;\
+           struct TM_Elem *_LIST_, *var, *_NEXT_;\
            _LIST_ = (list);\
            for (var = _LIST_ -> Next; var != _LIST_; var = _NEXT_) {\
                _NEXT_ = var -> Next;\
index 0505cad8254642ce7de854dae14b1918ae61a5bf..40f9701f50829b707e373fe12454eb9eafc7b069 100644 (file)
@@ -76,10 +76,10 @@ sigsetmask(int mask)
 /* converts string to integer */
 
 char *
-cv2string(register char *ttp, register unsigned long aval)
+cv2string(char *ttp, unsigned long aval)
 {
-    register char *tp = ttp;
-    register int i;
+    char *tp = ttp;
+    int i;
     int any = 0;
 
     *(--tp) = 0;
index b4e49157c10dcacad3f6871bb2d4f9641291330d..a5a9f6347e495faf6843636df748a65226b9a6a4 100644 (file)
@@ -19,7 +19,7 @@ void lc_cleanup(pam_handle_t * pamh, void *data, int pam_end_status);
 
 void nil_cleanup(pam_handle_t * pamh, void *data, int pam_end_status);
 
-extern char *cv2string(register char *ttp, register unsigned long aval);
+extern char *cv2string(char *ttp, unsigned long aval);
 extern int do_klog(const char *user, const char *password,
                   const char *lifetime, const char *cell_name);
 extern afs_int32 getPAG(void);
index 6e6abd31c9e08f35388cd4096da5ee95c3819c8f..cf24ab9aeb61d610c732a714747411efc1899e49 100644 (file)
@@ -71,7 +71,7 @@ UnConvCmd(struct cmd_syndesc *as, void *arock)
 static int
 handleit(struct cmd_syndesc *as)
 {
-    register struct cmd_item *ti;
+    struct cmd_item *ti;
     char *dname;
     afs_int32 haspart = 0, hasDevice = 0;
     struct vfstab mnt;
@@ -186,7 +186,7 @@ handleit(struct cmd_syndesc *as)
 main(argc, argv)
      char **argv;
 {
-    register struct cmd_syndesc *ts;
+    struct cmd_syndesc *ts;
     afs_int32 code;
 
     if (geteuid() != 0) {
index d0a57fe6c91dede581c151145175829849e25953..8ed2f85da8101453b6a43893b4c0535f2bc4514d 100644 (file)
@@ -138,11 +138,11 @@ IDHash(afs_int32 x)
 }
 
 static afs_int32
-NameHash(register char *aname)
+NameHash(char *aname)
 {
     /* returns hash bucket for aname */
-    register unsigned int hash = 0;
-    register int i;
+    unsigned int hash = 0;
+    int i;
 /* stolen directly from the HashString function in the vol package */
     for (i = strlen(aname), aname += i - 1; i--; aname--)
        hash = (hash * 31) + (*(unsigned char *)aname - 31);
index 4faf2edb5a1a82de12361fb6fbc884cea5dd902f..e0f53adaa3a2881ec446fbb5f97b21ec0f659cba 100644 (file)
@@ -113,8 +113,8 @@ int
 main(int argc, char **argv)
 {
 
-    register struct cmd_syndesc *cs;   /*Command line syntax descriptor */
-    register afs_int32 code;   /*Return code */
+    struct cmd_syndesc *cs;    /*Command line syntax descriptor */
+    afs_int32 code;    /*Return code */
 
     cs = cmd_CreateSyntax(NULL, CommandProc, NULL,
                          "access protection database");
@@ -139,9 +139,9 @@ main(int argc, char **argv)
 }
 
 static int
-CommandProc(register struct cmd_syndesc *a_as, void *arock)
+CommandProc(struct cmd_syndesc *a_as, void *arock)
 {
-    register int i;
+    int i;
     long code = 0;
     long upos;
     long gpos = 0;
@@ -401,7 +401,7 @@ static void
 add_group(long id)
 {
     struct grp_list *g;
-    register long i;
+    long i;
 
     i = grp_count++ % 1024;
     if (i == 0) {
@@ -416,7 +416,7 @@ add_group(long id)
 static void
 display_groups(void)
 {
-    register int i, id;
+    int i, id;
     struct grp_list *g;
 
     g = grp_head;
@@ -435,7 +435,7 @@ display_groups(void)
 static void
 display_group(int id)
 {
-    register int i, offset;
+    int i, offset;
     int print_grp = 0;
 
     offset = ntohl(prh.idHash[IDHash(id)]);
@@ -506,7 +506,7 @@ display_group(int id)
 static void
 fix_pre(struct prentry *pre)
 {
-    register int i;
+    int i;
 
     pre->flags = ntohl(pre->flags);
     pre->id = ntohl(pre->id);
@@ -533,7 +533,7 @@ fix_pre(struct prentry *pre)
 static char *
 id_to_name(int id)
 {
-    register int offset;
+    int offset;
     static struct prentry pre;
     char *name;
 
@@ -561,7 +561,7 @@ static char *
 checkin(struct prentry *pre)
 {
     struct hash_entry *he, *last;
-    register int id;
+    int id;
 
     id = pre->id;
     last = (struct hash_entry *)0;
@@ -588,7 +588,7 @@ checkin(struct prentry *pre)
 }
 
 static char *
-check_core(register int id)
+check_core(int id)
 {
     struct hash_entry *he;
     he = hat[IDHash(id)];
index a62b579f5cce7da169931664703c3df5bfb2fb72..b88ea74dd46e95db8bb01d951193c6cd6c650191 100644 (file)
@@ -163,7 +163,7 @@ PrintEntry(afs_int32 ea, struct prentry *e, int indent)
 int
 main(int argc, char **argv)
 {
-    register afs_int32 code;
+    afs_int32 code;
     char op[8];
     char name[PR_MAXNAMELEN];
     afs_int32 id, oid = ANONYMOUSID, gid;
index 936cb1c064db86a212bc6410f82d60b3fbb6ef8c..6f55959267732cd1846b0ad85d040e7ed92f847e 100644 (file)
@@ -179,8 +179,8 @@ WhoIsThis(struct rx_call *acall, struct ubik_trans *at, afs_int32 *aid)
     int foreign = 0;
     /* aid is set to the identity of the caller, if known, else ANONYMOUSID */
     /* returns -1 and sets aid to ANONYMOUSID on any failure */
-    register struct rx_connection *tconn;
-    register afs_int32 code;
+    struct rx_connection *tconn;
+    afs_int32 code;
     char tcell[MAXKTCREALMLEN];
     char name[MAXKTCNAMELEN];
     char inst[MAXKTCNAMELEN];
@@ -253,7 +253,7 @@ iNewEntry(struct rx_call *call, char aname[], afs_int32 aid, afs_int32 oid,
     /* used primarily for conversion - not intended to be used as usual means
      * of entering people into the database. */
     struct ubik_trans *tt;
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 gflag = 0;
     int admin;
 
@@ -322,7 +322,7 @@ static afs_int32
 newEntry(struct rx_call *call, char aname[], afs_int32 flag, afs_int32 oid, 
         afs_int32 *aid, afs_int32 *cid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct ubik_trans *tt;
     int admin;
     char cname[PR_MAXNAMELEN];
@@ -384,7 +384,7 @@ SPR_WhereIsIt(struct rx_call *call, afs_int32 aid, afs_int32 *apos)
 static afs_int32
 whereIsIt(struct rx_call *call, afs_int32 aid, afs_int32 *apos, afs_int32 *cid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct ubik_trans *tt;
     afs_int32 temp;
 
@@ -433,7 +433,7 @@ static afs_int32
 dumpEntry(struct rx_call *call, afs_int32 apos, struct prdebugentry *aentry, 
          afs_int32 *cid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct ubik_trans *tt;
 
     code = Initdb();
@@ -490,7 +490,7 @@ SPR_AddToGroup(struct rx_call *call, afs_int32 aid, afs_int32 gid)
 static afs_int32
 addToGroup(struct rx_call *call, afs_int32 aid, afs_int32 gid, afs_int32 *cid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct ubik_trans *tt;
     afs_int32 tempu;
     afs_int32 tempg;
@@ -576,7 +576,7 @@ SPR_NameToID(struct rx_call *call, namelist *aname, idlist *aid)
 static afs_int32
 nameToID(struct rx_call *call, namelist *aname, idlist *aid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct ubik_trans *tt;
     afs_int32 i;
     int size;
@@ -669,7 +669,7 @@ SPR_IDToName(struct rx_call *call, idlist *aid, namelist *aname)
 static afs_int32
 idToName(struct rx_call *call, idlist *aid, namelist *aname)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct ubik_trans *tt;
     afs_int32 i;
     int size;
@@ -741,7 +741,7 @@ SPR_Delete(struct rx_call *call, afs_int32 aid)
 static afs_int32
 Delete(struct rx_call *call, afs_int32 aid, afs_int32 *cid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct ubik_trans *tt;
     struct prentry tentry;
     afs_int32 loc, nptr;
@@ -990,7 +990,7 @@ afs_int32
 UpdateEntry(struct rx_call *call, afs_int32 aid, char *name, 
            struct PrUpdateEntry *uentry, afs_int32 *cid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct ubik_trans *tt;
     struct prentry tentry;
     afs_int32 loc;
@@ -1081,7 +1081,7 @@ static afs_int32
 removeFromGroup(struct rx_call *call, afs_int32 aid, afs_int32 gid, 
                afs_int32 *cid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct ubik_trans *tt;
     afs_int32 tempu;
     afs_int32 tempg;
@@ -1163,7 +1163,7 @@ static afs_int32
 getCPS(struct rx_call *call, afs_int32 aid, prlist *alist, afs_int32 *over, 
        afs_int32 *cid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct ubik_trans *tt;
     afs_int32 temp;
     struct prentry tentry;
@@ -1236,7 +1236,7 @@ static afs_int32
 getCPS2(struct rx_call *call, afs_int32 aid, afs_uint32 ahost, prlist *alist,
        afs_int32 *over, afs_int32 *cid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct ubik_trans *tt;
     afs_int32 temp;
     struct prentry tentry;
@@ -1318,7 +1318,7 @@ afs_int32
 getHostCPS(struct rx_call *call, afs_uint32 ahost, prlist *alist,
           afs_int32 *over)
 {
-    register afs_int32 code, temp;
+    afs_int32 code, temp;
     struct ubik_trans *tt;
     struct prentry host_tentry;
     afs_int32 hostid;
@@ -1379,7 +1379,7 @@ SPR_ListMax(struct rx_call *call, afs_int32 *uid, afs_int32 *gid)
 afs_int32
 listMax(struct rx_call *call, afs_int32 *uid, afs_int32 *gid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct ubik_trans *tt;
 
     code = Initdb();
@@ -1421,7 +1421,7 @@ SPR_SetMax(struct rx_call *call, afs_int32 aid, afs_int32 gflag)
 static afs_int32
 setMax(struct rx_call *call, afs_int32 aid, afs_int32 gflag, afs_int32 *cid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct ubik_trans *tt;
 
     code = Initdb();
@@ -1471,7 +1471,7 @@ static afs_int32
 listEntry(struct rx_call *call, afs_int32 aid, struct prcheckentry *aentry, 
          afs_int32 *cid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct ubik_trans *tt;
     afs_int32 temp;
     struct prentry tentry;
@@ -1676,7 +1676,7 @@ static afs_int32
 changeEntry(struct rx_call *call, afs_int32 aid, char *name, afs_int32 oid, 
            afs_int32 newid, afs_int32 *cid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct ubik_trans *tt;
     afs_int32 pos;
 
@@ -1742,7 +1742,7 @@ setFieldsEntry(struct rx_call *call,
               afs_int32 flags, afs_int32 ngroups, afs_int32 nusers, 
               afs_int32 spare1, afs_int32 spare2, afs_int32 *cid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct ubik_trans *tt;
     afs_int32 pos;
     struct prentry tentry;
@@ -1836,7 +1836,7 @@ static afs_int32
 listElements(struct rx_call *call, afs_int32 aid, prlist *alist, 
             afs_int32 *over, afs_int32 *cid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct ubik_trans *tt;
     afs_int32 temp;
     struct prentry tentry;
@@ -1902,7 +1902,7 @@ static afs_int32
 listSuperGroups(struct rx_call *call, afs_int32 aid, prlist *alist, 
                afs_int32 *over, afs_int32 *cid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct ubik_trans *tt;
     afs_int32 temp;
     struct prentry tentry;
@@ -1971,7 +1971,7 @@ afs_int32
 listOwned(struct rx_call *call, afs_int32 aid, prlist *alist, afs_int32 *lastP, 
          afs_int32 *cid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct ubik_trans *tt;
     struct prentry tentry;
     afs_int32 head = 0;
@@ -2057,7 +2057,7 @@ static afs_int32
 isAMemberOf(struct rx_call *call, afs_int32 uid, afs_int32 gid, afs_int32 *flag,
            afs_int32 *cid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct ubik_trans *tt;
 
     code = Initdb();
@@ -2160,8 +2160,8 @@ WhoIsThisWithName(struct rx_call *acall, struct ubik_trans *at, afs_int32 *aid,
 {
     /* aid is set to the identity of the caller, if known, else ANONYMOUSID */
     /* returns -1 and sets aid to ANONYMOUSID on any failure */
-    register struct rx_connection *tconn;
-    register afs_int32 code;
+    struct rx_connection *tconn;
+    afs_int32 code;
     char tcell[MAXKTCREALMLEN];
     char name[MAXKTCNAMELEN];
     char inst[MAXKTCNAMELEN];
index b36c4e7e0f013504a5843430e2e3365a774ab468..714b0ca6e2107a3eb589a40ce587f2ebda0305da 100644 (file)
@@ -27,7 +27,7 @@ extern afs_int32 RemoveFromSGEntry(struct ubik_trans *at, afs_int32 aid,
 extern void pt_hook_write(void);
 #endif
 
-extern afs_int32 NameHash(register unsigned char *aname);
+extern afs_int32 NameHash(unsigned char *aname);
 extern afs_int32 pr_Write(struct ubik_trans *tt, afs_int32 afd, afs_int32 pos, 
                          void *buff, afs_int32 len);
 extern afs_int32 pr_Read(struct ubik_trans *tt, afs_int32 afd, afs_int32 pos, 
@@ -40,16 +40,16 @@ extern int pr_WriteCoEntry(struct ubik_trans *tt, afs_int32 afd, afs_int32 pos,
                           struct contentry *tentry);
 extern int pr_ReadCoEntry(struct ubik_trans *tt, afs_int32 afd, afs_int32 pos, 
                          struct contentry *tentry);
-extern afs_int32 AllocBlock(register struct ubik_trans *at);
-extern afs_int32 FreeBlock(register struct ubik_trans *at, afs_int32 pos);
-extern afs_int32 FindByID(register struct ubik_trans *at, afs_int32 aid);
-extern afs_int32 FindByName(register struct ubik_trans *at, 
+extern afs_int32 AllocBlock(struct ubik_trans *at);
+extern afs_int32 FreeBlock(struct ubik_trans *at, afs_int32 pos);
+extern afs_int32 FindByID(struct ubik_trans *at, afs_int32 aid);
+extern afs_int32 FindByName(struct ubik_trans *at, 
                            char aname[PR_MAXNAMELEN], struct prentry *tentryp);
-extern afs_int32 AllocID(register struct ubik_trans *at, afs_int32 flag, 
+extern afs_int32 AllocID(struct ubik_trans *at, afs_int32 flag, 
                         afs_int32 *aid);
-extern afs_int32 IDToName(register struct ubik_trans *at, afs_int32 aid, 
+extern afs_int32 IDToName(struct ubik_trans *at, afs_int32 aid, 
                          char aname[PR_MAXNAMELEN]);
-extern afs_int32 NameToID(register struct ubik_trans *at, 
+extern afs_int32 NameToID(struct ubik_trans *at, 
                          char aname[PR_MAXNAMELEN], afs_int32 *aid);
 extern int IDCmp(const void *a, const void *b);
 extern afs_int32 RemoveFromIDHash(struct ubik_trans *tt, afs_int32 aid, 
index 26058ecf787b517ea46a5e9f060d0d1586019ffa..01248f2d9a9bccb06a5614b5b641eb686eb36ddc 100644 (file)
@@ -122,7 +122,7 @@ pts_Sleep(struct cmd_syndesc *as, void *arock)
 static int
 popsource(void)
 {
-    register struct sourcestack *sp;
+    struct sourcestack *sp;
     if (!(sp = shead))
        return 0;
     if (source != stdin)
@@ -261,7 +261,7 @@ CleanUp(struct cmd_syndesc *as, void *arock)
 static int
 CreateGroup(struct cmd_syndesc *as, void *arock)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 id;
     char *owner;
     struct cmd_item *namei;
@@ -321,7 +321,7 @@ CreateGroup(struct cmd_syndesc *as, void *arock)
 static int
 CreateUser(struct cmd_syndesc *as, void *arock)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 id;
     struct cmd_item *namei;
     struct cmd_item *idi;
@@ -367,7 +367,7 @@ CreateUser(struct cmd_syndesc *as, void *arock)
 static int
 GetNameOrId(struct cmd_syndesc *as, struct idlist *lids, struct namelist *lnames)
 {
-    register afs_int32 code = 0;
+    afs_int32 code = 0;
     int n = 0;
     struct cmd_item *i;
     int goodCount;
@@ -459,7 +459,7 @@ static int
 GetNameOrId(struct cmd_syndesc *as, struct idlist *lids,
            struct namelist *lnames)
 {
-    register afs_int32 code = 0;
+    afs_int32 code = 0;
     int n = 0, nd = 0, nm = 0, id, x;
     struct cmd_item *i;
     struct namelist names, tnames;     /* local copy, if not ret. names */
@@ -547,7 +547,7 @@ GetNameOrId(struct cmd_syndesc *as, struct idlist *lids,
 static int
 AddToGroup(struct cmd_syndesc *as, void *arock)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct cmd_item *u, *g;
 
     for (u = as->parms[0].items; u; u = u->next) {
@@ -568,7 +568,7 @@ AddToGroup(struct cmd_syndesc *as, void *arock)
 static int
 RemoveFromGroup(struct cmd_syndesc *as, void *arock)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct cmd_item *u, *g;
 
     for (u = as->parms[0].items; u; u = u->next) {
@@ -589,7 +589,7 @@ RemoveFromGroup(struct cmd_syndesc *as, void *arock)
 static int
 ListMembership(struct cmd_syndesc *as, void *arock)
 {
-    register afs_int32 code;
+    afs_int32 code;
     idlist ids;
     namelist names;
     int i;
@@ -658,7 +658,7 @@ ListMembership(struct cmd_syndesc *as, void *arock)
 static int
 Delete(struct cmd_syndesc *as, void *arock)
 {
-    register afs_int32 code;
+    afs_int32 code;
     idlist ids;
     namelist names;
     int i;
@@ -697,7 +697,7 @@ int flags_shift[5] = { 2, 1, 2, 2, 1 };     /* bits for each */
 static int
 CheckEntry(struct cmd_syndesc *as, void *arock)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 rcode = 1;
     int i, flag = 0, admin = 0;
     namelist lnames, names;
@@ -833,7 +833,7 @@ ListEntries(struct cmd_syndesc *as, void *arock)
 static int
 ChownGroup(struct cmd_syndesc *as, void *arock)
 {
-    register afs_int32 code;
+    afs_int32 code;
     char *name;
     char *owner;
 
@@ -849,7 +849,7 @@ ChownGroup(struct cmd_syndesc *as, void *arock)
 static int
 ChangeName(struct cmd_syndesc *as, void *arock)
 {
-    register afs_int32 code;
+    afs_int32 code;
     char *oldname;
     char *newname;
 
@@ -865,7 +865,7 @@ ChangeName(struct cmd_syndesc *as, void *arock)
 static int
 ListMax(struct cmd_syndesc *as, void *arock)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 maxUser, maxGroup;
 
     code = pr_ListMaxUserId(&maxUser);
@@ -886,7 +886,7 @@ ListMax(struct cmd_syndesc *as, void *arock)
 static int
 SetMaxCommand(struct cmd_syndesc *as, void *arock)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 maxid;
 
     code = 0;
@@ -926,7 +926,7 @@ SetMaxCommand(struct cmd_syndesc *as, void *arock)
 static int
 SetFields(struct cmd_syndesc *as, void *arock)
 {
-    register afs_int32 code;
+    afs_int32 code;
     idlist ids;
     namelist names;
     int i;
@@ -1021,7 +1021,7 @@ SetFields(struct cmd_syndesc *as, void *arock)
 static int
 ListOwned(struct cmd_syndesc *as, void *arock)
 {
-    register afs_int32 code;
+    afs_int32 code;
     idlist ids;
     namelist names;
     namelist list;
@@ -1091,7 +1091,7 @@ add_std_args(struct cmd_syndesc *ts)
 
 /*
 static void add_NameOrId_args (ts)
-  register struct cmd_syndesc *ts;
+  struct cmd_syndesc *ts;
 {
     cmd_AddParm(ts,"-name",CMD_LIST,CMD_OPTIONAL,"user or group name");
     cmd_AddParm(ts,"-id",CMD_LIST,CMD_OPTIONAL,"user or group id");
@@ -1103,8 +1103,8 @@ static void add_NameOrId_args (ts)
 int
 main(int argc, char **argv)
 {
-    register afs_int32 code;
-    register struct cmd_syndesc *ts;
+    afs_int32 code;
+    struct cmd_syndesc *ts;
 
     char line[2048];
     char *cp, *lastp;
index c5a5c07920b3a496d9f828145728df9fd7c96ac9..26deaf2e83e89fdf8ee02f9e1bf0f34c59f350f7 100644 (file)
@@ -203,9 +203,9 @@ pr_rxstat_userok(struct rx_call *call)
 int
 main(int argc, char **argv)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_uint32 myHost;
-    register struct hostent *th;
+    struct hostent *th;
     char hostname[64];
     struct rx_service *tservice;
     struct rx_securityClass **securityClasses;
index fa5112681fa2f910d1dea6df87c9926a33340b76..cb8193bb7736be3779a41b01005c65f3103ac4a0 100644 (file)
@@ -360,7 +360,7 @@ pr_End(void)
 int
 pr_CreateUser(char name[PR_MAXNAMELEN], afs_int32 *id)
 {
-    register afs_int32 code;
+    afs_int32 code;
 
     stolower(name);
     if (*id) {
@@ -376,7 +376,7 @@ pr_CreateUser(char name[PR_MAXNAMELEN], afs_int32 *id)
 int 
 pr_CreateGroup(char name[PR_MAXNAMELEN], char owner[PR_MAXNAMELEN], afs_int32 *id)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 oid = 0;
     afs_int32 flags = 0;
 
@@ -401,7 +401,7 @@ pr_CreateGroup(char name[PR_MAXNAMELEN], char owner[PR_MAXNAMELEN], afs_int32 *i
 int
 pr_Delete(char *name)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 id;
 
     stolower(name);
@@ -417,7 +417,7 @@ pr_Delete(char *name)
 int
 pr_DeleteByID(afs_int32 id)
 {
-    register afs_int32 code;
+    afs_int32 code;
 
     code = ubik_PR_Delete(pruclient, 0, id);
     return code;
@@ -426,7 +426,7 @@ pr_DeleteByID(afs_int32 id)
 int
 pr_AddToGroup(char *user, char *group)
 {
-    register afs_int32 code;
+    afs_int32 code;
     namelist lnames;
     idlist lids;
 
@@ -459,7 +459,7 @@ pr_AddToGroup(char *user, char *group)
 int
 pr_RemoveUserFromGroup(char *user, char *group)
 {
-    register afs_int32 code;
+    afs_int32 code;
     namelist lnames;
     idlist lids;
 
@@ -493,8 +493,8 @@ pr_RemoveUserFromGroup(char *user, char *group)
 int
 pr_NameToId(namelist *names, idlist *ids)
 {
-    register afs_int32 code;
-    register afs_int32 i;
+    afs_int32 code;
+    afs_int32 i;
 
     for (i = 0; i < names->namelist_len; i++)
        stolower(names->namelist_val[i]);
@@ -507,7 +507,7 @@ pr_SNameToId(char name[PR_MAXNAMELEN], afs_int32 *id)
 {
     namelist lnames;
     idlist lids;
-    register afs_int32 code;
+    afs_int32 code;
 
     lids.idlist_len = 0;
     lids.idlist_val = 0;
@@ -528,7 +528,7 @@ pr_SNameToId(char name[PR_MAXNAMELEN], afs_int32 *id)
 int
 pr_IdToName(idlist *ids, namelist *names)
 {
-    register afs_int32 code;
+    afs_int32 code;
 
     code = ubik_PR_IDToName(pruclient, 0, ids, names);
     return code;
@@ -539,7 +539,7 @@ pr_SIdToName(afs_int32 id, char name[PR_MAXNAMELEN])
 {
     namelist lnames;
     idlist lids;
-    register afs_int32 code;
+    afs_int32 code;
 
     lids.idlist_len = 1;
     lids.idlist_val = malloc(sizeof(afs_int32));
@@ -562,7 +562,7 @@ pr_SIdToName(afs_int32 id, char name[PR_MAXNAMELEN])
 int
 pr_GetCPS(afs_int32 id, prlist *CPS)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 over;
 
     over = 0;
@@ -581,7 +581,7 @@ pr_GetCPS(afs_int32 id, prlist *CPS)
 int
 pr_GetCPS2(afs_int32 id, afs_uint32 host, prlist *CPS)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 over;
 
     over = 0;
@@ -600,7 +600,7 @@ pr_GetCPS2(afs_int32 id, afs_uint32 host, prlist *CPS)
 int
 pr_GetHostCPS(afs_uint32 host, prlist *CPS)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 over;
 
     over = 0;
@@ -620,7 +620,7 @@ pr_GetHostCPS(afs_uint32 host, prlist *CPS)
 int
 pr_ListMembers(char *group, namelist *lnames)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 gid;
 
     code = pr_SNameToId(group, &gid);
@@ -635,7 +635,7 @@ pr_ListMembers(char *group, namelist *lnames)
 int
 pr_ListOwned(afs_int32 oid, namelist *lnames, afs_int32 *moreP)
 {
-    register afs_int32 code;
+    afs_int32 code;
     prlist alist;
     idlist *lids;
 
@@ -664,7 +664,7 @@ pr_ListOwned(afs_int32 oid, namelist *lnames, afs_int32 *moreP)
 int
 pr_IDListMembers(afs_int32 gid, namelist *lnames)
 {
-    register afs_int32 code;
+    afs_int32 code;
     prlist alist;
     idlist *lids;
     afs_int32 over;
@@ -785,7 +785,7 @@ pr_IDListExpandedMembers(afs_int32 aid, namelist * lnames)
 int
 pr_ListEntry(afs_int32 id, struct prcheckentry *aentry)
 {
-    register afs_int32 code;
+    afs_int32 code;
 
     code = ubik_PR_ListEntry(pruclient, 0, id, aentry);
     return code;
@@ -815,7 +815,7 @@ int
 pr_CheckEntryByName(char *name, afs_int32 *id, char *owner, char *creator)
 {
     /* struct prcheckentry returns other things, which aren't useful to show at this time. */
-    register afs_int32 code;
+    afs_int32 code;
     struct prcheckentry aentry;
 
     code = pr_SNameToId(name, id);
@@ -840,7 +840,7 @@ int
 pr_CheckEntryById(char *name, afs_int32 id, char *owner, char *creator)
 {
     /* struct prcheckentry returns other things, which aren't useful to show at this time. */
-    register afs_int32 code;
+    afs_int32 code;
     struct prcheckentry aentry;
 
     code = pr_SIdToName(id, name);
@@ -864,7 +864,7 @@ pr_CheckEntryById(char *name, afs_int32 id, char *owner, char *creator)
 int
 pr_ChangeEntry(char *oldname, char *newname, afs_int32 *newid, char *newowner)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 id;
     afs_int32 oid = 0;
 
@@ -890,7 +890,7 @@ pr_ChangeEntry(char *oldname, char *newname, afs_int32 *newid, char *newowner)
 int
 pr_IsAMemberOf(char *uname, char *gname, afs_int32 *flag)
 {
-    register afs_int32 code;
+    afs_int32 code;
     namelist lnames;
     idlist lids;
 
@@ -921,7 +921,7 @@ pr_IsAMemberOf(char *uname, char *gname, afs_int32 *flag)
 int
 pr_ListMaxUserId(afs_int32 *mid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 gid;
     code = ubik_PR_ListMax(pruclient, 0, mid, &gid);
     return code;
@@ -930,7 +930,7 @@ pr_ListMaxUserId(afs_int32 *mid)
 int
 pr_SetMaxUserId(afs_int32 mid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 flag = 0;
     code = ubik_PR_SetMax(pruclient, 0, mid, flag);
     return code;
@@ -939,7 +939,7 @@ pr_SetMaxUserId(afs_int32 mid)
 int
 pr_ListMaxGroupId(afs_int32 *mid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 id;
     code = ubik_PR_ListMax(pruclient, 0, &id, mid);
     return code;
@@ -948,7 +948,7 @@ pr_ListMaxGroupId(afs_int32 *mid)
 int
 pr_SetMaxGroupId(afs_int32 mid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 flag = 0;
 
     flag |= PRGRP;
@@ -959,7 +959,7 @@ pr_SetMaxGroupId(afs_int32 mid)
 afs_int32
 pr_SetFieldsEntry(afs_int32 id, afs_int32 mask, afs_int32 flags, afs_int32 ngroups, afs_int32 nusers)
 {
-    register afs_int32 code;
+    afs_int32 code;
 
     code =
        ubik_PR_SetFieldsEntry(pruclient, 0, id, mask, flags, ngroups,
index dd185da09f35ed0bcfb90ee7d708a2d1b0e18a4e..ed4262aa11fe66a09d9b81a18a41e45eceab55d7 100644 (file)
@@ -683,9 +683,9 @@ RemoveFromEntry(struct ubik_trans *at, afs_int32 aid, afs_int32 bid)
  * entry if appropriate */
 
 afs_int32
-ChangeIDEntry(register struct ubik_trans *at, register afs_int32 aid, afs_int32 newid, register afs_int32 bid)
+ChangeIDEntry(struct ubik_trans *at, afs_int32 aid, afs_int32 newid, afs_int32 bid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct prentry tentry;
     struct contentry centry;
     afs_int32 temp;
@@ -751,9 +751,9 @@ ChangeIDEntry(register struct ubik_trans *at, register afs_int32 aid, afs_int32
  * continuation entry if appropriate */
 
 afs_int32
-RemoveFromSGEntry(register struct ubik_trans *at, register afs_int32 aid, register afs_int32 bid)
+RemoveFromSGEntry(struct ubik_trans *at, afs_int32 aid, afs_int32 bid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct prentry tentry;
     struct prentryg *tentryg;
     struct contentry centry;
@@ -1115,7 +1115,7 @@ AddToEntry(struct ubik_trans *tt, struct prentry *entry, afs_int32 loc, afs_int3
 afs_int32
 AddToSGEntry(struct ubik_trans *tt, struct prentry *entry, afs_int32 loc, afs_int32 aid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 i;
     struct contentry nentry;
     struct contentry aentry;
@@ -1446,7 +1446,7 @@ GetList2(struct ubik_trans *at, struct prentry *tentry, struct prentry *tentry2,
 afs_int32
 GetListSG2(struct ubik_trans *at, afs_int32 gid, prlist *alist, afs_int32 *sizeP, afs_int32 depth)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct prentry tentry;
     struct prentryg *tentryg = (struct prentryg *)&tentry;
     afs_int32 i;
@@ -1566,7 +1566,7 @@ GetListSG2(struct ubik_trans *at, afs_int32 gid, prlist *alist, afs_int32 *sizeP
 afs_int32
 GetSGList(struct ubik_trans *at, struct prentry *tentry, prlist *alist)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 i;
     struct contentry centry;
     struct prentryg *tentryg;
index a0d33a3d38dc5987e934df93bf870f53dbedc095..065b962102b4e3de2013492010c13045d3658814 100644 (file)
@@ -60,7 +60,7 @@ osi_audit(void)
 int
 main(int argc, char **argv)
 {
-    register afs_int32 code;
+    afs_int32 code;
     char name[PR_MAXNAMELEN];
     char gname[PR_MAXNAMELEN];
     char owner[PR_MAXNAMELEN];
index beebf47f922e04576be73fe737544934b8d649f2..3c9fc5c6d8249c741a28a634d54869785d047480 100644 (file)
@@ -41,7 +41,7 @@ int
 main(afs_int32 argc, char **argv)
 {
 
-    register afs_int32 code;
+    afs_int32 code;
     char name[PR_MAXNAMELEN];
     afs_int32 id;
     char buf[150];
index e90191b9dc2335dbd78f269b08909b405d8572cd..7597ed8a7c517ae07521a47880aae2bbe87104bc 100644 (file)
@@ -1015,7 +1015,7 @@ MyBeforeProc(struct cmd_syndesc *as, void *arock)
        }
        fprintf(f, ">%s\n", lcell);
        for (i = 0; i < cellinfo.numServers; i++) {
-           register unsigned char *tp =
+           unsigned char *tp =
                (unsigned char *)&cellinfo.hostAddr[i].sin_addr;
            fprintf(f, "%d.%d.%d.%d\t#%s\n", tp[0], tp[1], tp[2], tp[3],
                    cellinfo.hostName[i]);
@@ -1057,7 +1057,7 @@ MyBeforeProc(struct cmd_syndesc *as, void *arock)
 }
 
 static void
-add_std_args(register struct cmd_syndesc *ts)
+add_std_args(struct cmd_syndesc *ts)
 {
     cmd_Seek(ts, 12);
     cmd_AddParm(ts, "-confdir", CMD_SINGLE, CMD_OPTIONAL,
index be28de43ab94346c7a1e78ae87da82c85423d9c9..289251c6a9571f187ed12bc6dfeaa90f2234a0ba 100644 (file)
@@ -33,7 +33,7 @@ ubik_ServerInit(afs_uint32 myHost, short myPort, afs_uint32 serverList[],
 }
 
 int
-ubik_BeginTrans(register struct ubik_dbase *dbase, afs_int32 transMode, 
+ubik_BeginTrans(struct ubik_dbase *dbase, afs_int32 transMode, 
                struct ubik_trans **transPtr)
 {
     static int init = 0;
@@ -53,33 +53,33 @@ ubik_BeginTrans(register struct ubik_dbase *dbase, afs_int32 transMode,
 }
 
 int
-ubik_BeginTransReadAny(register struct ubik_dbase *dbase, afs_int32 transMode,
+ubik_BeginTransReadAny(struct ubik_dbase *dbase, afs_int32 transMode,
                        struct ubik_trans **transPtr)
 {
     return (0);
 }
 
 int
-ubik_AbortTrans(register struct ubik_trans *transPtr)
+ubik_AbortTrans(struct ubik_trans *transPtr)
 {
     return (0);
 }
 
 int
-ubik_EndTrans(register struct ubik_trans *transPtr)
+ubik_EndTrans(struct ubik_trans *transPtr)
 {
     return (0);
 }
 
 int
-ubik_Tell(register struct ubik_trans *transPtr, afs_int32 * fileid,
+ubik_Tell(struct ubik_trans *transPtr, afs_int32 * fileid,
           afs_int32 * position)
 {
     return (0);
 }
 
 int
-ubik_Truncate(register struct ubik_trans *transPtr, afs_int32 length)
+ubik_Truncate(struct ubik_trans *transPtr, afs_int32 length)
 {
     return (0);
 }
@@ -92,8 +92,8 @@ ubik_SetLock(struct ubik_trans *atrans, afs_int32 apos, afs_int32 alen,
 }
 
 int
-ubik_WaitVersion(register struct ubik_dbase *adatabase,
-                 register struct ubik_version *aversion)
+ubik_WaitVersion(struct ubik_dbase *adatabase,
+                 struct ubik_version *aversion)
 {
     return (0);
 }
index 6ec4ce50c76fb391a007618482f38a5d3382e6d9..c0a3646ea2e0b454a4a2ca31f82d633e9a52e48a 100644 (file)
@@ -39,11 +39,11 @@ IDHash(afs_int32 x)
 }
 
 afs_int32
-NameHash(register char *aname)
+NameHash(char *aname)
 {
     /* returns hash bucket for aname */
-    register unsigned int hash = 0;
-    register size_t i;
+    unsigned int hash = 0;
+    size_t i;
 /* stolen directly from the HashString function in the vol package */
     for (i = strlen(aname), aname += i - 1; i--; aname--)
        hash = (hash * 31) + (*(unsigned char *)aname - 31);
@@ -84,7 +84,7 @@ int
 pr_WriteEntry(struct ubik_trans *tt, afs_int32 afd, afs_int32 pos, struct prentry *tentry)
 {
     afs_int32 code;
-    register afs_int32 i;
+    afs_int32 i;
     struct prentry nentry;
 
     if (ntohl(1) != 1) {       /* Need to swap bytes. */
@@ -125,7 +125,7 @@ int
 pr_ReadEntry(struct ubik_trans *tt, afs_int32 afd, afs_int32 pos, struct prentry *tentry)
 {
     afs_int32 code;
-    register afs_int32 i;
+    afs_int32 i;
     struct prentry nentry;
     code = ubik_Seek(tt, afd, pos);
     if (code)
@@ -171,7 +171,7 @@ int
 pr_WriteCoEntry(struct ubik_trans *tt, afs_int32 afd, afs_int32 pos, struct contentry *tentry)
 {
     afs_int32 code;
-    register afs_int32 i;
+    afs_int32 i;
     struct contentry nentry;
 
     if (ntohl(1) != 1) {       /* No need to swap */
@@ -192,7 +192,7 @@ int
 pr_ReadCoEntry(struct ubik_trans *tt, afs_int32 afd, afs_int32 pos, struct contentry *tentry)
 {
     afs_int32 code;
-    register afs_int32 i;
+    afs_int32 i;
     struct contentry nentry;
     code = ubik_Seek(tt, afd, pos);
     if (code)
@@ -218,9 +218,9 @@ pr_ReadCoEntry(struct ubik_trans *tt, afs_int32 afd, afs_int32 pos, struct conte
  * new entry */
 
 afs_int32
-AllocBlock(register struct ubik_trans *at)
+AllocBlock(struct ubik_trans *at)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 temp;
     struct prentry tentry;
 
@@ -251,10 +251,10 @@ AllocBlock(register struct ubik_trans *at)
 }
 
 afs_int32
-FreeBlock(register struct ubik_trans *at, afs_int32 pos)
+FreeBlock(struct ubik_trans *at, afs_int32 pos)
 {
     /* add a block of storage to the free list */
-    register afs_int32 code;
+    afs_int32 code;
     struct prentry tentry;
 
     memset(&tentry, 0, sizeof(tentry));
@@ -272,10 +272,10 @@ FreeBlock(register struct ubik_trans *at, afs_int32 pos)
 }
 
 afs_int32
-FindByID(register struct ubik_trans *at, afs_int32 aid)
+FindByID(struct ubik_trans *at, afs_int32 aid)
 {
     /* returns address of entry if found, 0 otherwise */
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 i;
     struct prentry tentry;
     afs_int32 entry;
@@ -308,10 +308,10 @@ FindByID(register struct ubik_trans *at, afs_int32 aid)
 }
 
 afs_int32
-FindByName(register struct ubik_trans *at, char aname[PR_MAXNAMELEN], struct prentry *tentryp)
+FindByName(struct ubik_trans *at, char aname[PR_MAXNAMELEN], struct prentry *tentryp)
 {
     /* ditto */
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 i;
     afs_int32 entry;
 
@@ -341,12 +341,12 @@ FindByName(register struct ubik_trans *at, char aname[PR_MAXNAMELEN], struct pre
 }
 
 afs_int32
-AllocID(register struct ubik_trans *at, afs_int32 flag, afs_int32 *aid)
+AllocID(struct ubik_trans *at, afs_int32 flag, afs_int32 *aid)
 {
     /* allocs an id from the proper area of address space, based on flag */
-    register afs_int32 code = 1;
-    register afs_int32 i = 0;
-    register int maxcount = 50;        /* to prevent infinite loops */
+    afs_int32 code = 1;
+    afs_int32 i = 0;
+    int maxcount = 50; /* to prevent infinite loops */
 
     if (flag & PRGRP) {
        *aid = ntohl(cheader.maxGroup);
@@ -400,11 +400,11 @@ AllocID(register struct ubik_trans *at, afs_int32 flag, afs_int32 *aid)
 }
 
 afs_int32
-IDToName(register struct ubik_trans *at, afs_int32 aid, char aname[PR_MAXNAMELEN])
+IDToName(struct ubik_trans *at, afs_int32 aid, char aname[PR_MAXNAMELEN])
 {
     afs_int32 temp;
     struct prentry tentry;
-    register afs_int32 code;
+    afs_int32 code;
 
     temp = FindByID(at, aid);
     if (temp == 0)
@@ -417,7 +417,7 @@ IDToName(register struct ubik_trans *at, afs_int32 aid, char aname[PR_MAXNAMELEN
 }
 
 afs_int32
-NameToID(register struct ubik_trans *at, char aname[PR_MAXNAMELEN], afs_int32 *aid)
+NameToID(struct ubik_trans *at, char aname[PR_MAXNAMELEN], afs_int32 *aid)
 {
     afs_int32 temp;
     struct prentry tentry;
@@ -446,7 +446,7 @@ afs_int32
 RemoveFromIDHash(struct ubik_trans *tt, afs_int32 aid, afs_int32 *loc)         /* ??? in case ID hashed twice ??? */
 {
     /* remove entry designated by aid from id hash table */
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 current, trail, i;
     struct prentry tentry;
     struct prentry bentry;
@@ -498,7 +498,7 @@ afs_int32
 AddToIDHash(struct ubik_trans *tt, afs_int32 aid, afs_int32 loc)
 {
     /* add entry at loc designated by aid to id hash table */
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 i;
     struct prentry tentry;
 
@@ -526,7 +526,7 @@ afs_int32
 RemoveFromNameHash(struct ubik_trans *tt, char *aname, afs_int32 *loc)
 {
     /* remove from name hash */
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 current, trail, i;
     struct prentry tentry;
     struct prentry bentry;
@@ -576,7 +576,7 @@ afs_int32
 AddToNameHash(struct ubik_trans *tt, char *aname, afs_int32 loc)
 {
     /* add to name hash */
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 i;
     struct prentry tentry;
 
@@ -602,7 +602,7 @@ afs_int32
 AddToOwnerChain(struct ubik_trans *at, afs_int32 gid, afs_int32 oid)
 {
     /* add entry designated by gid to owner chain of entry designated by oid */
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 loc;
     struct prentry tentry;
     struct prentry gentry;
@@ -639,7 +639,7 @@ AddToOwnerChain(struct ubik_trans *at, afs_int32 gid, afs_int32 oid)
 afs_int32
 RemoveFromOwnerChain(struct ubik_trans *at, afs_int32 gid, afs_int32 oid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 nptr;
     struct prentry thisEntry;
     struct prentry thatEntry;
@@ -698,7 +698,7 @@ RemoveFromOwnerChain(struct ubik_trans *at, afs_int32 gid, afs_int32 oid)
 afs_int32
 AddToOrphan(struct ubik_trans *at, afs_int32 gid)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 loc;
     struct prentry tentry;
 
@@ -723,7 +723,7 @@ afs_int32
 RemoveFromOrphan(struct ubik_trans *at, afs_int32 gid)
 {
     /* remove gid from the orphan list */
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 loc;
     afs_int32 nptr;
     struct prentry tentry;
@@ -778,7 +778,7 @@ afs_int32
 IsOwnerOf(struct ubik_trans *at, afs_int32 aid, afs_int32 gid)
 {
     /* returns 1 if aid is the owner of gid, 0 otherwise */
-    register afs_int32 code;
+    afs_int32 code;
     struct prentry tentry;
     afs_int32 loc;
 
@@ -797,7 +797,7 @@ afs_int32
 OwnerOf(struct ubik_trans *at, afs_int32 gid)
 {
     /* returns the owner of gid */
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 loc;
     struct prentry tentry;
 
@@ -818,7 +818,7 @@ IsAMemberOf(struct ubik_trans *at, afs_int32 aid, afs_int32 gid)
 #if !defined(SUPERGROUPS)
     struct prentry tentry;
     struct contentry centry;
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 i;
     afs_int32 loc;
 #endif
@@ -879,7 +879,7 @@ IsAMemberOfSG(struct ubik_trans *at, afs_int32 aid, afs_int32 gid, afs_int32 dep
     /* returns true if aid is a member of gid */
     struct prentry tentry;
     struct contentry centry;
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 i;
     afs_int32 loc;
 
index 6b85ef4063adc8270ecd9b152d8e267b8596cb96..e6b48b7f3488f0c64dfc9c946c439c2abb773a34 100644 (file)
@@ -142,7 +142,7 @@ osi_NetSend(osi_socket so, struct sockaddr_in *addr, struct iovec *dvec,
     struct socket *asocket = (struct socket *)so;
     struct uio u;
 #endif
-    register afs_int32 code;
+    afs_int32 code;
     int i;
     struct iovec iov[RX_MAXIOVECS];
     int haveGlock = ISAFS_GLOCK();
index 3a1d456d41a7f0964c6b9f3940e7d728e9989328..7579fdc292b02d4e311758fdfbf3092c2b563ea3 100644 (file)
@@ -122,7 +122,7 @@ int
 osi_NetSend(osi_socket asocket, struct sockaddr_in *addr, struct iovec *dvec,
            int nvecs, afs_int32 alength, int istack)
 {
-    register afs_int32 code;
+    afs_int32 code;
     int i;
     struct iovec iov[RX_MAXIOVECS];
     struct uio u;
@@ -174,7 +174,7 @@ static void rxk_fasttimo(void);
 /* start intercepting basic calls */
 rxk_init()
 {
-    register struct protosw *tpro, *last;
+    struct protosw *tpro, *last;
     if (rxk_initDone)
        return 0;
 
@@ -204,12 +204,12 @@ static void
 rxk_input(struct mbuf *am, int iphlen)
 {
     void (*tproc) ();
-    register unsigned short *tsp;
+    unsigned short *tsp;
     int hdr;
     struct udphdr *tu;
-    register struct ip *ti;
+    struct ip *ti;
     struct udpiphdr *tvu;
-    register int i;
+    int i;
     char *phandle;
     afs_int32 code;
     struct sockaddr_in taddr;
@@ -354,7 +354,7 @@ rxk_fasttimo(void)
  * sometimes */
 static
 trysblock(sb)
-     register struct sockbuf *sb;
+     struct sockbuf *sb;
 {
     AFS_STATCNT(trysblock);
     if (sb->sb_flags & SB_LOCK) {
@@ -370,11 +370,11 @@ int
 osi_NetSend(osi_socket asocket, struct sockaddr_in *addr, struct iovec *dvec,
            int nvec, afs_int32 asize, int istack)
 {
-    register struct mbuf *tm, *um;
-    register afs_int32 code;
+    struct mbuf *tm, *um;
+    afs_int32 code;
     int s;
     struct mbuf *top = 0;
-    register struct mbuf *m, **mp;
+    struct mbuf *m, **mp;
     int len;
     char *tdata;
     caddr_t tpa;
index aa5c144c73f1ace443b6da736e698020928e9e89..c797cfd239044276293c32939496dee0e1a554c1 100644 (file)
@@ -68,7 +68,7 @@ rxk_fasttimo(void)
 int
 rxk_init()
 {
-    register struct protosw *tpro, *last;
+    struct protosw *tpro, *last;
     if (rxk_initDone)
        return 0;
 
@@ -90,15 +90,15 @@ rxk_init()
 
 /* basic packet handling routine called at splnet from softnet loop */
 static struct mbuf *
-rxk_input(register struct mbuf *am, struct ifnet *aif)
+rxk_input(struct mbuf *am, struct ifnet *aif)
 {
     int (*tproc) ();
-    register unsigned short *tsp;
+    unsigned short *tsp;
     int hdr;
     struct udphdr *tu;
-    register struct ip *ti;
+    struct ip *ti;
     struct udpiphdr *tvu;
-    register int i;
+    int i;
     char *phandle;
     afs_int32 code;
     struct sockaddr_in taddr;
@@ -215,8 +215,8 @@ rxk_input(register struct mbuf *am, struct ifnet *aif)
 
 /* steal decl from sgi_65 */
 int
-osi_NetSend(register struct socket *asocket, struct sockaddr_in *addr,
-           struct iovec *dvec, int nvec, register afs_int32 asize,
+osi_NetSend(struct socket *asocket, struct sockaddr_in *addr,
+           struct iovec *dvec, int nvec, afs_int32 asize,
            int istack)
 {
     struct uio uio;
index 67d0a2ed78653ca5831f1d6972dd9b88a3e88c04..421609d3378bf2cbe2739acdb936770034f02968 100644 (file)
@@ -129,12 +129,12 @@ rxk_input(struct mbuf *am, struct ifnet *aif)
 #endif
 {
     void (*tproc) ();
-    register unsigned short *tsp;
+    unsigned short *tsp;
     int hdr;
     struct udphdr *tu;
-    register struct ip *ti;
+    struct ip *ti;
     struct udpiphdr *tvu;
-    register int i;
+    int i;
     char *phandle;
     struct sockaddr_in taddr;
     int tlen;
@@ -263,7 +263,7 @@ rxk_fasttimo(void)
 void
 rxk_init(void)
 {
-    register struct protosw *tpro, *last;
+    struct protosw *tpro, *last;
     if (rxk_initDone)
        return;
 
@@ -414,10 +414,10 @@ rxi_GetIFInfo()
 
 #ifdef AFS_SGI65_ENV
 osi_NetSend(asocket, addr, dvec, nvec, asize, istack)
-     register osi_socket *asocket;
+     osi_socket *asocket;
      struct iovec *dvec;
      int nvec;
-     register afs_int32 asize;
+     afs_int32 asize;
      struct sockaddr_in *addr;
      int istack;
 {
@@ -496,18 +496,18 @@ void (*afs_sbunlockp) (struct sockbuf *, int, struct socket *, int) =
  */
 int
 osi_NetSend(asocket, addr, dvec, nvec, asize, istack)
-     register struct socket *asocket;
+     struct socket *asocket;
      struct iovec *dvec;
      int nvec;
-     register afs_int32 asize;
+     afs_int32 asize;
      struct sockaddr_in *addr;
      int istack;
 {
-    register struct mbuf *tm, *um;
-    register afs_int32 code;
+    struct mbuf *tm, *um;
+    afs_int32 code;
     int s;
     struct mbuf *top = 0;
-    register struct mbuf *m, **mp;
+    struct mbuf *m, **mp;
     int len;
     char *tdata;
     caddr_t tpa;
index 97a153a6f8bd993a1f946c00fd28c8d11fda9055..2118e04832e9c421f693cc842983ea0a5a2973fa 100644 (file)
@@ -445,7 +445,7 @@ rxk_NewSocket(short aport)
 }
 
 int
-osi_FreeSocket(register osi_socket asocket)
+osi_FreeSocket(osi_socket asocket)
 {
     extern int rxk_ListenerPid;
     struct sonode *so = (struct sonode *)asocket;
@@ -907,7 +907,7 @@ rxk_NewSocket(short aport)
 }
 
 int
-osi_FreeSocket(register osi_socket *asocket)
+osi_FreeSocket(osi_socket *asocket)
 {
     extern int rxk_ListenerPid;
     TIUSER *udp_tiptr = (TIUSER *) asocket;
index d100127d95a5c0ca62809e7ed2f5100886327b9f..3d860e21c4c85fe5b7745df403509c02322ca0ce 100644 (file)
@@ -19,8 +19,8 @@
 #include "bulk.h"
 
 int
-bulk_SendFile(register int fd, register struct rx_call *call,
-             register struct stat *status)
+bulk_SendFile(int fd, struct rx_call *call,
+             struct stat *status)
 {
     char *buffer = (char *)0;
     int blockSize;
@@ -38,7 +38,7 @@ bulk_SendFile(register int fd, register struct rx_call *call,
     if (!xdr_long(&xdr, &length))
        error = BULK_ERROR;
     while (!error && length) {
-       register nbytes = (length > blockSize ? blockSize : length);
+       int nbytes = (length > blockSize ? blockSize : length);
        nbytes = read(fd, buffer, nbytes);
        if (nbytes <= 0) {
            fprintf(stderr, "File system read failed\n");
@@ -57,13 +57,13 @@ bulk_SendFile(register int fd, register struct rx_call *call,
 
 /* Copy the appropriate number of bytes from the call to fd.  The status should reflect the file's status coming into the routine and will reflect it going out of the routine, in the absence of errors */
 int
-bulk_ReceiveFile(register int fd, register struct rx_call *call,
-                register struct stat *status)
+bulk_ReceiveFile(int fd, struct rx_call *call,
+                struct stat *status)
 {
-    register char *buffer = (char *)0;
+    char *buffer = (char *)0;
     long length;
     XDR xdr;
-    register int blockSize;
+    int blockSize;
     long error = 0;
 
     xdrrx_create(&xdr, call, XDR_DECODE);
@@ -76,7 +76,7 @@ bulk_ReceiveFile(register int fd, register struct rx_call *call,
        return BULK_ERROR;
     }
     while (!error && length) {
-       register nbytes = (length > blockSize ? blockSize : length);
+       int nbytes = (length > blockSize ? blockSize : length);
        nbytes = rx_Read(call, buffer, nbytes);
        if (!nbytes)
            error = BULK_ERROR;
index 077df74a428b64cc8106d63087ad7ec415f2c589..d97249dd80b5773721d064f02406f6daa3ad66a5 100644 (file)
@@ -20,9 +20,9 @@
 
 int
 bulk_SendFile(fd, call, status)
-     register int fd;
-     register struct rx_call *call;
-     register struct stat *status;
+     int fd;
+     struct rx_call *call;
+     struct stat *status;
 {
     char *buffer = (char *)0;
     int blockSize;
@@ -40,7 +40,7 @@ bulk_SendFile(fd, call, status)
     if (!xdr_long(&xdr, &length))
        error = BULK_ERROR;
     while (!error && length) {
-       register nbytes = (length > blockSize ? blockSize : length);
+       int nbytes = (length > blockSize ? blockSize : length);
        nbytes = read(fd, buffer, nbytes);
        if (nbytes <= 0) {
            fprintf(stderr, "File system read failed\n");
@@ -60,14 +60,14 @@ bulk_SendFile(fd, call, status)
 /* Copy the appropriate number of bytes from the call to fd.  The status should reflect the file's status coming into the routine and will reflect it going out of the routine, in the absence of errors */
 int
 bulk_ReceiveFile(fd, call, status)
-     register int fd;
-     register struct rx_call *call;
-     register struct stat *status;
+     int fd;
+     struct rx_call *call;
+     struct stat *status;
 {
-    register char *buffer = (char *)0;
+    char *buffer = (char *)0;
     long length;
     XDR xdr;
-    register int blockSize;
+    int blockSize;
     long error = 0;
 
     xdrrx_create(&xdr, call, XDR_DECODE);
@@ -80,7 +80,7 @@ bulk_ReceiveFile(fd, call, status)
        return BULK_ERROR;
     }
     while (!error && length) {
-       register nbytes = (length > blockSize ? blockSize : length);
+       int nbytes = (length > blockSize ? blockSize : length);
        nbytes = rx_Read(call, buffer, nbytes);
        if (!nbytes)
            error = BULK_ERROR;
index 2aa918a98819ff014e839edcd61fe7f739835926..316e25f517eaa1d4718e333a2fc675fd9476c9bc 100644 (file)
@@ -44,7 +44,7 @@ main(argc, argv)
      char **argv;
 {
     struct rx_securityClass *null_securityObject;
-    register int i, nHosts = 0;
+    int i, nHosts = 0;
     struct {
        u_long ipaddr;
        char *name;
@@ -52,9 +52,9 @@ main(argc, argv)
     int arg[50];
     struct rx_connection *conns[50];
     int nSuccesses = 0;
-    register int trials = 1;
-    register int verbose = 0;
-    register int abort = 0;
+    int trials = 1;
+    int verbose = 0;
+    int abort = 0;
     int msec;
     struct clock startTime, endTime;
     int result;
index fda3f69f1535d26bff19b9c6502d8b56a25f5e01..cc84f13cd89812d71948a2b6573231a14a5be618 100644 (file)
@@ -56,7 +56,6 @@
 #undef kmem_free
 #undef mem_alloc
 #undef mem_free
-#undef register
 #endif /* AFS_OSF_ENV */
 #else /* !UKERNEL */
 #include "afs/sysincludes.h"
index 4982c7c64ef9b22f65c28b6ae9384a7892df4836..28009be3114fe366a3f03fecfaf86f82b2d0a798 100644 (file)
@@ -65,7 +65,6 @@
 #undef kmem_free
 #undef mem_alloc
 #undef mem_free
-#undef register
 #endif /* AFS_OSF_ENV */
 #else /* KERNEL */
 # include <sys/types.h>
index a9dcc2a5bd6d39aad076291c7c6a150c6e13ada5..b363aac5c042938277df02c7b1fcc483c155cd99 100644 (file)
@@ -64,8 +64,8 @@ ParseCmd(argc, argv)
      int argc;
      char **argv;
 {
-    register int i;
-    register struct hostent *th;
+    int i;
+    struct hostent *th;
     for (i = 1; i < argc; i++) {
        if (!strcmp(argv[i], "-port")) {
            port = atoi(argv[i + 1]);
index f40a88d4ea0871739f6f512b5b957c4944691a43..51091276590354dac857019ab93eacf8fc43708e 100644 (file)
@@ -42,7 +42,7 @@ ParseCmd(argc, argv)
      int argc;
      char **argv;
 {
-    register int i;
+    int i;
     for (i = 1; i < argc; i++) {
        if (!strcmp(argv[i], "-port")) {
            port = atoi(argv[i + 1]);
@@ -83,9 +83,9 @@ main(argc, argv)
      int argc;
      char **argv;
 {
-    register long code;
+    long code;
     static struct rx_securityClass *sc[3];     /* so other kernel procs can reference it */
-    register struct rx_service *tservice;
+    struct rx_service *tservice;
 
     port = htons(10000);
     if (ParseCmd(argc, argv) != 0) {
index 500888a6724d7512b17901b6e01659e02c48566a..e9e6642ec0a3a170ba2fcc2129fd457d2dce1d15 100644 (file)
@@ -37,7 +37,6 @@
 #   undef kmem_free
 #   undef mem_alloc
 #   undef mem_free
-#   undef register
 #  endif /* AFS_OSF_ENV */
 #  ifdef AFS_LINUX22_ENV
 #   ifndef quad_t
index 86f105b294f1536767bfa446b966225ea3d3016d..49ba390fd84b64a12056afcd2e37412ad5c1d4ed 100644 (file)
@@ -50,8 +50,8 @@
 static short
 PortNumber(char *aport)
 {
-    register int tc;
-    register short total;
+    int tc;
+    short total;
 
     total = 0;
     while ((tc = *aport++)) {
@@ -66,7 +66,7 @@ PortNumber(char *aport)
 static short
 PortName(char *aname)
 {
-    register struct servent *ts;
+    struct servent *ts;
     ts = getservbyname(aname, NULL);
     if (!ts)
        return -1;
@@ -76,7 +76,7 @@ PortName(char *aname)
 int
 MainCommand(struct cmd_syndesc *as, void *arock)
 {
-    register int i;
+    int i;
     osi_socket s;
     int j;
     struct sockaddr_in taddr;
@@ -84,7 +84,7 @@ MainCommand(struct cmd_syndesc *as, void *arock)
     struct in_addr hostAddr;
     short port;
     struct hostent *th;
-    register afs_int32 code;
+    afs_int32 code;
     int nodally;
     int allconns;
     int rxstats;
index 637301d94bfdf8884bc006e9bab016597531c8e3..751fdbba6c0b354e818d3ad82a1abbac59b60048 100644 (file)
@@ -226,7 +226,7 @@ psproc1(definition * defp, int callTconnF, char *type, char *prefix,
     if (callTconnF == 1) {
        f_print(fout, "\t/*IN */ struct rx_call *z_call");
     } else if (callTconnF == 2) {
-       f_print(fout, "\tregister struct ubik_client *aclient, afs_int32 aflags");
+       f_print(fout, "\tstruct ubik_client *aclient, afs_int32 aflags");
     } else {
        f_print(fout, "\t/*IN */ struct rx_connection *z_conn");
     }
index adf551f496a64e921a561a8d6f05fd69ec0bfe8f..750122aca348df0114d012e1c460546d1cfd71f3 100644 (file)
@@ -1116,9 +1116,9 @@ cs_ProcName_setup(definition * defp, char *procheader, int split_flag)
 
     if (ansic_flag) {
        if (split_flag) {
-           first_arg = "register struct rx_call *z_call";
+           first_arg = "struct rx_call *z_call";
        } else {
-           first_arg = "register struct rx_connection *z_conn";
+           first_arg = "struct rx_connection *z_conn";
        }
     } else {
        if (split_flag) {
@@ -1167,9 +1167,9 @@ cs_ProcParams_setup(definition * defp, int split_flag)
        return;
 
     if (!split_flag)
-       f_print(fout, "\tregister struct rx_connection *z_conn;\n");
+       f_print(fout, "\tstruct rx_connection *z_conn;\n");
     if (split_flag) {
-       f_print(fout, "\tregister struct rx_call *z_call;\n");
+       f_print(fout, "\tstruct rx_call *z_call;\n");
     }
     for (plist = defp->pc.plists; plist; plist = plist->next) {
        if (plist->component_kind == DEF_PARAM
@@ -1767,7 +1767,7 @@ ucs_ProcName_setup(definition * defp, char *procheader, int split_flag)
 
     if (!cflag) {
        if (ansic_flag) {
-           f_print(fout, "int %s%s%s%s(register struct ubik_client *aclient, afs_int32 aflags",
+           f_print(fout, "int %s%s%s%s(struct ubik_client *aclient, afs_int32 aflags",
                          procheader, prefix, PackagePrefix[PackageIndex],
                          defp->pc.proc_name);
        } else {
@@ -1810,7 +1810,7 @@ ucs_ProcParams_setup(definition * defp, int split_flag)
     if (ansic_flag)
        return;
 
-    f_print(fout, "\tregister struct ubik_client *aclient;\n\tafs_int32 aflags;\n");
+    f_print(fout, "\tstruct ubik_client *aclient;\n\tafs_int32 aflags;\n");
     for (plist = defp->pc.plists; plist; plist = plist->next) {
        if (plist->component_kind == DEF_PARAM
            && !(plist->pl.param_flag & PROCESSED_PARAM)) {
@@ -2071,7 +2071,7 @@ er_ProcProcsArray_setup(void)
 static void
 er_ProcMainBody_setup(void)
 {
-    f_print(fout, "int %s%sExecuteRequest(register struct rx_call *z_call)\n",
+    f_print(fout, "int %s%sExecuteRequest(struct rx_call *z_call)\n",
            prefix, PackagePrefix[PackageIndex]);
     f_print(fout, "{\n\tint op;\n");
     f_print(fout, "\tXDR z_xdrs;\n");
@@ -2093,7 +2093,7 @@ static void
 er_HeadofOldStyleProc_setup(void)
 {
     f_print(fout,
-           "\nint %s%sExecuteRequest (register struct rx_call *z_call)\n",
+           "\nint %s%sExecuteRequest (struct rx_call *z_call)\n",
            prefix,
            (combinepackages ? MasterPrefix : PackagePrefix[PackageIndex]));
     f_print(fout, "{\n");
index 49176f4287572af3c34d10b99f3e34c082be5ffa..15f62b84da665faaa695fe5cbf28331b230d80a8 100644 (file)
@@ -199,7 +199,7 @@ int
 rxkad_SetupEndpoint(struct rx_connection *aconnp,
                    struct rxkad_endpoint *aendpointp)
 {
-    register afs_int32 i;
+    afs_int32 i;
 
     aendpointp->cuid[0] = htonl(aconnp->epoch);
     i = aconnp->cid & RX_CIDMASK;
@@ -272,7 +272,7 @@ ComputeSum(struct rx_packet *apacket, fc_KeySchedule * aschedule,
           afs_int32 * aivec)
 {
     afs_uint32 word[2];
-    register afs_uint32 t;
+    afs_uint32 t;
 
     t = apacket->header.callNumber;
     word[0] = htonl(t);
index a3e27aaa102828fbe1ae680c0904e7b026d4bafc..d0dab8e121c65ab98f9b6e554df5b206adafc138 100644 (file)
@@ -41,7 +41,7 @@ static long
 GetServer(aname)
      IN char *aname;
 {
-    register struct hostent *th;
+    struct hostent *th;
     long addr;
 
     th = gethostbyname(aname);
index daf0e76364deece59dc6607fd9dd5ba61616b1db..607a94f1fff2ca7d4e86b544520a314ef8220d75 100644 (file)
  */
 
 extern afs_int32 des_cbc_encrypt(void * in, void * out,
-                                 register afs_int32 length,
+                                 afs_int32 length,
                                  des_key_schedule key, des_cblock *iv,
                                  int encrypt);
-extern int des_key_sched(register des_cblock k, des_key_schedule schedule);
+extern int des_key_sched(des_cblock k, des_key_schedule schedule);
 
 struct krb_convert {
     char *v4_str;
index b17a857e0febc6d7f9a19c2dbff77d26c0d1fea3..a1e35a204bff3db566c3e614d33ebc5ca8bc879f 100644 (file)
@@ -1639,7 +1639,7 @@ execute_scout(int a_numservers, struct cmd_item *a_srvname, int a_pkg)
 
     static char rn[] = "execute_scout";        /*Routine name */
     static char fullsrvname[128];      /*Full server name */
-    register int code;         /*Return code */
+    int code;          /*Return code */
     struct sockaddr_in *FSSktArray;    /*Server socket array */
     int sktbytes;              /*Num bytes in above */
     struct sockaddr_in *curr_skt;      /*Ptr to current socket */
@@ -2359,8 +2359,8 @@ int
 main(int argc, char **argv)
 {                              /*main */
 
-    register afs_int32 code;   /*Return code */
-    register struct cmd_syndesc *ts;   /*Ptr to cmd line syntax descriptor */
+    afs_int32 code;    /*Return code */
+    struct cmd_syndesc *ts;    /*Ptr to cmd line syntax descriptor */
 
 #ifdef AFS_AIX32_ENV
     /*
index ae28c64868b5d9f94026514c73832de705bfc33a..bcaf841b33b9d68a6d75d823bcdd51dec7591655 100644 (file)
@@ -46,7 +46,7 @@ herror(s)
      char *s;
 {
     struct iovec iov[4];
-    register struct iovec *v = iov;
+    struct iovec *v = iov;
 
     if (s && *s) {
        v->iov_base = s;
index ea8fa72b3881218e234f3d69ed6751ffd7c2a613..2ccee4add5a9d025631049598008c1036eb19122 100644 (file)
@@ -365,7 +365,7 @@ ruserok(rhost, superuser, ruser, luser)
     FILE *hostf;
     char fhost[MAXHOSTNAMELEN];
     int first = 1;
-    register char *sp, *p;
+    char *sp, *p;
     int baselen = -1;
     int suid, sgid;
     int group_list_size = -1;
@@ -446,7 +446,7 @@ _validuser(hostf, rhost, luser, ruser, baselen)
 {
     char *user;
     char ahost[MAXHOSTNAMELEN * 4];
-    register char *p;
+    char *p;
 #ifdef AFS_AIX32_ENV
 #include <arpa/nameser.h>
     int hostmatch, usermatch;
@@ -542,7 +542,7 @@ _checkhost(rhost, lhost, len)
     static char ldomain[MAXHOSTNAMELEN + 1];
     static char *domainp = NULL;
     static int nodomain = 0;
-    register char *cp;
+    char *cp;
 
 #ifdef AFS_AIX32_ENV
     struct hostent *hp;
index 87dbd66f537fa0bf35ff5cbf13df862c738ae0bf..5e1a6509310bd75bdb0d4e4e4c5a8eb7e66a6b68 100644 (file)
@@ -60,7 +60,7 @@ void afs_get_groups_from_pag(afs_uint32 pag, afs_uint32 * g0p, afs_uint32 * g1p)
 afs_int32
 GetAfsServerAddr(char *syscall)
 {
-    register struct hostent *th;
+    struct hostent *th;
 
     if (hostAddrLookup) {
        /* Take advantage of caching and assume that the remote host
index 61fe51ef5153b5a9fb529e9124a8f6d24749649d..87815270cc66fa54b8b41987ffa89b21b48212fe 100644 (file)
@@ -62,7 +62,7 @@ struct ClearToken {
 };
 
 char *
-RSkipLine(register char *astr)
+RSkipLine(char *astr)
 {
     while (*astr != '\n')
        astr++;
@@ -148,7 +148,7 @@ RAclToString(struct Acl *acl, char *mydata, int ntoh_conv)
 void
 RCleanAcl(struct Acl *aa)
 {
-    register struct AclEntry *te, *ne;
+    struct AclEntry *te, *ne;
 
     for (te = aa->pluslist; te; te = ne) {
        ne = te->next;
index 5cf2f77fa74e8f85fe7249284c4f1b39e6357f80..addc9af8af1b06a459427e47c53e78ef6f8bdda7 100644 (file)
@@ -94,7 +94,7 @@ SRMTSYS_SetPag(struct rx_call *call, clientcred *creds, afs_int32 *newpag,
 {
     afs_uint32 blob[PIOCTL_HEADER];
     struct ViceIoctl data;
-    register afs_int32 error;
+    afs_int32 error;
 
     *errornumber = 0;
     SETCLIENTCONTEXT(blob, rx_HostOf(call->conn->peer), creds->uid,
@@ -121,7 +121,7 @@ SRMTSYS_Pioctl(struct rx_call *call, clientcred *creds, char *path,
               afs_int32 cmd, afs_int32 follow, rmtbulk *InData, 
               rmtbulk *OutData, afs_int32 *errornumber)
 {
-    register afs_int32 error;
+    afs_int32 error;
     struct ViceIoctl data;
     char *pathp = path;
     afs_uint32 blob[PIOCTL_HEADER];
index 218a2a8830d6a02b3473b239b7b6554145a172a3..7d4c1deb32a78728baa49ded4450958fb177fca9 100644 (file)
@@ -2430,9 +2430,9 @@ int
 DirHash(char *string)
 {
     /* Hash a string to a number between 0 and NHASHENT. */
-    register unsigned char tc;
-    register int hval;
-    register int tval;
+    unsigned char tc;
+    int hval;
+    int tval;
     hval = 0;
     while ((tc = (*string++)) != '\0') {
        hval *= 173;
index b802c587864da9634b48d4cf552a54c5cc28c09e..5d5a4a7716dc5d1dbb2e12c360d19518a3885b7e 100644 (file)
@@ -176,7 +176,7 @@ main(int argc, char **argv)
 static int
 common_prolog(struct cmd_syndesc * as, struct state * state)
 {
-    register struct cmd_item *ti;
+    struct cmd_item *ti;
     VolumePackageOptions opts;
 
 #ifdef AFS_NT40_ENV
@@ -224,7 +224,7 @@ common_prolog(struct cmd_syndesc * as, struct state * state)
 static int
 common_salv_prolog(struct cmd_syndesc * as, struct state * state)
 {
-    register struct cmd_item *ti;
+    struct cmd_item *ti;
 
     state->sop = (struct salv_state *) calloc(1, sizeof(struct salv_state));
     assert(state->sop != NULL);
index da06441ffcc529a88ee0707daff53442f2856c08..8a5492f8d9fc0881a0c94490d76049b297a29f35 100644 (file)
@@ -88,7 +88,7 @@ static int updateUbikNetworkAddress(afs_uint32 ubik_host[UBIK_MAX_INTERFACE_ADDR
 
 /*! \brief procedure called from debug rpc call to get this module's state for debugging */
 void
-ubeacon_Debug(register struct ubik_debug *aparm)
+ubeacon_Debug(struct ubik_debug *aparm)
 {
     /* fill in beacon's state fields in the ubik_debug structure */
     aparm->syncSiteUntil = syncSiteUntil;
@@ -114,8 +114,8 @@ ubeacon_Debug(register struct ubik_debug *aparm)
 int
 ubeacon_AmSyncSite(void)
 {
-    register afs_int32 now;
-    register afs_int32 rcode;
+    afs_int32 now;
+    afs_int32 rcode;
 
     /* special case for fast startup */
     if (nServers == 1 && !amIClone) {
@@ -161,7 +161,7 @@ ubeacon_InitServerListByInfo(afs_uint32 ame, struct afsconf_cell *info,
  * \see ubeacon_InitServerListCommon()
  */
 int
-ubeacon_InitServerList(afs_uint32 ame, register afs_uint32 aservers[])
+ubeacon_InitServerList(afs_uint32 ame, afs_uint32 aservers[])
 {
     afs_int32 code;
 
@@ -198,12 +198,12 @@ ubeacon_InitServerList(afs_uint32 ame, register afs_uint32 aservers[])
  */
 int
 ubeacon_InitServerListCommon(afs_uint32 ame, struct afsconf_cell *info,
-                            char clones[], register afs_uint32 aservers[])
+                            char clones[], afs_uint32 aservers[])
 {
-    register struct ubik_server *ts;
+    struct ubik_server *ts;
     afs_int32 me = -1;
-    register afs_int32 servAddr;
-    register afs_int32 i, code;
+    afs_int32 servAddr;
+    afs_int32 i, code;
     afs_int32 magicHost;
     struct ubik_server *magicServer;
 
@@ -340,12 +340,12 @@ ubeacon_InitServerListCommon(afs_uint32 ame, struct afsconf_cell *info,
 void *
 ubeacon_Interact(void *dummy)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct timeval tt;
     struct rx_connection *connections[MAXSERVERS];
     struct ubik_server *servers[MAXSERVERS];
-    register afs_int32 i;
-    register struct ubik_server *ts;
+    afs_int32 i;
+    struct ubik_server *ts;
     afs_int32 temp, yesVotes, lastWakeupTime, oldestYesVote, syncsite;
     struct ubik_tid ttid;
     afs_int32 startTime;
index 78448b3708e054edfcf808d75c28a44cd34a33a6..32cf859c2457535c8f37f0e79133eb8a105fb914 100644 (file)
@@ -59,12 +59,12 @@ static char pbuffer[1024];
  * \warning Beware, when using this function, of the header in front of most files.
  */
 static int
-uphys_open(register struct ubik_dbase *adbase, afs_int32 afid)
+uphys_open(struct ubik_dbase *adbase, afs_int32 afid)
 {
-    register int fd;
+    int fd;
     static int initd;
-    register int i;
-    register struct fdcache *tfd;
+    int i;
+    struct fdcache *tfd;
     struct fdcache *bestfd;
 
     /* initialize package */
@@ -133,10 +133,10 @@ uphys_open(register struct ubik_dbase *adbase, afs_int32 afid)
  * \brief Close the file, maintaining ref count in cache structure.
  */
 int
-uphys_close(register int afd)
+uphys_close(int afd)
 {
-    register int i;
-    register struct fdcache *tfd;
+    int i;
+    struct fdcache *tfd;
 
     if (afd < 0)
        return EBADF;
@@ -166,9 +166,9 @@ uphys_close(register int afd)
 int
 uphys_stat(struct ubik_dbase *adbase, afs_int32 afid, struct ubik_stat *astat)
 {
-    register int fd;
+    int fd;
     struct stat tstat;
-    register afs_int32 code;
+    afs_int32 code;
 
     fd = uphys_open(adbase, afid);
     if (fd < 0)
@@ -188,11 +188,11 @@ uphys_stat(struct ubik_dbase *adbase, afs_int32 afid, struct ubik_stat *astat)
 }
 
 int
-uphys_read(register struct ubik_dbase *adbase, afs_int32 afile,
-          register void *abuffer, afs_int32 apos, afs_int32 alength)
+uphys_read(struct ubik_dbase *adbase, afs_int32 afile,
+          void *abuffer, afs_int32 apos, afs_int32 alength)
 {
-    register int fd;
-    register afs_int32 code;
+    int fd;
+    afs_int32 code;
 
     fd = uphys_open(adbase, afile);
     if (fd < 0)
@@ -208,11 +208,11 @@ uphys_read(register struct ubik_dbase *adbase, afs_int32 afile,
 }
 
 int
-uphys_write(register struct ubik_dbase *adbase, afs_int32 afile,
-           register void *abuffer, afs_int32 apos, afs_int32 alength)
+uphys_write(struct ubik_dbase *adbase, afs_int32 afile,
+           void *abuffer, afs_int32 apos, afs_int32 alength)
 {
-    register int fd;
-    register afs_int32 code;
+    int fd;
+    afs_int32 code;
     afs_int32 length;
 
     fd = uphys_open(adbase, afile);
@@ -232,10 +232,10 @@ uphys_write(register struct ubik_dbase *adbase, afs_int32 afile,
 }
 
 int
-uphys_truncate(register struct ubik_dbase *adbase, afs_int32 afile,
+uphys_truncate(struct ubik_dbase *adbase, afs_int32 afile,
               afs_int32 asize)
 {
-    register afs_int32 code, fd;
+    afs_int32 code, fd;
     fd = uphys_open(adbase, afile);
     if (fd < 0)
        return UNOENT;
@@ -250,7 +250,7 @@ uphys_truncate(register struct ubik_dbase *adbase, afs_int32 afile,
  * \todo Really should scan dir for data.
  */
 int
-uphys_getnfiles(register struct ubik_dbase *adbase)
+uphys_getnfiles(struct ubik_dbase *adbase)
 {
     /* really should scan dir for data */
     return 1;
@@ -260,11 +260,11 @@ uphys_getnfiles(register struct ubik_dbase *adbase)
  * \brief Get database label, with \p aversion in host order.
  */
 int
-uphys_getlabel(register struct ubik_dbase *adbase, afs_int32 afile,
+uphys_getlabel(struct ubik_dbase *adbase, afs_int32 afile,
               struct ubik_version *aversion)
 {
     struct ubik_hdr thdr;
-    register afs_int32 code, fd;
+    afs_int32 code, fd;
 
     fd = uphys_open(adbase, afile);
     if (fd < 0)
@@ -284,11 +284,11 @@ uphys_getlabel(register struct ubik_dbase *adbase, afs_int32 afile,
  * \brief Label database, with \p aversion in host order.
  */
 int
-uphys_setlabel(register struct ubik_dbase *adbase, afs_int32 afile,
+uphys_setlabel(struct ubik_dbase *adbase, afs_int32 afile,
               struct ubik_version *aversion)
 {
     struct ubik_hdr thdr;
-    register afs_int32 code, fd;
+    afs_int32 code, fd;
 
     fd = uphys_open(adbase, afile);
     if (fd < 0)
@@ -307,9 +307,9 @@ uphys_setlabel(register struct ubik_dbase *adbase, afs_int32 afile,
 }
 
 int
-uphys_sync(register struct ubik_dbase *adbase, afs_int32 afile)
+uphys_sync(struct ubik_dbase *adbase, afs_int32 afile)
 {
-    register afs_int32 code, fd;
+    afs_int32 code, fd;
     fd = uphys_open(adbase, afile);
     code = fsync(fd);
     uphys_close(fd);
@@ -317,10 +317,10 @@ uphys_sync(register struct ubik_dbase *adbase, afs_int32 afile)
 }
 
 void
-uphys_invalidate(register struct ubik_dbase *adbase, afs_int32 afid)
+uphys_invalidate(struct ubik_dbase *adbase, afs_int32 afid)
 {
-    register int i;
-    register struct fdcache *tfd;
+    int i;
+    struct fdcache *tfd;
 
     /* scan file descr cache */
     for (tfd = fdcache, i = 0; i < MAXFDCACHE; i++, tfd++) {
index 0e9e8507b4a9d4045de6cbdffbfec36b4b08589f..74cf0b9ad68d3edfaeaf558a98754adb29a3ba21 100644 (file)
@@ -108,9 +108,9 @@ urecovery_LostServer(void)
  * and we must have a currently-good sync site.
  */
 int
-urecovery_AllBetter(register struct ubik_dbase *adbase, int areadAny)
+urecovery_AllBetter(struct ubik_dbase *adbase, int areadAny)
 {
-    register afs_int32 rcode;
+    afs_int32 rcode;
 
     ubik_dprint_25("allbetter checking\n");
     rcode = 0;
@@ -145,7 +145,7 @@ urecovery_AllBetter(register struct ubik_dbase *adbase, int areadAny)
 int
 urecovery_AbortAll(struct ubik_dbase *adbase)
 {
-    register struct ubik_trans *tt;
+    struct ubik_trans *tt;
     for (tt = adbase->activeTrans; tt; tt = tt->next) {
        udisk_abort(tt);
     }
@@ -156,7 +156,7 @@ urecovery_AbortAll(struct ubik_dbase *adbase)
  * \brief this routine aborts the current remote transaction, if any, if the tid is wrong
  */
 int
-urecovery_CheckTid(register struct ubik_tid *atid)
+urecovery_CheckTid(struct ubik_tid *atid)
 {
     if (ubik_currentTrans) {
        /* there is remote write trans, see if we match, see if this
@@ -203,10 +203,10 @@ urecovery_CheckTid(register struct ubik_tid *atid)
  * the log.
  */
 static int
-ReplayLog(register struct ubik_dbase *adbase)
+ReplayLog(struct ubik_dbase *adbase)
 {
     afs_int32 opcode;
-    register afs_int32 code, tpos;
+    afs_int32 code, tpos;
     int logIsGood;
     afs_int32 len, thisSize, tfile, filePos;
     afs_int32 buffer[4];
@@ -368,9 +368,9 @@ ReplayLog(register struct ubik_dbase *adbase)
  * This routine is called after replaying the log; it reads the restored labels.
  */
 static int
-InitializeDB(register struct ubik_dbase *adbase)
+InitializeDB(struct ubik_dbase *adbase)
 {
-    register afs_int32 code;
+    afs_int32 code;
 
     code = (*adbase->getlabel) (adbase, 0, &adbase->version);
     if (code) {
@@ -399,9 +399,9 @@ InitializeDB(register struct ubik_dbase *adbase)
  * We replay the logs and then read the resulting file to figure out what version we've really got.
  */
 int
-urecovery_Initialize(register struct ubik_dbase *adbase)
+urecovery_Initialize(struct ubik_dbase *adbase)
 {
-    register afs_int32 code;
+    afs_int32 code;
 
     code = ReplayLog(adbase);
     if (code)
index 008f5f81ffae3dc57aee7771bd2893a196825d76..810399ba8924b684ab2227c8a99e1e18c23a7995 100644 (file)
@@ -47,9 +47,9 @@ static void printServerInfo(void);
 struct ubik_trans *ubik_currentTrans = 0;
 
 int
-ubik_CheckAuth(register struct rx_call *acall)
+ubik_CheckAuth(struct rx_call *acall)
 {
-    register afs_int32 code;
+    afs_int32 code;
     if (ubik_CheckRXSecurityProc) {
        code = (*ubik_CheckRXSecurityProc) (ubik_CheckRXSecurityRock, acall);
        return code;
@@ -62,9 +62,9 @@ ubik_CheckAuth(register struct rx_call *acall)
  * sync site is executing a write transaction.
  */
 afs_int32
-SDISK_Begin(register struct rx_call *rxcall, struct ubik_tid *atid)
+SDISK_Begin(struct rx_call *rxcall, struct ubik_tid *atid)
 {
-    register afs_int32 code;
+    afs_int32 code;
 
     if ((code = ubik_CheckAuth(rxcall))) {
        return code;
@@ -94,10 +94,10 @@ SDISK_Begin(register struct rx_call *rxcall, struct ubik_tid *atid)
 
 
 afs_int32
-SDISK_Commit(register struct rx_call *rxcall, struct ubik_tid *atid)
+SDISK_Commit(struct rx_call *rxcall, struct ubik_tid *atid)
 {
-    register afs_int32 code;
-    register struct ubik_dbase *dbase;
+    afs_int32 code;
+    struct ubik_dbase *dbase;
 
     if ((code = ubik_CheckAuth(rxcall))) {
        return code;
@@ -131,10 +131,10 @@ SDISK_Commit(register struct rx_call *rxcall, struct ubik_tid *atid)
 }
 
 afs_int32
-SDISK_ReleaseLocks(register struct rx_call *rxcall, struct ubik_tid *atid)
+SDISK_ReleaseLocks(struct rx_call *rxcall, struct ubik_tid *atid)
 {
-    register struct ubik_dbase *dbase;
-    register afs_int32 code;
+    struct ubik_dbase *dbase;
+    afs_int32 code;
 
     if ((code = ubik_CheckAuth(rxcall))) {
        return code;
@@ -170,10 +170,10 @@ SDISK_ReleaseLocks(register struct rx_call *rxcall, struct ubik_tid *atid)
 }
 
 afs_int32
-SDISK_Abort(register struct rx_call *rxcall, struct ubik_tid *atid)
+SDISK_Abort(struct rx_call *rxcall, struct ubik_tid *atid)
 {
-    register afs_int32 code;
-    register struct ubik_dbase *dbase;
+    afs_int32 code;
+    struct ubik_dbase *dbase;
 
     if ((code = ubik_CheckAuth(rxcall))) {
        return code;
@@ -211,11 +211,11 @@ SDISK_Abort(register struct rx_call *rxcall, struct ubik_tid *atid)
 
 /* apos and alen are not used */
 afs_int32
-SDISK_Lock(register struct rx_call *rxcall, struct ubik_tid *atid, 
+SDISK_Lock(struct rx_call *rxcall, struct ubik_tid *atid, 
           afs_int32 afile, afs_int32 apos, afs_int32 alen, afs_int32 atype)
 {      
-    register afs_int32 code;
-    register struct ubik_dbase *dbase;
+    afs_int32 code;
+    struct ubik_dbase *dbase;
     struct ubik_trans *ubik_thisTrans;
 
     if ((code = ubik_CheckAuth(rxcall))) {
@@ -259,7 +259,7 @@ SDISK_Lock(register struct rx_call *rxcall, struct ubik_tid *atid,
  * \brief Write a vector of data
  */
 afs_int32
-SDISK_WriteV(register struct rx_call *rxcall, struct ubik_tid *atid, 
+SDISK_WriteV(struct rx_call *rxcall, struct ubik_tid *atid, 
             iovec_wrt *io_vector, iovec_buf *io_buffer)
 {
     afs_int32 code, i, offset;
@@ -308,11 +308,11 @@ SDISK_WriteV(register struct rx_call *rxcall, struct ubik_tid *atid,
 }
 
 afs_int32
-SDISK_Write(register struct rx_call *rxcall, struct ubik_tid *atid, 
-           afs_int32 afile, afs_int32 apos, register bulkdata *adata)
+SDISK_Write(struct rx_call *rxcall, struct ubik_tid *atid, 
+           afs_int32 afile, afs_int32 apos, bulkdata *adata)
 {
-    register afs_int32 code;
-    register struct ubik_dbase *dbase;
+    afs_int32 code;
+    struct ubik_dbase *dbase;
 
     if ((code = ubik_CheckAuth(rxcall))) {
        return code;
@@ -340,11 +340,11 @@ SDISK_Write(register struct rx_call *rxcall, struct ubik_tid *atid,
 }
 
 afs_int32
-SDISK_Truncate(register struct rx_call *rxcall, struct ubik_tid *atid, 
+SDISK_Truncate(struct rx_call *rxcall, struct ubik_tid *atid, 
               afs_int32 afile, afs_int32 alen)
 {
-    register afs_int32 code;
-    register struct ubik_dbase *dbase;
+    afs_int32 code;
+    struct ubik_dbase *dbase;
 
     if ((code = ubik_CheckAuth(rxcall))) {
        return code;
@@ -370,10 +370,10 @@ SDISK_Truncate(register struct rx_call *rxcall, struct ubik_tid *atid,
 }
 
 afs_int32
-SDISK_GetVersion(register struct rx_call *rxcall, 
-                register struct ubik_version *aversion)
+SDISK_GetVersion(struct rx_call *rxcall, 
+                struct ubik_version *aversion)
 {
-    register afs_int32 code;
+    afs_int32 code;
 
     if ((code = ubik_CheckAuth(rxcall))) {
        return code;
@@ -407,12 +407,12 @@ SDISK_GetVersion(register struct rx_call *rxcall,
 }
 
 afs_int32
-SDISK_GetFile(register struct rx_call *rxcall, register afs_int32 file, 
+SDISK_GetFile(struct rx_call *rxcall, afs_int32 file, 
              struct ubik_version *version)
 {
-    register afs_int32 code;
-    register struct ubik_dbase *dbase;
-    register afs_int32 offset;
+    afs_int32 code;
+    struct ubik_dbase *dbase;
+    afs_int32 offset;
     struct ubik_stat ubikstat;
     char tbuffer[256];
     afs_int32 tlen;
@@ -466,15 +466,15 @@ SDISK_GetFile(register struct rx_call *rxcall, register afs_int32 file,
 }
 
 afs_int32
-SDISK_SendFile(register struct rx_call *rxcall, afs_int32 file, 
+SDISK_SendFile(struct rx_call *rxcall, afs_int32 file, 
               afs_int32 length, struct ubik_version *avers)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct ubik_dbase *dbase = NULL;
     char tbuffer[1024];
     afs_int32 offset;
     struct ubik_version tversion;
-    register int tlen;
+    int tlen;
     struct rx_peer *tpeer;
     struct rx_connection *tconn;
     afs_uint32 otherHost = 0;
@@ -637,7 +637,7 @@ SDISK_SendFile(register struct rx_call *rxcall, afs_int32 file,
 
 
 afs_int32
-SDISK_Probe(register struct rx_call *rxcall)
+SDISK_Probe(struct rx_call *rxcall)
 {
     return 0;
 }
@@ -649,7 +649,7 @@ SDISK_Probe(register struct rx_call *rxcall)
  * \return zero on success, else 1.
  */
 afs_int32
-SDISK_UpdateInterfaceAddr(register struct rx_call *rxcall, 
+SDISK_UpdateInterfaceAddr(struct rx_call *rxcall, 
                          UbikInterfaceAddr *inAddr, 
                          UbikInterfaceAddr *outAddr)
 {
index b75ab6d4abe6a6c70eadf24817189a71af043529..438ad699375c08c3e8624d1d70ff7f8501d4d1a5 100644 (file)
@@ -86,7 +86,7 @@ void *ubik_SRXSecurityRock;
 struct ubik_server *ubik_servers;
 short ubik_callPortal;
 
-static int BeginTrans(register struct ubik_dbase *dbase, afs_int32 transMode,
+static int BeginTrans(struct ubik_dbase *dbase, afs_int32 transMode,
                      struct ubik_trans **transPtr, int readAny);
 
 struct rx_securityClass *ubik_sc[3];
@@ -109,10 +109,10 @@ struct rx_securityClass *ubik_sc[3];
  */
 afs_int32
 ContactQuorum_NoArguments(afs_int32 (*proc)(struct rx_connection *, ubik_tid *),
-                         register struct ubik_trans *atrans, int aflags)
+                         struct ubik_trans *atrans, int aflags)
 {
-    register struct ubik_server *ts;
-    register afs_int32 code;
+    struct ubik_server *ts;
+    afs_int32 code;
     afs_int32 rcode, okcalls;
 
     rcode = 0;
@@ -146,11 +146,11 @@ ContactQuorum_NoArguments(afs_int32 (*proc)(struct rx_connection *, ubik_tid *),
 }
 
 afs_int32
-ContactQuorum_DISK_Lock(register struct ubik_trans *atrans, int aflags,afs_int32 file,
+ContactQuorum_DISK_Lock(struct ubik_trans *atrans, int aflags,afs_int32 file,
                        afs_int32 position, afs_int32 length, afs_int32 type)
 {
-    register struct ubik_server *ts;
-    register afs_int32 code;
+    struct ubik_server *ts;
+    afs_int32 code;
     afs_int32 rcode, okcalls;
 
     rcode = 0;
@@ -185,11 +185,11 @@ ContactQuorum_DISK_Lock(register struct ubik_trans *atrans, int aflags,afs_int32
 }
 
 afs_int32
-ContactQuorum_DISK_Write(register struct ubik_trans *atrans, int aflags,
+ContactQuorum_DISK_Write(struct ubik_trans *atrans, int aflags,
                         afs_int32 file, afs_int32 position, bulkdata *data)
 {
-    register struct ubik_server *ts;
-    register afs_int32 code;
+    struct ubik_server *ts;
+    afs_int32 code;
     afs_int32 rcode, okcalls;
 
     rcode = 0;
@@ -223,11 +223,11 @@ ContactQuorum_DISK_Write(register struct ubik_trans *atrans, int aflags,
 }
 
 afs_int32
-ContactQuorum_DISK_Truncate(register struct ubik_trans *atrans, int aflags,
+ContactQuorum_DISK_Truncate(struct ubik_trans *atrans, int aflags,
                            afs_int32 file, afs_int32 length)
 {
-    register struct ubik_server *ts;
-    register afs_int32 code;
+    struct ubik_server *ts;
+    afs_int32 code;
     afs_int32 rcode, okcalls;
 
     rcode = 0;
@@ -261,11 +261,11 @@ ContactQuorum_DISK_Truncate(register struct ubik_trans *atrans, int aflags,
 }
 
 afs_int32
-ContactQuorum_DISK_WriteV(register struct ubik_trans *atrans, int aflags,
+ContactQuorum_DISK_WriteV(struct ubik_trans *atrans, int aflags,
                          iovec_wrt * io_vector, iovec_buf *io_buffer)
 {
-    register struct ubik_server *ts;
-    register afs_int32 code;
+    struct ubik_server *ts;
+    afs_int32 code;
     afs_int32 rcode, okcalls;
 
     rcode = 0;
@@ -330,12 +330,12 @@ ContactQuorum_DISK_WriteV(register struct ubik_trans *atrans, int aflags,
 }
 
 afs_int32
-ContactQuorum_DISK_SetVersion(register struct ubik_trans *atrans, int aflags, 
+ContactQuorum_DISK_SetVersion(struct ubik_trans *atrans, int aflags, 
                              ubik_version *OldVersion,
                              ubik_version *NewVersion)
 {
-    register struct ubik_server *ts;
-    register afs_int32 code;
+    struct ubik_server *ts;
+    afs_int32 code;
     afs_int32 rcode, okcalls;
 
     rcode = 0;
@@ -388,8 +388,8 @@ ubik_ServerInitCommon(afs_uint32 myHost, short myPort,
                      afs_uint32 serverList[], const char *pathName,
                      struct ubik_dbase **dbase)
 {
-    register struct ubik_dbase *tdb;
-    register afs_int32 code;
+    struct ubik_dbase *tdb;
+    afs_int32 code;
 #ifdef AFS_PTHREAD_ENV
     pthread_t rxServerThread;        /* pthread variables */
     pthread_t ubeacon_InteractThread;
@@ -608,12 +608,12 @@ ubik_ServerInit(afs_uint32 myHost, short myPort, afs_uint32 serverList[],
  * \note We can only begin transaction when we have an up-to-date database.
  */
 static int
-BeginTrans(register struct ubik_dbase *dbase, afs_int32 transMode,
+BeginTrans(struct ubik_dbase *dbase, afs_int32 transMode,
           struct ubik_trans **transPtr, int readAny)
 {
     struct ubik_trans *jt;
-    register struct ubik_trans *tt;
-    register afs_int32 code;
+    struct ubik_trans *tt;
+    afs_int32 code;
 #if defined(UBIK_PAUSE)
     int count;
 #endif /* UBIK_PAUSE */
@@ -723,7 +723,7 @@ BeginTrans(register struct ubik_dbase *dbase, afs_int32 transMode,
  * \see BeginTrans()
  */
 int
-ubik_BeginTrans(register struct ubik_dbase *dbase, afs_int32 transMode,
+ubik_BeginTrans(struct ubik_dbase *dbase, afs_int32 transMode,
                struct ubik_trans **transPtr)
 {
     return BeginTrans(dbase, transMode, transPtr, 0);
@@ -733,7 +733,7 @@ ubik_BeginTrans(register struct ubik_dbase *dbase, afs_int32 transMode,
  * \see BeginTrans()
  */
 int
-ubik_BeginTransReadAny(register struct ubik_dbase *dbase, afs_int32 transMode,
+ubik_BeginTransReadAny(struct ubik_dbase *dbase, afs_int32 transMode,
                       struct ubik_trans **transPtr)
 {
     return BeginTrans(dbase, transMode, transPtr, 1);
@@ -743,11 +743,11 @@ ubik_BeginTransReadAny(register struct ubik_dbase *dbase, afs_int32 transMode,
  * \brief This routine ends a read or write transaction by aborting it.
  */
 int
-ubik_AbortTrans(register struct ubik_trans *transPtr)
+ubik_AbortTrans(struct ubik_trans *transPtr)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 code2;
-    register struct ubik_dbase *dbase;
+    struct ubik_dbase *dbase;
 
     dbase = transPtr->dbase;
 
@@ -799,14 +799,14 @@ ubik_AbortTrans(register struct ubik_trans *transPtr)
  * \return an error code.
  */
 int
-ubik_EndTrans(register struct ubik_trans *transPtr)
+ubik_EndTrans(struct ubik_trans *transPtr)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct timeval tv;
     afs_int32 realStart;
-    register struct ubik_server *ts;
+    struct ubik_server *ts;
     afs_int32 now;
-    register struct ubik_dbase *dbase;
+    struct ubik_dbase *dbase;
 
     if (transPtr->type == UBIK_WRITETRANS) {
        code = ubik_Flush(transPtr);
@@ -935,10 +935,10 @@ ubik_EndTrans(register struct ubik_trans *transPtr)
  * \note *length is an INOUT parameter: at the start it represents the size of the buffer, and when done, it contains the number of bytes actually transferred.
  */
 int
-ubik_Read(register struct ubik_trans *transPtr, void *buffer,
+ubik_Read(struct ubik_trans *transPtr, void *buffer,
          afs_int32 length)
 {
-    register afs_int32 code;
+    afs_int32 code;
 
     /* reads are easy to do: handle locally */
     DBHOLD(transPtr->dbase);
@@ -1002,7 +1002,7 @@ ubik_Flush(struct ubik_trans *transPtr)
 }
 
 int
-ubik_Write(register struct ubik_trans *transPtr, void *vbuffer,
+ubik_Write(struct ubik_trans *transPtr, void *vbuffer,
           afs_int32 length)
 {
     struct ubik_iovec *iovec;
@@ -1096,10 +1096,10 @@ ubik_Write(register struct ubik_trans *transPtr, void *vbuffer,
  * and a byte position relative to the specified file \p position.
  */
 int
-ubik_Seek(register struct ubik_trans *transPtr, afs_int32 fileid,
+ubik_Seek(struct ubik_trans *transPtr, afs_int32 fileid,
          afs_int32 position)
 {
-    register afs_int32 code;
+    afs_int32 code;
 
     DBHOLD(transPtr->dbase);
     if (!urecovery_AllBetter(transPtr->dbase, transPtr->flags & TRREADANY)) {
@@ -1118,7 +1118,7 @@ ubik_Seek(register struct ubik_trans *transPtr, afs_int32 fileid,
  * transaction in \p fileid and \p position.
  */
 int
-ubik_Tell(register struct ubik_trans *transPtr, afs_int32 * fileid,
+ubik_Tell(struct ubik_trans *transPtr, afs_int32 * fileid,
          afs_int32 * position)
 {
     DBHOLD(transPtr->dbase);
@@ -1133,7 +1133,7 @@ ubik_Tell(register struct ubik_trans *transPtr, afs_int32 * fileid,
  * bytes, if length is less than the file's current size.
  */
 int
-ubik_Truncate(register struct ubik_trans *transPtr, afs_int32 length)
+ubik_Truncate(struct ubik_trans *transPtr, afs_int32 length)
 {
     afs_int32 code, error = 0;
 
@@ -1220,8 +1220,8 @@ ubik_SetLock(struct ubik_trans *atrans, afs_int32 apos, afs_int32 alen,
  * \brief utility to wait for a version # to change
  */
 int
-ubik_WaitVersion(register struct ubik_dbase *adatabase,
-                register struct ubik_version *aversion)
+ubik_WaitVersion(struct ubik_dbase *adatabase,
+                struct ubik_version *aversion)
 {
     DBHOLD(adatabase);
     while (1) {
@@ -1244,8 +1244,8 @@ ubik_WaitVersion(register struct ubik_dbase *adatabase,
  * \brief utility to get the version of the dbase a transaction is dealing with
  */
 int
-ubik_GetVersion(register struct ubik_trans *atrans,
-               register struct ubik_version *avers)
+ubik_GetVersion(struct ubik_trans *atrans,
+               struct ubik_version *avers)
 {
     *avers = atrans->dbase->version;
     return 0;
@@ -1260,7 +1260,7 @@ ubik_GetVersion(register struct ubik_trans *atrans,
  * Ubik database, it should invalidate that cache.
  */
 static int
-ubik_CacheUpdate(register struct ubik_trans *atrans)
+ubik_CacheUpdate(struct ubik_trans *atrans)
 {
     if (!(atrans && atrans->dbase))
        return -1;
index 08a4a23ada4b8c224bbd22ff7a5a0b18fff52f11..951e4190c8bb1679f53ddfb29e94d12d41e0b61e 100644 (file)
@@ -352,34 +352,34 @@ extern int ubikPrimaryAddrOnly;   /* use only primary address */
 /* this extern gives the sync site's db version, with epoch of 0 if none yet */
 
 /* phys.c */
-extern int uphys_close(register int afd);
+extern int uphys_close(int afd);
 extern int uphys_stat(struct ubik_dbase *adbase, afs_int32 afid,
                      struct ubik_stat *astat);
-extern int uphys_read(register struct ubik_dbase *adbase, afs_int32 afile,
-                     register void *abuffer, afs_int32 apos,
+extern int uphys_read(struct ubik_dbase *adbase, afs_int32 afile,
+                     void *abuffer, afs_int32 apos,
                      afs_int32 alength);
-extern int uphys_write(register struct ubik_dbase *adbase, afs_int32 afile,
-                      register void *abuffer, afs_int32 apos,
+extern int uphys_write(struct ubik_dbase *adbase, afs_int32 afile,
+                      void *abuffer, afs_int32 apos,
                       afs_int32 alength);
-extern int uphys_truncate(register struct ubik_dbase *adbase, afs_int32 afile,
+extern int uphys_truncate(struct ubik_dbase *adbase, afs_int32 afile,
                          afs_int32 asize);
-extern int uphys_getnfiles(register struct ubik_dbase *adbase);
-extern int uphys_getlabel(register struct ubik_dbase *adbase, afs_int32 afile,
+extern int uphys_getnfiles(struct ubik_dbase *adbase);
+extern int uphys_getlabel(struct ubik_dbase *adbase, afs_int32 afile,
                          struct ubik_version *aversion);
-extern int uphys_setlabel(register struct ubik_dbase *adbase, afs_int32 afile,
+extern int uphys_setlabel(struct ubik_dbase *adbase, afs_int32 afile,
                          struct ubik_version *aversion);
-extern int uphys_sync(register struct ubik_dbase *adbase, afs_int32 afile);
-extern void uphys_invalidate(register struct ubik_dbase *adbase, 
+extern int uphys_sync(struct ubik_dbase *adbase, afs_int32 afile);
+extern void uphys_invalidate(struct ubik_dbase *adbase, 
                             afs_int32 afid);
 
 /*! \name recovery.c */
 extern int urecovery_ResetState(void);
 extern int urecovery_LostServer(void);
-extern int urecovery_AllBetter(register struct ubik_dbase *adbase,
+extern int urecovery_AllBetter(struct ubik_dbase *adbase,
                               int areadAny);
 extern int urecovery_AbortAll(struct ubik_dbase *adbase);
-extern int urecovery_CheckTid(register struct ubik_tid *atid);
-extern int urecovery_Initialize(register struct ubik_dbase *adbase);
+extern int urecovery_CheckTid(struct ubik_tid *atid);
+extern int urecovery_Initialize(struct ubik_dbase *adbase);
 extern void *urecovery_Interact(void *);
 extern int DoProbe(struct ubik_server *server);
 /*\}*/
@@ -488,31 +488,31 @@ extern int ubik_ServerInitByInfo(afs_uint32 myHost, short myPort,
 extern int ubik_ServerInit(afs_uint32 myHost, short myPort,
                           afs_uint32 serverList[],
                           const char *pathName, struct ubik_dbase **dbase);
-extern int ubik_BeginTrans(register struct ubik_dbase *dbase,
+extern int ubik_BeginTrans(struct ubik_dbase *dbase,
                           afs_int32 transMode, struct ubik_trans **transPtr);
-extern int ubik_BeginTransReadAny(register struct ubik_dbase *dbase,
+extern int ubik_BeginTransReadAny(struct ubik_dbase *dbase,
                                  afs_int32 transMode,
                                  struct ubik_trans **transPtr);
-extern int ubik_AbortTrans(register struct ubik_trans *transPtr);             
+extern int ubik_AbortTrans(struct ubik_trans *transPtr);             
 
-extern int ubik_EndTrans(register struct ubik_trans *transPtr);
-extern int ubik_Read(register struct ubik_trans *transPtr, void *buffer,
+extern int ubik_EndTrans(struct ubik_trans *transPtr);
+extern int ubik_Read(struct ubik_trans *transPtr, void *buffer,
                     afs_int32 length);
 extern int ubik_Flush(struct ubik_trans *transPtr);
-extern int ubik_Write(register struct ubik_trans *transPtr, void *buffer,
+extern int ubik_Write(struct ubik_trans *transPtr, void *buffer,
                      afs_int32 length);                        
-extern int ubik_Seek(register struct ubik_trans *transPtr, afs_int32 fileid,
+extern int ubik_Seek(struct ubik_trans *transPtr, afs_int32 fileid,
                     afs_int32 position);
-extern int ubik_Tell(register struct ubik_trans *transPtr, afs_int32 * fileid,
+extern int ubik_Tell(struct ubik_trans *transPtr, afs_int32 * fileid,
                     afs_int32 * position);
-extern int ubik_Truncate(register struct ubik_trans *transPtr, 
+extern int ubik_Truncate(struct ubik_trans *transPtr, 
                         afs_int32 length);
 extern int ubik_SetLock(struct ubik_trans *atrans, afs_int32 apos, 
                        afs_int32 alen, int atype);
-extern int ubik_WaitVersion(register struct ubik_dbase *adatabase,
-                           register struct ubik_version *aversion);
-extern int ubik_GetVersion(register struct ubik_trans *atrans,
-                          register struct ubik_version *avers);
+extern int ubik_WaitVersion(struct ubik_dbase *adatabase,
+                           struct ubik_version *aversion);
+extern int ubik_GetVersion(struct ubik_trans *atrans,
+                          struct ubik_version *avers);
 extern int ubik_CheckCache(struct ubik_trans *atrans,
                            ubik_updatecache_func check,
                            void *rock);
@@ -522,7 +522,7 @@ extern int ubik_CheckCache(struct ubik_trans *atrans,
 
 extern int ubik_ParseClientList(int argc, char **argv, afs_uint32 * aothers);
 extern unsigned int afs_random(void);
-extern int ubik_ClientInit(register struct rx_connection **serverconns,
+extern int ubik_ClientInit(struct rx_connection **serverconns,
                           struct ubik_client **aclient);
 extern afs_int32 ubik_ClientDestroy(struct ubik_client *aclient);
 extern struct rx_connection *ubik_RefreshConn(struct rx_connection *tc);
@@ -532,7 +532,7 @@ extern afs_int32 ubik_CallIter(int (*aproc) (), struct ubik_client *aclient,
                               long p3, long p4, long p5, long p6, long p7,
                               long p8, long p9, long p10, long p11, long p12,
                               long p13, long p14, long p15, long p16);
-extern afs_int32 ubik_Call_New(int (*aproc) (), register struct ubik_client
+extern afs_int32 ubik_Call_New(int (*aproc) (), struct ubik_client
                               *aclient, afs_int32 aflags, long p1, long p2,
                               long p3, long p4, long p5, long p6, long p7,
                               long p8, long p9, long p10, long p11, long p12,
index 59633c29d3c47a262cde9d6c7bd9cd7be17b8d8a..eb3191b12868f23ee16976d5ea16af4738a8bab9 100644 (file)
@@ -49,9 +49,9 @@ short ubik_initializationState;       /*!< initial state is zero */
 int
 ubik_ParseClientList(int argc, char **argv, afs_uint32 * aothers)
 {
-    register afs_int32 i;
-    register char *tp;
-    register struct hostent *th;
+    afs_int32 i;
+    char *tp;
+    struct hostent *th;
     afs_uint32 temp;
     afs_int32 counter;
     int inServer;
@@ -194,13 +194,13 @@ afs_randomMod15(void)
 #endif /* abs */
 #define abs(a) ((a) < 0 ? -1*(a) : (a))
 int
-ubik_ClientInit(register struct rx_connection **serverconns,
+ubik_ClientInit(struct rx_connection **serverconns,
                struct ubik_client **aclient)
 {
     int i, j;
     int count;
     int offset;
-    register struct ubik_client *tc;
+    struct ubik_client *tc;
 
     initialize_U_error_table();
 
@@ -275,7 +275,7 @@ ubik_ClientInit(register struct rx_connection **serverconns,
 afs_int32
 ubik_ClientDestroy(struct ubik_client * aclient)
 {
-    register int c;
+    int c;
 
     if (aclient == 0)
        return 0;
@@ -367,7 +367,7 @@ static int synccount = 0;
  * operation won't work until you find a sync site
  */
 static int
-try_GetSyncSite(register struct ubik_client *aclient, afs_int32 apos)
+try_GetSyncSite(struct ubik_client *aclient, afs_int32 apos)
 {
     struct rx_peer *rxp;
     afs_int32 code;
@@ -423,12 +423,12 @@ try_GetSyncSite(register struct ubik_client *aclient, afs_int32 apos)
  * been locked.
  */
 static afs_int32
-CallIter(int (*aproc) (), register struct ubik_client *aclient, 
+CallIter(int (*aproc) (), struct ubik_client *aclient, 
         afs_int32 aflags, int *apos, long p1, long p2, long p3, long p4, 
         long p5, long p6, long p7, long p8, long p9, long p10, long p11, 
         long p12, long p13, long p14, long p15, long p16, int needlock)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct rx_connection *tc;
     short origLevel;
 
@@ -512,7 +512,7 @@ ubik_CallIter(int (*aproc) (), struct ubik_client *aclient,
  * \todo In the future, we should also put in a protocol to find the sync site.
  */
 afs_int32
-ubik_Call_New(int (*aproc) (), register struct ubik_client *aclient, 
+ubik_Call_New(int (*aproc) (), struct ubik_client *aclient, 
              afs_int32 aflags, long p1, long p2, long p3, long p4, long p5, 
              long p6, long p7, long p8, long p9, long p10, long p11, 
              long p12, long p13, long p14, long p15, long p16)
@@ -573,7 +573,7 @@ ubik_Call_New(int (*aproc) (), register struct ubik_client *aclient,
  * \todo In the future, we should also put in a protocol to find the sync site.
  */
 afs_int32
-ubik_Call(int (*aproc) (), register struct ubik_client *aclient,
+ubik_Call(int (*aproc) (), struct ubik_client *aclient,
          afs_int32 aflags, long p1, long p2, long p3, long p4,
          long p5, long p6, long p7, long p8, long p9, long p10,
          long p11, long p12, long p13, long p14, long p15, long p16)
index a354d99bd7fba0153fe5d9122fb79089a248e918..81ccb97d9a03c617635fe3e4ecbc5d33e54afc71 100644 (file)
@@ -39,9 +39,9 @@ int
 ubik_ParseServerList(int argc, char **argv, afs_uint32 *ahost,
                     afs_uint32 *aothers)
 {
-    register afs_int32 i;
-    register char *tp;
-    register struct hostent *th;
+    afs_int32 i;
+    char *tp;
+    struct hostent *th;
     char hostname[64];
     afs_uint32 myHost, temp;
     afs_int32 counter;
index c1897a35a9a560ecab3dae9f49a15dc551aaf69f..d384654554658bc055bac4df83760d281876516f 100644 (file)
 static_inline int afs_cast_time_t(time_t d) { return (int) d; }
 
 static short
-PortNumber(register char *aport)
+PortNumber(char *aport)
 {
-    register int tc;
-    register afs_int32 total;
+    int tc;
+    afs_int32 total;
 
     total = 0;
     while ((tc = *aport++)) {
@@ -88,7 +88,7 @@ CommandProc(struct cmd_syndesc *as, void *arock)
 {
     char *hostName, *portName, *times;
     afs_int32 hostAddr;
-    register afs_int32 i, j, code;
+    afs_int32 i, j, code;
     short port;
     int int32p;
     time_t now, then, diff, newtime;
index 44f85fa6c26553023679fc035b28f7250b743aaa..897149504be2203316c72907eb0e77c5026387f1 100644 (file)
 int
 main(int argc, char **argv)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct ubik_client *cstruct = 0;
     afs_uint32 serverList[MAXSERVERS];
     struct rx_connection *serverconns[MAXSERVERS];
     struct rx_securityClass *sc;
-    register afs_int32 i;
+    afs_int32 i;
     afs_int32 temp;
 
     if (argc == 1) {
index 2ca01501f0212539bc83ac7816f40ed80674b78a..ba16fb10e0b676f4cf4026ea3784d19c50a36342 100644 (file)
@@ -277,7 +277,7 @@ SSAMPLE_Test(struct rx_call *call)
 int
 main(int argc, char **argv)
 {
-    register afs_int32 code, i;
+    afs_int32 code, i;
     afs_uint32 serverList[MAXSERVERS];
     afs_uint32 myHost;
     struct rx_service *tservice;
index c8c997e37126095de152000cffda4cb780204037..2d525c3ea9393b04556258ac5dc4cd5d63f4c480 100644 (file)
@@ -131,7 +131,7 @@ struct ubik_tid ubik_dbTid; /*!< sync site's tid, or 0 if none */
 int
 uvote_ShouldIRun(void)
 {
-    register afs_int32 now;
+    afs_int32 now;
 
     now = FT_ApproxTime();
     if (BIGTIME + ubik_lastYesTime < now)
@@ -163,8 +163,8 @@ uvote_ShouldIRun(void)
 afs_int32
 uvote_GetSyncSite(void)
 {
-    register afs_int32 now;
-    register afs_int32 code;
+    afs_int32 now;
+    afs_int32 code;
 
     if (!lastYesState)
        code = 0;
@@ -187,12 +187,12 @@ uvote_GetSyncSite(void)
  * non-zero.
  */
 afs_int32
-SVOTE_Beacon(register struct rx_call * rxcall, afs_int32 astate,
+SVOTE_Beacon(struct rx_call * rxcall, afs_int32 astate,
             afs_int32 astart, struct ubik_version * avers,
             struct ubik_tid * atid)
 {
-    register afs_int32 otherHost;
-    register afs_int32 now;
+    afs_int32 otherHost;
+    afs_int32 now;
     afs_int32 vote;
     struct rx_connection *aconn;
     struct rx_peer *rxp;
@@ -351,7 +351,7 @@ SVOTE_Beacon(register struct rx_call * rxcall, afs_int32 astate,
  */
 afs_int32
 SVOTE_SDebug(struct rx_call * rxcall, afs_int32 awhich,
-            register struct ubik_sdebug * aparm)
+            struct ubik_sdebug * aparm)
 {
     afs_int32 code, isClone;
     code = SVOTE_XSDebug(rxcall, awhich, aparm, &isClone);
@@ -360,10 +360,10 @@ SVOTE_SDebug(struct rx_call * rxcall, afs_int32 awhich,
 
 afs_int32
 SVOTE_XSDebug(struct rx_call * rxcall, afs_int32 awhich,
-             register struct ubik_sdebug * aparm, afs_int32 * isclone)
+             struct ubik_sdebug * aparm, afs_int32 * isclone)
 {
-    register struct ubik_server *ts;
-    register int i;
+    struct ubik_server *ts;
+    int i;
     for (ts = ubik_servers; ts; ts = ts->next) {
        if (awhich-- == 0) {
            /* we're done */
@@ -386,7 +386,7 @@ SVOTE_XSDebug(struct rx_call * rxcall, afs_int32 awhich,
 }
 
 afs_int32
-SVOTE_XDebug(struct rx_call * rxcall, register struct ubik_debug * aparm,
+SVOTE_XDebug(struct rx_call * rxcall, struct ubik_debug * aparm,
             afs_int32 * isclone)
 {
     afs_int32 code;
@@ -400,7 +400,7 @@ SVOTE_XDebug(struct rx_call * rxcall, register struct ubik_debug * aparm,
  * \brief Handle basic network debug command.  This is the global state dumper.
  */
 afs_int32
-SVOTE_Debug(struct rx_call * rxcall, register struct ubik_debug * aparm)
+SVOTE_Debug(struct rx_call * rxcall, struct ubik_debug * aparm)
 {
     int i;
     /* fill in the basic debug structure.  Note the the RPC protocol transfers,
@@ -459,9 +459,9 @@ SVOTE_Debug(struct rx_call * rxcall, register struct ubik_debug * aparm)
 
 afs_int32
 SVOTE_SDebugOld(struct rx_call * rxcall, afs_int32 awhich,
-               register struct ubik_sdebug_old * aparm)
+               struct ubik_sdebug_old * aparm)
 {
-    register struct ubik_server *ts;
+    struct ubik_server *ts;
 
     for (ts = ubik_servers; ts; ts = ts->next) {
        if (awhich-- == 0) {
@@ -487,7 +487,7 @@ SVOTE_SDebugOld(struct rx_call * rxcall, afs_int32 awhich,
  */
 afs_int32
 SVOTE_DebugOld(struct rx_call * rxcall,
-              register struct ubik_debug_old * aparm)
+              struct ubik_debug_old * aparm)
 {
 
     /* fill in the basic debug structure.  Note the the RPC protocol transfers,
@@ -545,10 +545,10 @@ SVOTE_DebugOld(struct rx_call * rxcall,
  * \brief Get the sync site; called by remote servers to find where they should go.
  */
 afs_int32
-SVOTE_GetSyncSite(register struct rx_call * rxcall,
-                 register afs_int32 * ahost)
+SVOTE_GetSyncSite(struct rx_call * rxcall,
+                 afs_int32 * ahost)
 {
-    register afs_int32 temp;
+    afs_int32 temp;
 
     temp = uvote_GetSyncSite();
     *ahost = ntohl(temp);
index 74185e623a74ca568bae35bb9291d2873ca33303..30af0b2e21116da808fdc1bfff535a8e5cc25b26 100644 (file)
@@ -71,7 +71,7 @@ int update_ReceiveFile(int, struct rx_call *, struct stat *);
 afs_int32
 GetServer(char *aname)
 {
-    register struct hostent *th;
+    struct hostent *th;
     afs_int32 addr;
 
     th = gethostbyname(aname);
@@ -466,11 +466,11 @@ FetchFile(struct rx_call *call, char *remoteFile, char *localFile, int dirFlag)
 
 
 int
-update_ReceiveFile(register int fd, register struct rx_call *call, register struct stat *status)
+update_ReceiveFile(int fd, struct rx_call *call, struct stat *status)
 {
-    register char *buffer = (char *)0;
+    char *buffer = (char *)0;
     afs_int32 length;
-    register int blockSize;
+    int blockSize;
     afs_int32 error = 0, len;
 #ifdef AFS_AIX_ENV
     struct statfs tstatfs;
@@ -495,7 +495,7 @@ update_ReceiveFile(register int fd, register struct rx_call *call, register stru
        return UPDATE_ERROR;
     }
     while (!error && length) {
-       register int nbytes = (length > blockSize ? blockSize : length);
+       int nbytes = (length > blockSize ? blockSize : length);
        nbytes = rx_Read(call, buffer, nbytes);
        if (!nbytes)
            error = UPDATE_ERROR;
index c139e0744cbb78de0c6ad875db015513c1efc821..eccf5ea9452425d17a67e1691f4221bed6940e96 100644 (file)
@@ -397,7 +397,7 @@ Quit(char *msg)
 }
 
 int
-update_SendFile(register int fd, register struct rx_call *call, register struct stat *status)
+update_SendFile(int fd, struct rx_call *call, struct stat *status)
 {
     char *buffer = (char *)0;
     int blockSize;
@@ -425,7 +425,7 @@ update_SendFile(register int fd, register struct rx_call *call, register struct
     tlen = htonl(length);
     rx_Write(call, (char *)&tlen, sizeof(afs_int32));  /* send length on fetch */
     while (!error && length) {
-       register int nbytes = (length > blockSize ? blockSize : length);
+       int nbytes = (length > blockSize ? blockSize : length);
        nbytes = read(fd, buffer, nbytes);
        if (nbytes <= 0) {
            fprintf(stderr, "File system read failed\n");
@@ -446,8 +446,8 @@ update_SendFile(register int fd, register struct rx_call *call, register struct
  */
 int
 update_SendDirInfo(char *name,         /* Name of dir to enumerate */
-     register struct rx_call *call,    /* rx call */
-     register struct stat *status,     /* stat struct for dir */
+     struct rx_call *call,     /* rx call */
+     struct stat *status,      /* stat struct for dir */
      char *origDir)            /* orig name of dir before being localized */
 {
     DIR *dirp;
index 073c84e45235240b8862d407cca73d1a6abcf3d5..39ca22aca9f51cc8a9aa7c39aabcd6ea0d6ff471 100644 (file)
@@ -29,7 +29,7 @@
 int
 AddToList(struct filestr **ah, char *aname)
 {
-    register struct filestr *tf;
+    struct filestr *tf;
     tf = (struct filestr *)malloc(sizeof(struct filestr));
     tf->next = *ah;
     *ah = tf;
@@ -41,7 +41,7 @@ AddToList(struct filestr **ah, char *aname)
 int
 ZapList(struct filestr **ah)
 {
-    register struct filestr *tf, *nf;
+    struct filestr *tf, *nf;
     for (tf = *ah; tf; tf = nf) {
        nf = tf->next;          /* save before freeing */
        free(tf->name);
index 563fcab8dbb37bba5f9abe88479862f84a0c75fe..e04715d4ca082a48a6c635a96ac589c62d13b05b 100644 (file)
@@ -129,7 +129,7 @@ static int DoAdd(void);
  *------------------------------------------------------------------------*/
 
 static int
-GetCommon(register struct cmd_syndesc *a_as, void *arock)
+GetCommon(struct cmd_syndesc *a_as, void *arock)
 {                              /*GetCommon */
 
     int code;                  /*Result of ka_LocalCell */
@@ -218,7 +218,7 @@ SaveRestoreInfo(void)
 #ifdef USS_DB
     static char rn[] = "uss:SaveRestoreInfo";  /*Routine name */
 #endif
-    register afs_int32 code;   /*Return code */
+    afs_int32 code;    /*Return code */
     afs_int32 deletedUid;      /*Uid to be nuked */
 
     /*
@@ -539,7 +539,7 @@ static int
 DoBulkAddLine(char *a_buf,  char *a_tp)
 {                              /*DoBulkAddLine */
 
-    register int i;            /*Loop variable */
+    int i;             /*Loop variable */
 #ifdef USS_DB
     static char rn[] = "DoBulkAddLine";        /*Routine name */
 #endif
@@ -916,7 +916,7 @@ static int
 DoBulkPurgeVolumeLine(char *a_buf, char *a_tp)
 {                              /*DoBulkPurgeVolumeLine */
 
-    register int i;            /*Loop variable */
+    int i;             /*Loop variable */
     int overflow;              /*Did a field copy overflow happen? */
 
     /*
@@ -1094,7 +1094,7 @@ static int
 DoBulkRestoreLine(char *a_buf, char *a_tp)
 {                              /*DoBulkRestoreLine */
 
-    register int i;            /*Loop variable */
+    int i;             /*Loop variable */
     int overflow;              /*Overflow occur on field copy? */
 
     /*
@@ -1268,7 +1268,7 @@ static int
 DoBulkExecLine(char *a_buf, char *a_tp)
 {                              /*DoBulkExecLine */
 
-    register afs_int32 code;   /*Return code */
+    afs_int32 code;    /*Return code */
 
     /*
      * Really, uss_procs_Exec does all the work for us!
@@ -1302,7 +1302,7 @@ DoBulkExecLine(char *a_buf, char *a_tp)
  *------------------------------------------------------------------------*/
 extern int Pipe;
 static int
-HandleBulk(register struct cmd_syndesc *a_as, void *a_rock)
+HandleBulk(struct cmd_syndesc *a_as, void *a_rock)
 {                              /*HandleBulk */
 
 #define USS_BULK_CMD_CHARS      128
@@ -1511,11 +1511,11 @@ HandleBulk(register struct cmd_syndesc *a_as, void *a_rock)
  *------------------------------------------------------------------------*/
 
 static int
-AddUser(register struct cmd_syndesc *a_as, void *a_rock)
+AddUser(struct cmd_syndesc *a_as, void *a_rock)
 {                              /*AddUser */
 
     int i;
-    register struct cmd_item *ti;
+    struct cmd_item *ti;
     int code;
 
     /*
@@ -1790,8 +1790,8 @@ int
 main(int argc, char *argv[])
 {                              /*Main routine */
 
-    register struct cmd_syndesc *cs;   /*Command line syntax descriptor */
-    register afs_int32 code;   /*Return code */
+    struct cmd_syndesc *cs;    /*Command line syntax descriptor */
+    afs_int32 code;    /*Return code */
 
 #ifdef AFS_AIX32_ENV
     /*
index 1f81b9da13425cdae0cabfca652e6fc6fdf43861..cfe0cfcb719ab7678222360ea03e196a3f33bce1 100644 (file)
@@ -79,10 +79,10 @@ static int PruneList(struct AclEntry **a_aclPP);
  *------------------------------------------------------------------------*/
 
 static int
-foldcmp(register char *a_str1, register char *a_str2)
+foldcmp(char *a_str1, char *a_str2)
 {                              /*foldcmp */
 
-    register char t, u;
+    char t, u;
 
     while (1) {
        t = *a_str1++;
@@ -121,12 +121,12 @@ foldcmp(register char *a_str1, register char *a_str2)
  *------------------------------------------------------------------------*/
 
 static afs_int32
-Convert(register char *a_rights)
+Convert(char *a_rights)
 {                              /*Convert */
 
-    register int i, len;
+    int i, len;
     afs_int32 mode;
-    register char tc;
+    char tc;
 
     if (!strcmp(a_rights, "read"))
        return (PRSFS_READ | PRSFS_LOOKUP);
@@ -194,7 +194,7 @@ Convert(register char *a_rights)
  *------------------------------------------------------------------------*/
 
 static struct AclEntry *
-FindList(register struct AclEntry *a_alist, char *a_name)
+FindList(struct AclEntry *a_alist, char *a_name)
 {                              /*FindList */
 
     while (a_alist) {
@@ -340,7 +340,7 @@ PruneList(struct AclEntry **a_aclPP)
  *------------------------------------------------------------------------*/
 
 static char *
-SkipLine(register char *a_str)
+SkipLine(char *a_str)
 {                              /*SkipLine */
 
     while (*a_str != '\n')
@@ -374,7 +374,7 @@ static struct Acl *
 EmptyAcl(void)
 {                              /*EmptyAcl */
 
-    register struct Acl *tp;
+    struct Acl *tp;
 
     tp = (struct Acl *)malloc(sizeof(struct Acl));
     tp->nplus = tp->nminus = 0;
@@ -543,7 +543,7 @@ afs_int32
 uss_acl_SetAccess(char *a_access, int a_clear, int a_negative)
 {                              /*uss_acl_SetAccess */
 
-    register afs_int32 code;
+    afs_int32 code;
 #ifdef USS_ACL_DB
     static char rn[] = "uss_acl_SetAccess";
 #endif
@@ -667,7 +667,7 @@ afs_int32
 uss_acl_SetDiskQuota(char *a_path, int a_q)
 {                              /*uss_acl_SetDiskQuota */
 
-    register afs_int32 code;
+    afs_int32 code;
 #ifdef USS_ACL_DB
     static char rn[] = "uss_acl_SetDiskQuota";
 #endif
index efd95065c5611007031b17c0f3d679830219438c..7737756e35738458ce456b42af23fb8471e277e5 100644 (file)
@@ -198,7 +198,7 @@ uss_common_FieldCp(char *a_to, char *a_from, char a_separator,
                   int a_maxChars, int *a_overflowP)
 {                              /*uss_common_FieldCp */
 
-    register int chars_read;   /*Number of chars read so far */
+    int chars_read;    /*Number of chars read so far */
 
     chars_read = 0;
     *a_overflowP = 0;
index d3743a11a31589d039f82181ce82bfcecbe63e4c..0fb58543aa4c698bf8243e12c49ee950d20a462d 100644 (file)
@@ -71,9 +71,9 @@ static struct ViceIoctl *blobP = &blob;       /*Ptr to above */
  *------------------------------------------------------------------------*/
 
 static int
-InAFS(register char *a_path)
+InAFS(char *a_path)
 {                              /*InAFS */
-    register afs_int32 code;
+    afs_int32 code;
 
     blob.in = NULL;
     blob.in_size = 0;
@@ -171,7 +171,7 @@ CarefulPioctl(char *a_path, int a_opcode, struct ViceIoctl *a_blobP, int a_sl)
 #ifdef USS_FS_DB
     static char rn[] = "uss_fs:CarefulPioctl";
 #endif
-    register afs_int32 code;
+    afs_int32 code;
 
     /*
      * Call the pioctl() the first time, return if things worked
@@ -218,7 +218,7 @@ uss_fs_GetACL(char *a_dirPath, char *a_aclBuff, afs_int32 a_aclBuffBytes)
 #ifdef USS_FS_DB
     static char rn[] = "uss_fs_GetACL";        /*Routine name */
 #endif
-    register afs_int32 code;   /*pioctl() result */
+    afs_int32 code;    /*pioctl() result */
 
     blob.in = NULL;
     blob.in_size = 0;
@@ -258,7 +258,7 @@ uss_fs_SetACL(char *a_dirPath, char *a_aclBuff, afs_int32 a_aclBuffBytes)
 #ifdef USS_FS_DB
     static char rn[] = "uss_fs_SetACL";        /*Routine name */
 #endif
-    register afs_int32 code;   /*pioctl() result */
+    afs_int32 code;    /*pioctl() result */
 
     blob.in = a_aclBuff;
     blob.in_size = a_aclBuffBytes;
@@ -300,7 +300,7 @@ uss_fs_GetVolStat(char *a_mountpoint, char *a_volStatBuff,
 #ifdef USS_FS_DB
     static char rn[] = "uss_fs_GetVolStat";    /*Routine name */
 #endif
-    register afs_int32 code;   /*pioctl() result */
+    afs_int32 code;    /*pioctl() result */
 
     blob.in = NULL;
     blob.in_size = 0;
@@ -341,7 +341,7 @@ uss_fs_SetVolStat(char *a_mountpoint, char *a_volStatBuff,
 #ifdef USS_FS_DB
     static char rn[] = "uss_fs_SetVolStat";    /*Routine name */
 #endif
-    register afs_int32 code;   /*pioctl() result */
+    afs_int32 code;    /*pioctl() result */
 
     blob.in = a_volStatBuff;
     blob.in_size = a_volStatBuffBytes;
@@ -381,7 +381,7 @@ uss_fs_CkBackups(void)
 #ifdef USS_FS_DB
     static char rn[] = "uss_fs_CkBackups";     /*Routine name */
 #endif
-    register afs_int32 code;   /*pioctl() result */
+    afs_int32 code;    /*pioctl() result */
 
     blob.in = NULL;
     blob.in_size = 0;
@@ -423,7 +423,7 @@ uss_fs_MkMountPoint(char *a_volname, char *a_cellname, afs_int32 a_rw,
 {                              /*uss_fs_MkMountPoint */
     extern int local_Cell;
     static char rn[] = "uss_fs_MkMountPoint";  /*Routine name */
-    register afs_int32 code;   /*pioctl() result */
+    afs_int32 code;    /*pioctl() result */
     char *tp;                  /*Temporary */
 
 #ifdef USS_FS_DB
@@ -481,7 +481,7 @@ afs_int32
 uss_fs_RmMountPoint(char *a_mountpoint)
 {                              /*uss_fs_RmMountPoint */
     static char rn[] = "uss_fs_RmMountPoint";  /*Routine name */
-    register afs_int32 code;   /*pioctl() result */
+    afs_int32 code;    /*pioctl() result */
     char *parentDirP;          /*Ptr to parent */
     char *componentP;          /*Ptr to last component */
 
index 78bd8c888f2f2d116dd18db49e0e176fdc996544..1165640dd5c18364ee07f7478d789f973e62b8ee 100644 (file)
@@ -144,7 +144,7 @@ getpipepass(void)
 {
     static char gpbuf[BUFSIZ];
     /* read a password from stdin, stop on \n or eof */
-    register int i, tc;
+    int i, tc;
     memset(gpbuf, 0, sizeof(gpbuf));
     for (i = 0; i < (sizeof(gpbuf) - 1); i++) {
        tc = fgetc(stdin);
@@ -162,7 +162,7 @@ InitThisModule(void)
 #ifdef USS_KAUTH_DB
     static char rn[] = "uss_kauth:InitThisModule";
 #endif
-    register afs_int32 code;
+    afs_int32 code;
     char prompt[2 * MAXKTCNAMELEN + 20];
     char *reasonString, longPassBuff[1024], shortPassBuff[9];
     struct ktc_encryptionKey key;
@@ -432,7 +432,7 @@ uss_kauth_DelUser(char *a_user)
 #ifdef USS_KAUTH_DB
     static char rn[] = "uss_kauth_DelUser";    /*Routine name */
 #endif
-    register afs_int32 code;   /*Return code */
+    afs_int32 code;    /*Return code */
 
     if (uss_SkipKaserver) {
        /*
@@ -511,7 +511,7 @@ uss_kauth_CheckUserName(void)
 #ifdef USS_KAUTH_DB
     static char rn[] = "uss_kauth_CheckUserName";      /*Routine name */
 #endif
-    register afs_int32 code;   /*Return code */
+    afs_int32 code;    /*Return code */
 
     if (uss_SkipKaserver) {
        /*
index 6d5914ba289ceaebc268272ed4d3973b16c47709..9d6ebf4712cbfef7c18df0a110646089dbc59f4d 100644 (file)
@@ -515,7 +515,7 @@ static int
 Copy(char *a_from, char *a_to, int a_mode)
 {                              /*Copy */
 
-    register int fd1, fd2;
+    int fd1, fd2;
     char buf[BUFSIZ];
     int cnt, rc;
 
@@ -591,7 +591,7 @@ static int
 Echo(char *a_s, char *a_f, int a_mode)
 {                              /*Echo */
 
-    register int fd;
+    int fd;
 
     umask(0);
     fd = open(a_f, O_EXCL | O_CREAT | O_WRONLY, a_mode);
index 10bd6522b5875b9cfbb141a5b1c11ef0b31da101..9084a625de77ceb5ebab18fc8326186a6bee2270 100644 (file)
@@ -71,7 +71,7 @@ InitThisModule(void)
 #ifdef USS_PTSERVER_DB
     static char rn[] = "uss_ptserver:InitThisModule";  /*Routine name */
 #endif
-    register afs_int32 code;   /*Return code */
+    afs_int32 code;    /*Return code */
 
     /*
      * Only once, guys.
@@ -295,7 +295,7 @@ uss_ptserver_XlateUser(char *a_user, afs_int32 *a_uidP)
 #ifdef USS_PTSERVER_DB
     static char rn[] = "uss_ptserver_XlateUser";       /*Routine name */
 #endif
-    register afs_int32 code;   /*Various return codes */
+    afs_int32 code;    /*Various return codes */
 
     if (uss_verbose)
        fprintf(stderr, "Translating user '%s' via the Protection DB\n",
index 109d2dd2fc5c565a54cb3e9a75886724213f4616..3090c7c310d28ae1409b8ef6d526b80a00644941 100644 (file)
@@ -105,7 +105,7 @@ InitThisModule(int a_noAuthFlag, char *a_confDir, char *a_cellName)
 #ifdef USS_VOL_DB
     static char rn[] = "uss_vol:InitThisModule";
 #endif
-    register afs_int32 code;   /*Return code */
+    afs_int32 code;    /*Return code */
     struct afsconf_dir *tdir;  /*Ptr to conf dir info */
     struct afsconf_cell info;  /*Info about chosen cell */
     afs_int32 scIndex;         /*Chosen security index */
@@ -334,10 +334,10 @@ afs_int32
 uss_vol_GetServer(char *a_name)
 {                              /*uss_vol_GetServer */
 
-    register struct hostent *th;
+    struct hostent *th;
     afs_int32 addr;
     afs_int32 b1, b2, b3, b4;
-    register afs_int32 code;
+    afs_int32 code;
 
     code = sscanf(a_name, "%d.%d.%d.%d", &b1, &b2, &b3, &b4);
     if (code == 4) {
@@ -409,7 +409,7 @@ afs_int32
 uss_vol_GetPartitionID(char *a_name)
 {                              /*uss_vol_GetPartitionID */
 
-    register char tc;
+    char tc;
     char ascii[3];
 
     tc = *a_name;
@@ -870,7 +870,7 @@ uss_vol_DeleteVol(char *a_volName, afs_int32 a_volID, char *a_servName,
 #ifdef USS_VOL_DB
     static char rn[] = "uss_vol_DeleteVol";    /*Routine name */
 #endif
-    register afs_int32 code = 0;       /*Return code */
+    afs_int32 code = 0;        /*Return code */
 
     /*
      * Make sure we've initialized our VLDB connection(s) before
@@ -967,7 +967,7 @@ static void
 ovlentry_to_nvlentry(struct vldbentry *oentryp,
                      struct nvldbentry *nentryp)
 {
-    register int i;
+    int i;
 
     memset(nentryp, 0, sizeof(struct nvldbentry));
     strncpy(nentryp->name, oentryp->name, sizeof(nentryp->name));
@@ -1042,7 +1042,7 @@ uss_vol_GetVolInfoFromMountPoint(char *a_mountpoint)
 #ifdef USS_VOL_DB
     static char rn[] = "uss_vol_GetVolInfoFromMountPoint";
 #endif
-    register afs_int32 code;   /*Return code */
+    afs_int32 code;    /*Return code */
     uss_VolumeStatus_t *statusP;       /*Ptr to returned status */
     afs_int32 volID;           /*Volume ID */
     struct nvldbentry vldbEntry;       /*VLDB entry for volume */
index fba3932b8a06a42284dcc8cb366af7b2a5b69641..c1f986376d78112b1d2bf89dced50d04a7e9ae1c 100644 (file)
@@ -92,7 +92,7 @@ extern int afs_krb_get_lrealm(char *r, int n);
 extern int afs_krb_exclusion(char *name);
 extern int afs_is_foreign_ticket_name(char *tname, char *tinst, char * tcell, char *localrealm);
 /* hostparse.c */
-extern struct hostent *hostutil_GetHostByName(register char *ahost);
+extern struct hostent *hostutil_GetHostByName(char *ahost);
 extern char *hostutil_GetNameByINet(afs_uint32 addr);
 extern afs_uint32 extractAddr(char *line, int maxSize);
 extern char *afs_inet_ntoa_r(afs_uint32 addr, char *buf);
@@ -130,9 +130,9 @@ extern afs_int32 Add_RelDate_to_Time(struct ktime_date *relDatePtr,
 
 /* ktime.c */
 extern char *ktime_DateOf(afs_int32 atime);
-extern afs_int32 ktime_Str2int32(register char *astr);
-extern int ktime_ParsePeriodic(char *adate, register struct ktime *ak);
-extern int ktime_DisplayString(struct ktime *aparm, register char *astring);
+extern afs_int32 ktime_Str2int32(char *astr);
+extern int ktime_ParsePeriodic(char *adate, struct ktime *ak);
+extern int ktime_DisplayString(struct ktime *aparm, char *astring);
 extern afs_int32 ktime_next(struct ktime *aktime, afs_int32 afrom);
 extern afs_int32 ktime_DateToInt32(char *adate, afs_int32 * aint32);
 extern char *ktime_GetDateUsage(void);
@@ -214,11 +214,11 @@ extern afs_int32 volutil_GetPartitionID(char *aname);
 extern char *volutil_PartitionName_r(int avalue, char *tbuffer, int buflen);
 extern afs_int32 volutil_PartitionName2_r(afs_int32 part, char *tbuffer, size_t buflen);
 extern char *volutil_PartitionName(int avalue);
-extern afs_int32 util_GetInt32(register char *as, afs_int32 * aval);
-extern afs_uint32 util_GetUInt32(register char *as, afs_uint32 * aval);
+extern afs_int32 util_GetInt32(char *as, afs_int32 * aval);
+extern afs_uint32 util_GetUInt32(char *as, afs_uint32 * aval);
 extern afs_int32 util_GetInt64(char *as, afs_int64 * aval);
 extern afs_uint32 util_GetUInt64(char *as, afs_uint64 * aval);
-extern afs_int32 util_GetHumanInt32(register char *as, afs_int32 * aval);
+extern afs_int32 util_GetHumanInt32(char *as, afs_int32 * aval);
 
 /* winsock_nt.c */
 
index e0903239a4eb38899bbe93c62d71a638ecd53350..e743e2a243f7b18013816f4c929765ef845138e7 100644 (file)
 
 /* also parse a.b.c.d addresses */
 struct hostent *
-hostutil_GetHostByName(register char *ahost)
+hostutil_GetHostByName(char *ahost)
 {
-    register int tc;
+    int tc;
     static struct hostent thostent;
     static char *addrp[2];
     static char addr[4];
-    register char *ptr = ahost;
+    char *ptr = ahost;
     afs_uint32 tval, numeric = 0;
     int dots = 0;
 
index 1667f02bc7d15927d35120369261105673d76fdf..926150a1eaefd67596abe097bf8b5d58df16ad39 100644 (file)
@@ -45,9 +45,9 @@ static char *day[] = {
 #ifdef undef
 static
 LocalFreeTokens(alist)
-     register struct token *alist;
+     struct token *alist;
 {
-    register struct token *nlist;
+    struct token *nlist;
     for (; alist; alist = nlist) {
        nlist = alist->next;
        free(alist->key);
@@ -70,11 +70,11 @@ static int
 LocalParseLine(char *aline, struct token **alist)
 {
     char tbuffer[256];
-    register char *tptr = NULL;
+    char *tptr = NULL;
     int inToken;
     struct token *first, *last;
-    register struct token *ttok;
-    register int tc;
+    struct token *ttok;
+    int tc;
 
     inToken = 0;               /* not copying token chars at start */
     first = NULL;
@@ -156,7 +156,7 @@ char *
 ktime_DateOf(afs_int32 atime)
 {
     static char tbuffer[30];
-    register char *tp;
+    char *tp;
     time_t t = atime;
     tp = ctime(&t);
     if (tp) {
@@ -178,12 +178,12 @@ ktime_DateOf(afs_int32 atime)
  */
 
 static int
-ParseTime(register struct ktime *ak, register char *astr)
+ParseTime(struct ktime *ak, char *astr)
 {
     int field;
     afs_int32 temp;
-    register char *tp;
-    register int tc;
+    char *tp;
+    int tc;
 
     field = 0;                 /* 0=hour, 1=min, 2=sec */
     temp = 0;
@@ -217,7 +217,7 @@ ParseTime(register struct ktime *ak, register char *astr)
 }
 
 afs_int32
-ktime_Str2int32(register char *astr)
+ktime_Str2int32(char *astr)
 {
     struct ktime tk;
 
@@ -242,10 +242,10 @@ ktime_Str2int32(register char *astr)
 
 /* -1 means error, 0 means now, otherwise returns time of next event */
 int
-ktime_ParsePeriodic(char *adate, register struct ktime *ak)
+ktime_ParsePeriodic(char *adate, struct ktime *ak)
 {
     struct token *tt;
-    register afs_int32 code;
+    afs_int32 code;
     struct ptemp *tp;
 
     memset(ak, 0, sizeof(*ak));
@@ -319,7 +319,7 @@ ktime_ParsePeriodic(char *adate, register struct ktime *ak)
  *     0 - astring contains ktime string.
  */
 int
-ktime_DisplayString(struct ktime *aparm, register char *astring)
+ktime_DisplayString(struct ktime *aparm, char *astring)
 {
     char tempString[50];
 
@@ -414,9 +414,9 @@ ktime_next(struct ktime * aktime, afs_int32 afrom)
 /* compare date in both formats, and return as in strcmp */
 #ifdef undef
 static int
-KTimeCmp(register struct ktime *aktime, register struct tm *atm)
+KTimeCmp(struct ktime *aktime, struct tm *atm)
 {
-    register afs_int32 tmask;
+    afs_int32 tmask;
 
     /* don't compare day of the week, since we can't tell the
      * order in a cyclical set.  Caller must check for equality, if
@@ -446,7 +446,7 @@ KTimeCmp(register struct ktime *aktime, register struct tm *atm)
 
 /* compare date in both formats, and return as in strcmp */
 static int
-KDateCmp(register struct ktime_date *akdate, register struct tm *atm)
+KDateCmp(struct ktime_date *akdate, struct tm *atm)
 {
     if (akdate->year > atm->tm_year)
        return 1;
@@ -620,10 +620,10 @@ ktime_GetDateUsage(void)
 afs_int32
 ktime_InterpretDate(struct ktime_date * akdate)
 {
-    register afs_uint32 tresult;
-    register afs_uint32 tbit;
+    afs_uint32 tresult;
+    afs_uint32 tbit;
     time_t temp;
-    register struct tm *tsp;
+    struct tm *tsp;
 
     if (akdate->mask & KTIMEDATE_NOW)
        return time(0);
index dcdda80f30a47e17b1405091c91debb45fb53039..1fed495616c4b3d8b5e1fce8fafbb2a5e2ea044c 100644 (file)
@@ -106,8 +106,8 @@ static int cclass(char *, char, int);
 char *
 re_comp(const char *sp)
 {
-    register int c;
-    register char *ep = expbuf;
+    int c;
+    char *ep = expbuf;
     int cclcnt, numbra = 0;
     char *lastep = 0;
     char bracket[NBRA];
@@ -225,7 +225,7 @@ re_comp(const char *sp)
 static int
 cclass(char *set, char c, int af)
 {
-    register int n;
+    int n;
 
     if (c == 0)
        return (0);
@@ -239,7 +239,7 @@ cclass(char *set, char c, int af)
 static int
 backref(int i, char *lp)
 {
-    register char *bp;
+    char *bp;
 
     bp = braslist[i];
     while (*bp++ == *lp++)
@@ -254,7 +254,7 @@ backref(int i, char *lp)
 static int
 advance(char *lp, char *ep)
 {
-    register char *curlp;
+    char *curlp;
     int ct, i;
     int rv;
 
@@ -361,8 +361,8 @@ advance(char *lp, char *ep)
 int
 re_exec(const char *p1)
 {
-    register char *p2 = expbuf;
-    register int c;
+    char *p2 = expbuf;
+    int c;
     int rv;
 
     for (c = 0; c < NBRA; c++) {
index ef165d1ac80553b95adfba953cae14fc28380930..7cd4cb94064957968c82293e5627dfeda2898b94 100644 (file)
@@ -109,7 +109,7 @@ struct remote {
 
 /* Hack to unfold code for multiple devices */
 #define rmt     (*rmtp)
-#define devhack(dev) register struct remote *rmtp = &remote[minor(dev)]
+#define devhack(dev) struct remote *rmtp = &remote[minor(dev)]
 
 /* Flags for rmt.rt_flags */
 #define RT_RBUF                1       /* processing venus read request */
index 340063b96847c670397d9f3e7297204bd8e9c36f..877c967d217e60b1fd79fe4ef1bb14f6d1425662 100644 (file)
@@ -33,9 +33,9 @@
 size_t
 strlcat(char *dst, const char *src, size_t siz)
 {
-    register char *d = dst;
-    register const char *s = src;
-    register size_t n = siz;
+    char *d = dst;
+    const char *s = src;
+    size_t n = siz;
     size_t dlen;
 
     /* Find the end of dst and adjust bytes left but don't go past end */
index fe189c4d94294a805c8b28e3533c0645ea470747..ebd5a1200ede6d0584ee167c169ca47eec333651 100644 (file)
@@ -30,9 +30,9 @@
 size_t
 strlcpy(char *dst, const char *src, size_t siz)
 {
-    register char *d = dst;
-    register const char *s = src;
-    register size_t n = siz;
+    char *d = dst;
+    const char *s = src;
+    size_t n = siz;
 
     /* Copy as many bytes as will fit */
     if (n != 0 && --n != 0) {
index 43f1181b48c06ff3783fef6ea87b33ff6bf01cbe..f676166309d8315fe5b8929931b7706b5f46339b 100644 (file)
@@ -36,7 +36,7 @@
 afs_int32
 volutil_GetPartitionID(char *aname)
 {
-    register char tc;
+    char tc;
     afs_int32 temp;
     char ascii[3];
 
@@ -104,7 +104,7 @@ afs_int32
 volutil_PartitionName2_r(afs_int32 part, char *tbuffer, size_t buflen)
 {
     char tempString[3];
-    register int i;
+    int i;
 
     if (part < 0 || part >= VOLMAXPARTS) {
        return -2;
@@ -190,7 +190,7 @@ volutil_PartitionName(int avalue)
 
 /* is this a digit or a digit-like thing? */
 static int
-ismeta(register int ac, register int abase)
+ismeta(int ac, int abase)
 {
 /*    if (ac == '-' || ac == 'x' || ac == 'X') return 1; */
     if (ac >= '0' && ac <= '7')
@@ -210,7 +210,7 @@ ismeta(register int ac, register int abase)
 
 /* given that this is a digit or a digit-like thing, compute its value */
 static int
-getmeta(register int ac)
+getmeta(int ac)
 {
     if (ac >= '0' && ac <= '9')
        return ac - '0';
@@ -222,10 +222,10 @@ getmeta(register int ac)
 }
 
 afs_int32
-util_GetInt32(register char *as, afs_int32 * aval)
+util_GetInt32(char *as, afs_int32 * aval)
 {
-    register afs_int32 total;
-    register int tc;
+    afs_int32 total;
+    int tc;
     int base;
     int negative;
 
@@ -271,10 +271,10 @@ util_GetInt32(register char *as, afs_int32 * aval)
 }
 
 afs_uint32
-util_GetUInt32(register char *as, afs_uint32 * aval)
+util_GetUInt32(char *as, afs_uint32 * aval)
 {
-    register afs_uint32 total;
-    register int tc;
+    afs_uint32 total;
+    int tc;
     int base;
 
     total = 0;                 /* initialize things */
@@ -316,7 +316,7 @@ static const char power_letter[] = {
 };
 
 afs_int32
-util_GetHumanInt32(register char *as, afs_int32 * aval)
+util_GetHumanInt32(char *as, afs_int32 * aval)
 {
     long value;
     char * unit;
index 66e9f315a259ceae2561e693a131c54eb02ecbf5..a64cde7e147d97cbbd954f962eacc8a1a5307611 100644 (file)
@@ -240,13 +240,13 @@ Command is executed in user's cell.
 static int
 MyBeforeProc(struct cmd_syndesc *as, void *arock)
 {
-    register char *tcell = NULL;
+    char *tcell = NULL;
     char confdir[200];
     struct afsconf_dir *tdir;
     struct afsconf_cell info;
     struct rx_connection *serverconns[MAXSERVERS];
-    register afs_int32 code, i;
-    register afs_int32 sauth;
+    afs_int32 code, i;
+    afs_int32 sauth;
 
     sprintf(confdir, "%s", AFSDIR_CLIENT_ETC_DIRPATH);
     /* setup to talk to servers */
index 65c3b074496f2adad834a3095040b6627dc7a700..aa134db66ad5df8cf5d4b4516fe04593cbc6dee6 100644 (file)
@@ -147,7 +147,7 @@ PrintInterfaces(struct rx_connection *aconn)
 }
 
 static int
-IsLocked(register struct AFSDBLockDesc *alock)
+IsLocked(struct AFSDBLockDesc *alock)
 {
     if (alock->waitStates || alock->exclLocked || alock->numWaiting
        || alock->readersReading)
@@ -156,7 +156,7 @@ IsLocked(register struct AFSDBLockDesc *alock)
 }
 
 static int
-PrintLock(register struct AFSDBLockDesc *alock)
+PrintLock(struct AFSDBLockDesc *alock)
 {
     printf("(");
     if (alock->waitStates) {
@@ -185,9 +185,9 @@ PrintLock(register struct AFSDBLockDesc *alock)
 }
 
 static int
-PrintLocks(register struct rx_connection *aconn, int aint32)
+PrintLocks(struct rx_connection *aconn, int aint32)
 {
-    register int i;
+    int i;
     struct AFSDBLock lock;
     afs_int32 code;
 
@@ -258,8 +258,8 @@ GetCellName(struct rx_connection *aconn, afs_int32 cellnum)
 static int
 PrintCacheEntries32(struct rx_connection *aconn, int aint32)
 {
-    register int i;
-    register afs_int32 code;
+    int i;
+    afs_int32 code;
     struct AFSDBCacheEntry centry;
     char *cellname;
 
@@ -354,8 +354,8 @@ PrintCacheEntries32(struct rx_connection *aconn, int aint32)
 static int
 PrintCacheEntries64(struct rx_connection *aconn, int aint32)
 {
-    register int i;
-    register afs_int32 code;
+    int i;
+    afs_int32 code;
     struct AFSDBCacheEntry64 centry;
     char *cellname;
 
@@ -460,7 +460,7 @@ PrintCacheEntries64(struct rx_connection *aconn, int aint32)
 static int
 PrintCacheEntries(struct rx_connection *aconn, int aint32)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct AFSDBCacheEntry64 centry64;
 
     code = RXAFSCB_GetCE64(aconn, 0, &centry64);
@@ -526,8 +526,8 @@ int
 CommandProc(struct cmd_syndesc *as, void *arock)
 {
     struct rx_connection *conn;
-    register char *hostName;
-    register struct hostent *thp;
+    char *hostName;
+    struct hostent *thp;
     afs_int32 port;
     struct rx_securityClass *secobj;
     int int32p;
@@ -598,7 +598,7 @@ CommandProc(struct cmd_syndesc *as, void *arock)
 int
 main(int argc, char **argv)
 {
-    register struct cmd_syndesc *ts;
+    struct cmd_syndesc *ts;
 
 #ifdef AFS_AIX32_ENV
     /*
index a091aa9ff59a724331723c36e21432b1136da567..2a4c9a464d4bdd4ff579304a6a293bfd7315c7c7 100644 (file)
@@ -31,8 +31,8 @@ extern struct hostent *hostutil_GetHostByName();
 
 static PrintCacheEntries(struct rx_connection *aconn, int aint32)
 {
-    register int i;
-    register afs_int32 code, addr, inode, flags, time;
+    int i;
+    afs_int32 code, addr, inode, flags, time;
     char *fileName;
 
     for(i=0;i<100000;i++) {
@@ -58,8 +58,8 @@ static int
 CommandProc(struct cmd_syndesc *as, void *arock)
 {
     struct rx_connection *conn;
-    register char *hostName;
-    register struct hostent *thp;
+    char *hostName;
+    struct hostent *thp;
     afs_int32 port;
     struct rx_securityClass *secobj;
     int int32p;
@@ -93,7 +93,7 @@ CommandProc(struct cmd_syndesc *as, void *arock)
 main(argc, argv)
 int argc;
 char **argv; {
-    register struct cmd_syndesc *ts;
+    struct cmd_syndesc *ts;
 
 #ifdef AFS_AIX32_ENV
     /*
index 2fb96458260406da6952314741a9bc45ffc36242..3286047953f5a0701a9850975512fe56459d384f 100644 (file)
@@ -77,12 +77,12 @@ void dce1_error_inq_text(afs_uint32 status_to_convert,
 int icl_CreateSetWithFlags(char *name, struct afs_icl_log *baseLogp,
                           struct afs_icl_log *fatalLogp, afs_uint32 flags,
                           struct afs_icl_set **outSetpp);
-int icl_LogHold(register struct afs_icl_log *logp);
-int icl_LogUse(register struct afs_icl_log *logp);
-int icl_LogReleNL(register struct afs_icl_log *logp);
-int icl_LogRele(register struct afs_icl_log *logp);
-int icl_ZeroLog(register struct afs_icl_log *logp);
-int icl_LogFreeUse(register struct afs_icl_log *logp);
+int icl_LogHold(struct afs_icl_log *logp);
+int icl_LogUse(struct afs_icl_log *logp);
+int icl_LogReleNL(struct afs_icl_log *logp);
+int icl_LogRele(struct afs_icl_log *logp);
+int icl_ZeroLog(struct afs_icl_log *logp);
+int icl_LogFreeUse(struct afs_icl_log *logp);
 
 #define BUFFER_MULTIPLIER     1024
 
@@ -134,7 +134,7 @@ icl_GetSize(afs_int32 type, char *addr)
 static int
 CheckTypes(char *bufferp, int *typesp, int typeCount, char *outMsgBuffer)
 {
-    register char tc;
+    char tc;
     int inPercent;
     int tix;
 
@@ -209,7 +209,7 @@ CheckTypes(char *bufferp, int *typesp, int typeCount, char *outMsgBuffer)
 static int
 CheckTypes(char *bufferp, int *typesp, int typeCount)
 {
-    register char tc;
+    char tc;
     int inPercent;
     int tix;
 
@@ -260,7 +260,7 @@ CheckTypes(char *bufferp, int *typesp, int typeCount)
 #define uint64_t long long
 #endif
 static void
-DisplayRecord(FILE *outFilep, register afs_int32 *alp, afs_int32 rsize)
+DisplayRecord(FILE *outFilep, afs_int32 *alp, afs_int32 rsize)
 {
     char msgBuffer[1024];
 #if defined(AFS_SGI61_ENV) || (defined(AFS_AIX51_ENV) && defined(AFS_64BIT_KERNEL))
@@ -1202,8 +1202,8 @@ icl_CreateSetWithFlags(char *name, struct afs_icl_log *baseLogp,
                       struct afs_icl_log *fatalLogp, afs_uint32 flags, 
                       struct afs_icl_set **outSetpp)
 {
-    register struct afs_icl_set *setp;
-    register int i;
+    struct afs_icl_set *setp;
+    int i;
     afs_int32 states = ICL_DEFAULT_SET_STATES;
 
     if (!icl_inited)
@@ -1300,7 +1300,7 @@ icl_GetEnable(struct afs_icl_set *setp, afs_int32 eventID, int *getValuep)
 
 /* hold and release event sets */
 int
-icl_SetHold(register struct afs_icl_set *setp)
+icl_SetHold(struct afs_icl_set *setp)
 {
     setp->refCount++;
     return 0;
@@ -1308,11 +1308,11 @@ icl_SetHold(register struct afs_icl_set *setp)
 
 /* free a set.  Called with icl_lock locked */
 int
-icl_ZapSet(register struct afs_icl_set *setp)
+icl_ZapSet(struct afs_icl_set *setp)
 {
-    register struct afs_icl_set **lpp, *tp;
+    struct afs_icl_set **lpp, *tp;
     int i;
-    register struct afs_icl_log *tlp;
+    struct afs_icl_log *tlp;
 
     for (lpp = &icl_allSets, tp = *lpp; tp; lpp = &tp->nextp, tp = *lpp) {
        if (tp == setp) {
@@ -1333,7 +1333,7 @@ icl_ZapSet(register struct afs_icl_set *setp)
 
 /* do the release, watching for deleted entries */
 int
-icl_SetRele(register struct afs_icl_set *setp)
+icl_SetRele(struct afs_icl_set *setp)
 {
     if (--setp->refCount == 0 && (setp->states & ICL_SETF_DELETED)) {
        icl_ZapSet(setp);       /* destroys setp's lock! */
@@ -1343,7 +1343,7 @@ icl_SetRele(register struct afs_icl_set *setp)
 
 /* free a set entry, dropping its reference count */
 int
-icl_SetFree(register struct afs_icl_set *setp)
+icl_SetFree(struct afs_icl_set *setp)
 {
     setp->states |= ICL_SETF_DELETED;
     icl_SetRele(setp);
@@ -1354,7 +1354,7 @@ icl_SetFree(register struct afs_icl_set *setp)
 struct afs_icl_set *
 icl_FindSet(char *name)
 {
-    register struct afs_icl_set *tp;
+    struct afs_icl_set *tp;
 
     for (tp = icl_allSets; tp; tp = tp->nextp) {
        if (strcmp(tp->name, name) == 0) {
@@ -1370,7 +1370,7 @@ icl_FindSet(char *name)
 int
 icl_ZeroSet(struct afs_icl_set *setp)
 {
-    register int i;
+    int i;
     int code = 0;
     int tcode;
     struct afs_icl_log *logp;
@@ -1392,8 +1392,8 @@ int
 icl_EnumerateSets(int (*aproc) (char *, void *, struct afs_icl_set *), 
                  void *arock)
 {
-    register struct afs_icl_set *tp, *np;
-    register afs_int32 code;
+    struct afs_icl_set *tp, *np;
+    afs_int32 code;
 
     code = 0;
     for (tp = icl_allSets; tp; tp = np) {
@@ -1411,7 +1411,7 @@ icl_EnumerateSets(int (*aproc) (char *, void *, struct afs_icl_set *),
 int
 icl_AddLogToSet(struct afs_icl_set *setp, struct afs_icl_log *newlogp)
 {
-    register int i;
+    int i;
     int code = -1;
 
     for (i = 0; i < ICL_LOGSPERSET; i++) {
@@ -1501,7 +1501,7 @@ struct afs_icl_log *afs_icl_allLogs = 0;
 
 /* hold and release logs */
 int
-icl_LogHold(register struct afs_icl_log *logp)
+icl_LogHold(struct afs_icl_log *logp)
 {
     logp->refCount++;
     return 0;
@@ -1509,7 +1509,7 @@ icl_LogHold(register struct afs_icl_log *logp)
 
 /* hold and release logs, called with lock already held */
 int
-icl_LogHoldNL(register struct afs_icl_log *logp)
+icl_LogHoldNL(struct afs_icl_log *logp)
 {
     logp->refCount++;
     return 0;
@@ -1517,7 +1517,7 @@ icl_LogHoldNL(register struct afs_icl_log *logp)
 
 /* keep track of how many sets believe the log itself is allocated */
 int
-icl_LogUse(register struct afs_icl_log *logp)
+icl_LogUse(struct afs_icl_log *logp)
 {
     if (logp->setCount == 0) {
        /* this is the first set actually using the log -- allocate it */
@@ -1534,7 +1534,7 @@ icl_LogUse(register struct afs_icl_log *logp)
 
 /* decrement the number of real users of the log, free if possible */
 int
-icl_LogFreeUse(register struct afs_icl_log *logp)
+icl_LogFreeUse(struct afs_icl_log *logp)
 {
     if (--logp->setCount == 0) {
        /* no more users -- free it (but keep log structure around) */
@@ -1548,7 +1548,7 @@ icl_LogFreeUse(register struct afs_icl_log *logp)
 
 /* set the size of the log to 'logSize' */
 int
-icl_LogSetSize(register struct afs_icl_log *logp, afs_int32 logSize)
+icl_LogSetSize(struct afs_icl_log *logp, afs_int32 logSize)
 {
     if (!logp->datap) {
        /* nothing to worry about since it's not allocated */
@@ -1569,9 +1569,9 @@ icl_LogSetSize(register struct afs_icl_log *logp, afs_int32 logSize)
 
 /* free a log.  Called with icl_lock locked. */
 int
-icl_ZapLog(register struct afs_icl_log *logp)
+icl_ZapLog(struct afs_icl_log *logp)
 {
-    register struct afs_icl_log **lpp, *tp;
+    struct afs_icl_log **lpp, *tp;
 
     for (lpp = &afs_icl_allLogs, tp = *lpp; tp; lpp = &tp->nextp, tp = *lpp) {
        if (tp == logp) {
@@ -1588,7 +1588,7 @@ icl_ZapLog(register struct afs_icl_log *logp)
 
 /* do the release, watching for deleted entries */
 int
-icl_LogRele(register struct afs_icl_log *logp)
+icl_LogRele(struct afs_icl_log *logp)
 {
     if (--logp->refCount == 0 && (logp->states & ICL_LOGF_DELETED)) {
        icl_ZapLog(logp);       /* destroys logp's lock! */
@@ -1598,7 +1598,7 @@ icl_LogRele(register struct afs_icl_log *logp)
 
 /* do the release, watching for deleted entries, log already held */
 int
-icl_LogReleNL(register struct afs_icl_log *logp)
+icl_LogReleNL(struct afs_icl_log *logp)
 {
     if (--logp->refCount == 0 && (logp->states & ICL_LOGF_DELETED)) {
        icl_ZapLog(logp);       /* destroys logp's lock! */
@@ -1608,7 +1608,7 @@ icl_LogReleNL(register struct afs_icl_log *logp)
 
 /* zero out the log */
 int
-icl_ZeroLog(register struct afs_icl_log *logp)
+icl_ZeroLog(struct afs_icl_log *logp)
 {
     logp->firstUsed = logp->firstFree = 0;
     logp->logElements = 0;
@@ -1617,7 +1617,7 @@ icl_ZeroLog(register struct afs_icl_log *logp)
 
 /* free a log entry, and drop its reference count */
 int
-icl_LogFree(register struct afs_icl_log *logp)
+icl_LogFree(struct afs_icl_log *logp)
 {
     logp->states |= ICL_LOGF_DELETED;
     icl_LogRele(logp);
@@ -1630,8 +1630,8 @@ icl_EnumerateLogs(int (*aproc)
                    (char *name, void *arock, struct afs_icl_log * tp),
                  void *arock)
 {
-    register struct afs_icl_log *tp;
-    register afs_int32 code;
+    struct afs_icl_log *tp;
+    afs_int32 code;
 
     code = 0;
     for (tp = afs_icl_allLogs; tp; tp = tp->nextp) {
@@ -1775,7 +1775,7 @@ SetUpDump(void)
 }
 
 static int
-DoShowLog(register struct cmd_syndesc *as, void *arock)
+DoShowLog(struct cmd_syndesc *as, void *arock)
 {
     afs_int32 retVal = 0;
     afs_int32 code = 0;
@@ -1846,7 +1846,7 @@ SetUpShowLog(void)
 }
 
 static int
-DoShowSet(register struct cmd_syndesc *as, void *arock)
+DoShowSet(struct cmd_syndesc *as, void *arock)
 {
     afs_int32 retVal = 0;
     afs_int32 code = 0;
@@ -1900,7 +1900,7 @@ SetUpShowSet(void)
 }
 
 static int
-DoClear(register struct cmd_syndesc *as, void *arock)
+DoClear(struct cmd_syndesc *as, void *arock)
 {
     afs_int32 retVal = 0;
     afs_int32 code = 0;
@@ -1960,7 +1960,7 @@ SetUpClear(void)
 }
 
 static int
-DoSet(register struct cmd_syndesc *as, void *arock)
+DoSet(struct cmd_syndesc *as, void *arock)
 {
     afs_int32 retVal = 0;
     afs_int32 code = 0;
@@ -2047,7 +2047,7 @@ SetUpSet(void)
 }
 
 static int
-DoResize(register struct cmd_syndesc *as, void *arock)
+DoResize(struct cmd_syndesc *as, void *arock)
 {
     afs_int32 retVal = 0;
     afs_int32 code = 0;
index c55b706cac145a8e3e3e9baf19ecfa10ea17a1b9..2c5a9533562c99b11f0189bf2545cc4adc175b87 100644 (file)
@@ -828,9 +828,9 @@ symsrch(s)
 
 #ifndef AFS_KDUMP_LIB
 static int
-cmdproc(register struct cmd_syndesc *as, void *arock)
+cmdproc(struct cmd_syndesc *as, void *arock)
 {
-    register afs_int32 code = 0;
+    afs_int32 code = 0;
 
 #if !defined(AFS_DARWIN_ENV) && !defined(AFS_FBSD_ENV) 
     if (as->parms[0].items) {  /* -kobj */
@@ -943,8 +943,8 @@ cmdproc(register struct cmd_syndesc *as, void *arock)
 int
 main(int argc, char **argv)
 {
-    register struct cmd_syndesc *ts;
-    register afs_int32 code;
+    struct cmd_syndesc *ts;
+    afs_int32 code;
 
 #ifdef AFS_AIX32_ENV
     struct sigaction nsa;
@@ -1021,7 +1021,7 @@ main(int argc, char **argv)
 int
 Knlist(struct afs_nlist *sp, int cnt, int size)
 {
-    register int code;
+    int code;
 
     if (UserLevel)
        code = nlist(obj, sp);
@@ -3156,7 +3156,7 @@ print_callout(int kmem)
     struct callo Co, *Coe = &Co, *Cop;
     struct tos To, *Toe = &To, *tos;
     struct trb Trb, *Trbe = &Trb, *trb;
-    register int i = 0;
+    int i = 0;
 
 
     printf("\n\nPrinting callout table info...\n\n");
index e577cbc5fa22a9ead338386aaedd63dfdd9d9584..8b57c0db69fdf90e5a225aff775bad425e800ccd 100644 (file)
@@ -26,8 +26,8 @@ main(int argc, char **argv)
 {
     struct timeval tv[2];
     struct stat tstat;
-    register long code;
-    register char *pn;         /* path name we're dealing with */
+    long code;
+    char *pn;          /* path name we're dealing with */
 
     if (argc != 2) {
        printf
index 94a98fb1879e533ae0a9d0f2544161514fffda7f..8601542db05400f9b2c5fba628d0be1ef5ffcf82 100644 (file)
@@ -127,8 +127,8 @@ Twiddle(struct cmd_syndesc *as, void *arock)
 int
 main(int argc, char **argv)
 {
-    register afs_int32 code;
-    register struct cmd_syndesc *ts;
+    afs_int32 code;
+    struct cmd_syndesc *ts;
 
 #ifdef AFS_AIX32_ENV
     /*
index a2d191cd53ded377e0f51166941f4c2611f4916a..4d7d81d6076eaa3ece801236b80a202b3a2d0fc5 100644 (file)
@@ -48,12 +48,12 @@ void PioctlError();
 int WhatFidCmd_FileParm;
 int WhatFidCmd_FollowLinkParm;
 int
-WhatFidCmd(register struct cmd_syndesc *as, void *arock)
+WhatFidCmd(struct cmd_syndesc *as, void *arock)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct ViceIoctl blob;
     struct VenusFid vFid;
-    register struct cmd_item *ti;
+    struct cmd_item *ti;
     struct VolumeStatus *status;
     char *name;
     int follow = 1;
@@ -82,8 +82,8 @@ main(argc, argv)
      int argc;
      char **argv;
 {
-    register afs_int32 code;
-    register struct cmd_syndesc *ts;
+    afs_int32 code;
+    struct cmd_syndesc *ts;
 
 #ifdef AFS_AIX32_ENV
     /*
index 40a5b83bae48f430e9a093daef551f2a27adf888..1b268364d00c6c4ff2d19ea5ff19e99b0c57d8fe 100644 (file)
@@ -116,7 +116,7 @@ descend(parentino, inumber)
      struct inodesc *parentino;
      ino_t inumber;
 {
-    register struct dinode *dp;
+    struct dinode *dp;
     struct inodesc curino;
 
     memset(&curino, 0, sizeof(struct inodesc));
@@ -183,10 +183,10 @@ descend(parentino, inumber)
 }
 
 dirscan(idesc)
-     register struct inodesc *idesc;
+     struct inodesc *idesc;
 {
-    register struct direct *dp;
-    register struct bufarea *bp;
+    struct direct *dp;
+    struct bufarea *bp;
     int dsize, n;
     long blksiz;
     char dbuf[DIRBLKSIZ];
@@ -223,10 +223,10 @@ dirscan(idesc)
  */
 struct direct *
 fsck_readdir(idesc)
-     register struct inodesc *idesc;
+     struct inodesc *idesc;
 {
-    register struct direct *dp, *ndp;
-    register struct bufarea *bp;
+    struct direct *dp, *ndp;
+    struct bufarea *bp;
     long size, blksiz;
 
     blksiz = idesc->id_numfrags * sblock.fs_fsize;
@@ -274,10 +274,10 @@ fsck_readdir(idesc)
  */
 dircheck(idesc, dp)
      struct inodesc *idesc;
-     register struct direct *dp;
+     struct direct *dp;
 {
-    register int size;
-    register char *cp;
+    int size;
+    char *cp;
     int spaceleft;
 
     size = DIRSIZ(dp);
@@ -308,7 +308,7 @@ direrror(ino, errmesg)
      ino_t ino;
      char *errmesg;
 {
-    register struct dinode *dp;
+    struct dinode *dp;
 
     pwarn("%s ", errmesg);
     pinode(ino);
@@ -326,10 +326,10 @@ direrror(ino, errmesg)
 }
 
 adjust(idesc, lcnt)
-     register struct inodesc *idesc;
+     struct inodesc *idesc;
      short lcnt;
 {
-    register struct dinode *dp;
+    struct dinode *dp;
 
     dp = ginode(idesc->id_number);
     if (dp->di_nlink == lcnt) {
@@ -359,7 +359,7 @@ adjust(idesc, lcnt)
 mkentry(idesc)
      struct inodesc *idesc;
 {
-    register struct direct *dirp = idesc->id_dirp;
+    struct direct *dirp = idesc->id_dirp;
     struct direct newent;
     int newlen, oldlen;
 
@@ -384,7 +384,7 @@ mkentry(idesc)
 chgino(idesc)
      struct inodesc *idesc;
 {
-    register struct direct *dirp = idesc->id_dirp;
+    struct direct *dirp = idesc->id_dirp;
 
     if (memcmp(dirp->d_name, idesc->id_name, (int)dirp->d_namlen + 1))
        return (KEEPON);
@@ -396,7 +396,7 @@ linkup(orphan, parentdir)
      ino_t orphan;
      ino_t parentdir;
 {
-    register struct dinode *dp;
+    struct dinode *dp;
     int lostdir, len;
     ino_t oldlfdir;
     struct inodesc idesc;
@@ -549,10 +549,10 @@ makeentry(parent, ino, name)
  * Attempt to expand the size of a directory
  */
 expanddir(dp)
-     register struct dinode *dp;
+     struct dinode *dp;
 {
     daddr_t lastbn, newblk;
-    register struct bufarea *bp;
+    struct bufarea *bp;
     char *cp, firstblk[DIRBLKSIZ];
 
     lastbn = lblkno(&sblock, dp->di_size);
@@ -607,7 +607,7 @@ allocdir(parent, request, mode)
     ino_t ino;
     char *cp;
     struct dinode *dp;
-    register struct bufarea *bp;
+    struct bufarea *bp;
 
     ino = allocino(request, IFDIR | mode);
     dirhead.dot_ino = ino;
@@ -684,8 +684,8 @@ lftempname(bufp, ino)
      char *bufp;
      ino_t ino;
 {
-    register ino_t in;
-    register char *cp;
+    ino_t in;
+    char *cp;
     int namlen;
 
     cp = bufp + 2;
index 204314d62e1915531b580a0136b3e7cebd52f1d7..30c60dc8304290919592fba8a39d6b6b478a75c8 100644 (file)
@@ -89,9 +89,9 @@ struct bufarea *pbp = 0;
 
 ckinode(dp, idesc)
      struct dinode *dp;
-     register struct inodesc *idesc;
+     struct inodesc *idesc;
 {
-    register daddr_t *ap;
+    daddr_t *ap;
     long ret, n, ndb, offset;
     struct dinode dino;
     UOFF_T indir_data_blks;
@@ -186,15 +186,15 @@ ckinode(dp, idesc)
 
 iblock(idesc, ilevel, isize)
      struct inodesc *idesc;
-     register long ilevel;
+     long ilevel;
      UOFF_T isize;
 {
-    register daddr_t *ap;
-    register daddr_t *aplim;
+    daddr_t *ap;
+    daddr_t *aplim;
     int i, n, (*func) ();
     UOFF_T sizepb;
     OFF_T nif;
-    register struct bufarea *bp;
+    struct bufarea *bp;
     char buf[BUFSIZ];
     extern int dirscan(), pass1check();
 
@@ -297,7 +297,7 @@ chkrange(blk, cnt)
      daddr_t blk;
      int cnt;
 {
-    register int c;
+    int c;
 
     if ((unsigned)(blk + cnt) > maxfsblock)
        return (1);
@@ -346,7 +346,7 @@ ginode(inumber)
 #ifdef AFS_SUN5_ENVX
 inocleanup()
 {
-    register struct inoinfo **inpp;
+    struct inoinfo **inpp;
 
     if (inphead == NULL)
        return;
@@ -365,11 +365,11 @@ inodirty()
 }
 
 clri(idesc, type, flag)
-     register struct inodesc *idesc;
+     struct inodesc *idesc;
      char *type;
      int flag;
 {
-    register struct dinode *dp;
+    struct dinode *dp;
 #if defined(ACLS) && defined(AFS_HPUX_ENV)
     struct inodesc cidesc;
 #endif /* ACLS */
@@ -419,7 +419,7 @@ clri(idesc, type, flag)
 findname(idesc)
      struct inodesc *idesc;
 {
-    register struct direct *dirp = idesc->id_dirp;
+    struct direct *dirp = idesc->id_dirp;
 
     if (dirp->d_ino != idesc->id_parent)
        return (KEEPON);
@@ -430,7 +430,7 @@ findname(idesc)
 findino(idesc)
      struct inodesc *idesc;
 {
-    register struct direct *dirp = idesc->id_dirp;
+    struct direct *dirp = idesc->id_dirp;
 
     if (dirp->d_ino == 0)
        return (KEEPON);
@@ -445,8 +445,8 @@ findino(idesc)
 pinode(ino)
      ino_t ino;
 {
-    register struct dinode *dp;
-    register char *p;
+    struct dinode *dp;
+    char *p;
     struct passwd *pw;
     char *ctime();
     time_t t;
@@ -559,8 +559,8 @@ allocino(request, type)
      ino_t request;
      int type;
 {
-    register ino_t ino;
-    register struct dinode *dp;
+    ino_t ino;
+    struct dinode *dp;
 
     if (request == 0)
        request = ROOTINO;
index a6275b392289763afeeddd80d3119687d64716c1..665eed4c963e08fde7006e3b7c8ebbdb0bdb41a4 100644 (file)
@@ -163,8 +163,8 @@ main(argc, argv)
     struct fstab *fsp;
     int pid, passno, sumstatus;
     char *name;
-    register struct disk *dk, *nextdisk;
-    register struct part *pt;
+    struct disk *dk, *nextdisk;
+    struct part *pt;
     extern char *AFSVersion;   /* generated version */
 #ifdef AFS_SUN5_ENV
     int other_than_ufs = 0;
@@ -545,8 +545,8 @@ struct disk *
 finddisk(name)
      char *name;
 {
-    register struct disk *dk, **dkp;
-    register char *p;
+    struct disk *dk, **dkp;
+    char *p;
     int len;
 
     for (p = name + strlen(name) - 1; p >= name; --p)
@@ -579,7 +579,7 @@ addpart(name, fsname)
      char *name, *fsname;
 {
     struct disk *dk = finddisk(name);
-    register struct part *pt, **ppt = &dk->part;
+    struct part *pt, **ppt = &dk->part;
 
     for (pt = dk->part; pt; ppt = &pt->next, pt = pt->next)
        if (strcmp(pt->name, name) == 0) {
@@ -599,7 +599,7 @@ addpart(name, fsname)
 }
 
 startdisk(dk)
-     register struct disk *dk;
+     struct disk *dk;
 {
 
     nrun++;
index f1548854f649a00cac6e5edaf92bde319b271cc4..7615cd71a742d79bc547d26620c6daa0246147f3 100644 (file)
@@ -73,8 +73,8 @@ static int oldreported;
 
 pass1()
 {
-    register int c, i, j;
-    register struct dinode *dp;
+    int c, i, j;
+    struct dinode *dp;
     struct zlncnt *zlnp;
     int ndb, cgd;
     struct inodesc idesc;
@@ -395,12 +395,12 @@ pass1()
 }
 
 pass1check(idesc)
-     register struct inodesc *idesc;
+     struct inodesc *idesc;
 {
     int res = KEEPON;
     int anyout, nfrags;
     daddr_t blkno = idesc->id_blkno;
-    register struct dups *dlp;
+    struct dups *dlp;
     struct dups *new;
 
     if ((anyout = chkrange(blkno, idesc->id_numfrags)) != 0) {
index dd47106a0fd733af4ef679b70f78872b66bbf43e..64add8ca1c9f97962795636cab486b9dd397b542 100644 (file)
@@ -68,8 +68,8 @@ static struct dups *duphead;
 
 pass1b()
 {
-    register int c, i;
-    register struct dinode *dp;
+    int c, i;
+    struct dinode *dp;
     struct inodesc idesc;
     ino_t inumber;
 
@@ -101,9 +101,9 @@ pass1b()
 }
 
 pass1bcheck(idesc)
-     register struct inodesc *idesc;
+     struct inodesc *idesc;
 {
-    register struct dups *dlp;
+    struct dups *dlp;
     int nfrags, res = KEEPON;
     daddr_t blkno = idesc->id_blkno;
 
index a2fe452f124aacb15e7750ff773ab57349634853..afd4f478a0a0b858588f088af3671d128b669f0a 100644 (file)
@@ -83,7 +83,7 @@ int pass2check();
 
 pass2()
 {
-    register struct dinode *dp;
+    struct dinode *dp;
     struct inodesc rootdesc;
 
     memset(&rootdesc, 0, sizeof(struct inodesc));
@@ -168,7 +168,7 @@ pass2()
 pass2check(idesc)
      struct inodesc *idesc;
 {
-    register struct direct *dirp = idesc->id_dirp;
+    struct direct *dirp = idesc->id_dirp;
     char *curpathloc;
     int n, entrysize, ret = 0;
     struct dinode *dp;
index d6e42c603ec837ea6c80a3d01395848a4153a68f..c37ee6de892041cc28382c78377c98007bf97ae9 100644 (file)
@@ -69,7 +69,7 @@ int pass2check();
 
 pass3()
 {
-    register struct dinode *dp;
+    struct dinode *dp;
     struct inodesc idesc;
     ino_t inumber, orphan;
     int loopcnt;
index 76ca298a1d76e622c26649c7c680916650a1bed0..9c95c89d5776363b323fa997969bfcaa75f8ecfc 100644 (file)
@@ -68,12 +68,12 @@ int pass4check();
 
 pass4()
 {
-    register ino_t inumber;
-    register struct zlncnt *zlnp;
+    ino_t inumber;
+    struct zlncnt *zlnp;
     struct inodesc idesc;
     int n;
 #if defined(ACLS) && defined(AFS_HPUX_ENV)
-    register struct dinode *dp;
+    struct dinode *dp;
 #endif /* ACLS */
 
 
@@ -167,9 +167,9 @@ pass4()
 }
 
 pass4check(idesc)
-     register struct inodesc *idesc;
+     struct inodesc *idesc;
 {
-    register struct dups *dlp;
+    struct dups *dlp;
     int nfrags, res = KEEPON;
     daddr_t blkno = idesc->id_blkno;
 
index 0c662d90390a8d95c859a013e39943130a1a6d14..dd00c2004701a188d099c99e1607e2fcf3a9dc3c 100644 (file)
 pass5()
 {
     int c, blk, frags, basesize, sumsize, mapsize, savednrpos;
-    register struct fs *fs = &sblock;
-    register struct cg *cg = &cgrp;
+    struct fs *fs = &sblock;
+    struct cg *cg = &cgrp;
     daddr_t dbase, dmax;
-    register daddr_t d;
-    register long i, j;
+    daddr_t d;
+    long i, j;
     struct csum *cs;
     time_t now;
     struct csum cstotal;
@@ -92,11 +92,11 @@ pass5()
     int postype;
 
 #ifdef AFS_NEWCG_ENV
-    register struct cg *newcg = (struct cg *)buf;
+    struct cg *newcg = (struct cg *)buf;
     struct ocg *ocg = (struct ocg *)buf;
 #else /* AFS_NEWCG_ENV */
     /* don't bother with newcg format yet, most systems don't support it */
-    register struct cg *newcg = (struct cg *)buf;
+    struct cg *newcg = (struct cg *)buf;
     struct cg *ocg = (struct cg *)buf;
 #endif /* AFS_NEWCG_ENV */
 
@@ -374,7 +374,7 @@ pass5()
 
 /* returns true if sbdirty should be called */
 sbfine(fs)
-     register struct fs *fs;
+     struct fs *fs;
 {
     int rcode;
     rcode = 0;
index ca0098dba41b356ab22783f005386514c8b63c98..da3d0884d1fda3c45493e0970bed3688f6b31896 100644 (file)
@@ -774,7 +774,7 @@ badsb(listerr, s)
 calcsb(dev, devfd, fs)
      char *dev;
      int devfd;
-     register struct fs *fs;
+     struct fs *fs;
 {
     return 0;
 }
@@ -832,7 +832,7 @@ is_swap(devno)
      dev_t devno;
 {
     struct pst_swapinfo pst[PS_BURST];
-    register struct pst_swapinfo *psp = &pst[0];
+    struct pst_swapinfo *psp = &pst[0];
     int idx = 0, count, match = 0;
 
     while ((count = PSTAT(psp, PS_BURST, idx) != 0)) {
@@ -929,8 +929,8 @@ getline(fp, loc, maxlen)
      FILE *fp;
      char *loc;
 {
-    register n;
-    register char *p, *lastloc;
+    int n;
+    char *p, *lastloc;
 
     p = loc;
     lastloc = &p[maxlen - 1];
index c8cb4656419e2886834d7708add786f145bdd969..45d75213fa28ada6cf1ca56057012c2e438254c3 100644 (file)
@@ -54,8 +54,8 @@ fragacct(fs, fragmap, fraglist, cnt)
      int cnt;
 {
     int inblk;
-    register int field, subfield;
-    register int siz, pos;
+    int field, subfield;
+    int siz, pos;
 
     inblk = (int)(fragtbl[fs->fs_frag][fragmap]) << 1;
     fragmap <<= 1;
@@ -169,10 +169,10 @@ setblock(fs, cp, h)
  */
 scanc(size, cp, table, mask)
      u_int size;
-     register u_char *cp, table[];
-     register u_char mask;
+     u_char *cp, table[];
+     u_char mask;
 {
-    register u_char *end = &cp[size];
+    u_char *end = &cp[size];
 
     while (cp < end && (table[*cp] & mask) == 0)
        cp++;
@@ -182,11 +182,11 @@ scanc(size, cp, table, mask)
 
 #if !defined(vax) && !defined(tahoe)
 skpc(mask, size, cp)
-     register u_char mask;
+     u_char mask;
      u_int size;
-     register u_char *cp;
+     u_char *cp;
 {
-    register u_char *end = &cp[size];
+    u_char *end = &cp[size];
 
     while (cp < end && *cp == mask)
        cp++;
@@ -194,11 +194,11 @@ skpc(mask, size, cp)
 }
 
 locc(mask, size, cp)
-     register u_char mask;
+     u_char mask;
      u_int size;
-     register u_char *cp;
+     u_char *cp;
 {
-    register u_char *end = &cp[size];
+    u_char *end = &cp[size];
 
     while (cp < end && *cp != mask)
        cp++;
index 07396e70011511428f6a7d12179879941543310c..c0ef946ceef9bf1dd90be31d94e57d5c9689ff8f 100644 (file)
@@ -186,7 +186,7 @@ reply(question)
  */
 bufinit()
 {
-    register struct bufarea *bp;
+    struct bufarea *bp;
     long bufcnt, i;
     char *bufp;
 
@@ -228,7 +228,7 @@ getdatablk(blkno, size)
      daddr_t blkno;
      long size;
 {
-    register struct bufarea *bp;
+    struct bufarea *bp;
 
     for (bp = bufhead.b_next; bp != &bufhead; bp = bp->b_next)
        if (bp->b_bno == fsbtodb(&sblock, blkno))
@@ -254,7 +254,7 @@ getdatablk(blkno, size)
 
 struct bufarea *
 getblk(bp, blk, size)
-     register struct bufarea *bp;
+     struct bufarea *bp;
      daddr_t blk;
      long size;
 {
@@ -273,9 +273,9 @@ getblk(bp, blk, size)
 
 flush(fd, bp)
      int fd;
-     register struct bufarea *bp;
+     struct bufarea *bp;
 {
-    register int i, j;
+    int i, j;
     caddr_t sip;
     long size;
 
@@ -344,7 +344,7 @@ rwerror(mesg, blk)
 
 ckfini()
 {
-    register struct bufarea *bp, *nbp;
+    struct bufarea *bp, *nbp;
     int cnt = 0;
 
     flush(fswritefd, &sblk);
@@ -537,7 +537,7 @@ bwrite(fd, buf, blk, size)
 allocblk(frags)
      long frags;
 {
-    register int i, j, k;
+    int i, j, k;
 
     if (frags <= 0 || frags > sblock.fs_frag)
        return (0);
@@ -583,7 +583,7 @@ getpathname(namebuf, curdir, ino)
      ino_t curdir, ino;
 {
     int len;
-    register char *cp;
+    char *cp;
     struct inodesc idesc;
     extern int findname();
 
@@ -676,7 +676,7 @@ voidquit()
  * determine whether an inode should be fixed.
  */
 dofix(idesc, msg)
-     register struct inodesc *idesc;
+     struct inodesc *idesc;
      char *msg;
 {
 
@@ -933,8 +933,8 @@ printclean()
 #ifdef AFS_SUN52_ENV
 char *
 hasvfsopt(vfs, opt)
-     register struct vfstab *vfs;
-     register char *opt;
+     struct vfstab *vfs;
+     char *opt;
 {
     char *f, *opts;
     static char *tmpopts;
index 0179f8284c922674f6bbd7aa5c0ce9427b068131..7a962ce217fb47c0aebdeed7b4ef5fc2cfd579eb 100644 (file)
 #include <afs/afsutil.h>
 #include <afs/dir.h>
 
-extern void SetDirHandle(register DirHandle * dir, register Vnode * vnode);
+extern void SetDirHandle(DirHandle * dir, Vnode * vnode);
 extern void FidZap(DirHandle * file);
 extern void FidZero(DirHandle * file);
 
@@ -208,7 +208,7 @@ extern int CEs, CEBlocks;
 extern int HTs, HTBlocks;
 
 afs_int32 FetchData_RXStyle(Volume * volptr, Vnode * targetptr,
-                           register struct rx_call *Call, afs_sfsize_t Pos,
+                           struct rx_call *Call, afs_sfsize_t Pos,
                            afs_sfsize_t Len, afs_int32 Int64Mode,
 #if FS_STATS_DETAILED
                            afs_sfsize_t * a_bytesToFetchP,
@@ -218,7 +218,7 @@ afs_int32 FetchData_RXStyle(Volume * volptr, Vnode * targetptr,
 
 afs_int32 StoreData_RXStyle(Volume * volptr, Vnode * targetptr,
                            struct AFSFid *Fid, struct client *client,
-                           register struct rx_call *Call, afs_fsize_t Pos,
+                           struct rx_call *Call, afs_fsize_t Pos,
                            afs_fsize_t Length, afs_fsize_t FileLength,
                            int sync,
 #if FS_STATS_DETAILED
@@ -244,7 +244,7 @@ GetLinkCount(Volume * avp, struct stat *astat)
 afs_int32
 SpareComp(Volume * avolp)
 {
-    register afs_int32 temp;
+    afs_int32 temp;
 
     FS_LOCK;
     if (PctSpare) {
@@ -269,7 +269,7 @@ SpareComp(Volume * avolp)
  * the Cache Manager knows that the volume must be purged from the stat cache.
  */
 static void
-SetVolumeSync(register struct AFSVolSync *async, register Volume * avol)
+SetVolumeSync(struct AFSVolSync *async, Volume * avol)
 {
     FS_LOCK;
     /* date volume instance was created */
@@ -293,7 +293,7 @@ SetVolumeSync(register struct AFSVolSync *async, register Volume * avol)
  * Call returns rx connection in passed in *tconn
  */
 static int
-CallPreamble(register struct rx_call *acall, int activecall,
+CallPreamble(struct rx_call *acall, int activecall,
             struct rx_connection **tconn, struct host **ahostp)
 {
     struct host *thost;
@@ -416,7 +416,7 @@ CallPreamble(register struct rx_call *acall, int activecall,
 
 
 static afs_int32
-CallPostamble(register struct rx_connection *aconn, afs_int32 ret,
+CallPostamble(struct rx_connection *aconn, afs_int32 ret,
              struct host *ahost)
 {
     struct host *thost;
@@ -833,7 +833,7 @@ PutVolumePackage(Vnode * parentwhentargetnotdir, Vnode * targetptr,
 }                              /*PutVolumePackage */
 
 static int
-VolumeOwner(register struct client *client, register Vnode * targetptr)
+VolumeOwner(struct client *client, Vnode * targetptr)
 {
     afs_int32 owner = V_owner(targetptr->volumePtr);   /* get volume owner */
 
@@ -1113,7 +1113,7 @@ CopyOnWrite(Vnode * targetptr, Volume * volptr, afs_foff_t off, afs_fsize_t len)
     Inode ino, nearInode;
     ssize_t rdlen;
     ssize_t wrlen;
-    register afs_fsize_t size;
+    afs_fsize_t size;
     size_t length;
     char *buff;
     int rc;                    /* return code */
@@ -1974,9 +1974,9 @@ RXGetVolumeStatus(AFSFetchVolumeStatus * status, char **name, char **offMsg,
 
 
 static afs_int32
-FileNameOK(register char *aname)
+FileNameOK(char *aname)
 {
-    register afs_int32 i, tc;
+    afs_int32 i, tc;
     i = strlen(aname);
     if (i >= 4) {
        /* watch for @sys on the right */
@@ -2030,7 +2030,7 @@ static struct afs_buffer {
 static int afs_buffersAlloced = 0;
 
 static
-FreeSendBuffer(register struct afs_buffer *adata)
+FreeSendBuffer(struct afs_buffer *adata)
 {
     FS_LOCK;
     afs_buffersAlloced--;
@@ -2045,7 +2045,7 @@ FreeSendBuffer(register struct afs_buffer *adata)
 static char *
 AllocSendBuffer()
 {
-    register struct afs_buffer *tp;
+    struct afs_buffer *tp;
 
     FS_LOCK;
     afs_buffersAlloced++;
@@ -2580,7 +2580,7 @@ SRXAFS_BulkStatus(struct rx_call * acall, struct AFSCBFids * Fids,
                  struct AFSBulkStats * OutStats, struct AFSCBs * CallBacks,
                  struct AFSVolSync * Sync)
 {
-    register int i;
+    int i;
     afs_int32 nfiles;
     Vnode *targetptr = 0;      /* pointer to vnode to fetch */
     Vnode *parentwhentargetnotdir = 0; /* parent vnode if targetptr is a file */
@@ -2588,7 +2588,7 @@ SRXAFS_BulkStatus(struct rx_call * acall, struct AFSCBFids * Fids,
     Volume *volptr = 0;                /* pointer to the volume */
     struct client *client = 0; /* pointer to the client data */
     afs_int32 rights, anyrights;       /* rights for this and any user */
-    register struct AFSFid *tfid;      /* file id we're dealing with now */
+    struct AFSFid *tfid;       /* file id we're dealing with now */
     struct rx_connection *tcon = rx_ConnectionOf(acall);
     struct host *thost;
     struct client *t_client = NULL;     /* tmp pointer to the client data */
@@ -2729,7 +2729,7 @@ SRXAFS_InlineBulkStatus(struct rx_call * acall, struct AFSCBFids * Fids,
                        struct AFSBulkStats * OutStats,
                        struct AFSCBs * CallBacks, struct AFSVolSync * Sync)
 {
-    register int i;
+    int i;
     afs_int32 nfiles;
     Vnode *targetptr = 0;      /* pointer to vnode to fetch */
     Vnode *parentwhentargetnotdir = 0; /* parent vnode if targetptr is a file */
@@ -2737,7 +2737,7 @@ SRXAFS_InlineBulkStatus(struct rx_call * acall, struct AFSCBFids * Fids,
     Volume *volptr = 0;                /* pointer to the volume */
     struct client *client = 0; /* pointer to the client data */
     afs_int32 rights, anyrights;       /* rights for this and any user */
-    register struct AFSFid *tfid;      /* file id we're dealing with now */
+    struct AFSFid *tfid;       /* file id we're dealing with now */
     struct rx_connection *tcon;
     struct host *thost;
     struct client *t_client = NULL;    /* tmp ptr to client data */
@@ -5995,7 +5995,7 @@ SRXAFS_GetXStats(struct rx_call *a_call, afs_int32 a_clientVersionNum,
                 afs_int32 * a_timeP, AFS_CollData * a_dataP)
 {                              /*SRXAFS_GetXStats */
 
-    register int code;         /*Return value */
+    int code;          /*Return value */
     afs_int32 *dataBuffP;      /*Ptr to data to be returned */
     afs_int32 dataBytes;       /*Bytes in data buffer */
 #if FS_STATS_DETAILED
@@ -6181,7 +6181,7 @@ common_GiveUpCallBacks(struct rx_call *acall, struct AFSCBFids *FidArray,
                       struct AFSCBs *CallBackArray)
 {
     afs_int32 errorCode = 0;
-    register int i;
+    int i;
     struct client *client = 0;
     struct rx_connection *tcon;
     struct host *thost;
@@ -6237,7 +6237,7 @@ common_GiveUpCallBacks(struct rx_call *acall, struct AFSCBFids *FidArray,
        errorCode = GetClient(tcon, &client);
        if (!errorCode) {
            for (i = 0; i < FidArray->AFSCBFids_len; i++) {
-               register struct AFSFid *fid = &(FidArray->AFSCBFids_val[i]);
+               struct AFSFid *fid = &(FidArray->AFSCBFids_val[i]);
                DeleteCallBack(client->host, fid);
            }
            PutClient(&client);
@@ -6404,10 +6404,10 @@ SRXAFS_FlushCPS(struct rx_call * acall, struct ViceIds * vids,
 
 /* worthless hack to let CS keep running ancient software */
 static int
-afs_vtoi(register char *aname)
+afs_vtoi(char *aname)
 {
-    register afs_int32 temp;
-    register int tc;
+    afs_int32 temp;
+    int tc;
 
     temp = 0;
     while ((tc = *aname++)) {
@@ -6424,10 +6424,10 @@ afs_vtoi(register char *aname)
  * or backup volumes by name or #
  */
 static afs_int32
-CopyVolumeEntry(char *aname, register struct vldbentry *ave,
-               register struct VolumeInfo *av)
+CopyVolumeEntry(char *aname, struct vldbentry *ave,
+               struct VolumeInfo *av)
 {
-    register int i, j, vol;
+    int i, j, vol;
     afs_int32 mask, whichType;
     afs_uint32 *serverHost, *typePtr;
 
@@ -6492,7 +6492,7 @@ TryLocalVLServer(char *avolid, struct VolumeInfo *avolinfo)
     static afs_int32 lastDownTime = 0;
     struct vldbentry tve;
     struct rx_securityClass *vlSec;
-    register afs_int32 code;
+    afs_int32 code;
 
     if (!vlConn) {
        vlSec = rxnull_NewClientSecurityObject();
@@ -7015,7 +7015,7 @@ SRXAFS_GetTime(struct rx_call * acall, afs_uint32 * Seconds,
 
 afs_int32
 FetchData_RXStyle(Volume * volptr, Vnode * targetptr,
-                 register struct rx_call * Call, afs_sfsize_t Pos,
+                 struct rx_call * Call, afs_sfsize_t Pos,
                  afs_sfsize_t Len, afs_int32 Int64Mode,
 #if FS_STATS_DETAILED
                  afs_sfsize_t * a_bytesToFetchP,
@@ -7027,7 +7027,7 @@ FetchData_RXStyle(Volume * volptr, Vnode * targetptr,
     IHandle_t *ihP;
     FdHandle_t *fdP;
 #ifdef AFS_NT40_ENV
-    register char *tbuffer;
+    char *tbuffer;
 #else /* AFS_NT40_ENV */
     struct iovec tiov[RX_MAXIOVECS];
     int tnio;
@@ -7240,7 +7240,7 @@ GetLinkCountAndSize(Volume * vp, FdHandle_t * fdP, int *lc,
  */
 afs_int32
 StoreData_RXStyle(Volume * volptr, Vnode * targetptr, struct AFSFid * Fid,
-                 struct client * client, register struct rx_call * Call,
+                 struct client * client, struct rx_call * Call,
                  afs_fsize_t Pos, afs_fsize_t Length, afs_fsize_t FileLength,
                  int sync,
 #if FS_STATS_DETAILED
@@ -7253,7 +7253,7 @@ StoreData_RXStyle(Volume * volptr, Vnode * targetptr, struct AFSFid * Fid,
     struct timeval StartTime, StopTime;        /* Used to measure how long the store takes */
     Error errorCode = 0;               /* Returned error code to caller */
 #ifdef AFS_NT40_ENV
-    register char *tbuffer;    /* data copying buffer */
+    char *tbuffer;     /* data copying buffer */
 #else /* AFS_NT40_ENV */
     struct iovec tiov[RX_MAXIOVECS];   /* no data copying with iovec */
     int tnio;                  /* temp for iovec size */
index 34dbd135c7f2a1986ef4aa94442346329b96a3f9..27b530f05014c94d3e64d6b2ea69bd1f15787749 100644 (file)
@@ -171,22 +171,22 @@ struct object {
 };
 
 /* Prototypes for static routines */
-static struct FileEntry *FindFE(register AFSFid * fid);
+static struct FileEntry *FindFE(AFSFid * fid);
 
 #ifndef INTERPRET_DUMP
-static struct CallBack *iGetCB(register int *nused);
-static int iFreeCB(register struct CallBack *cb, register int *nused);
-static struct FileEntry *iGetFE(register int *nused);
-static int iFreeFE(register struct FileEntry *fe, register int *nused);
-static int TAdd(register struct CallBack *cb, register afs_uint32 * thead);
-static int TDel(register struct CallBack *cb);
-static int HAdd(register struct CallBack *cb, register struct host *host);
-static int HDel(register struct CallBack *cb);
+static struct CallBack *iGetCB(int *nused);
+static int iFreeCB(struct CallBack *cb, int *nused);
+static struct FileEntry *iGetFE(int *nused);
+static int iFreeFE(struct FileEntry *fe, int *nused);
+static int TAdd(struct CallBack *cb, afs_uint32 * thead);
+static int TDel(struct CallBack *cb);
+static int HAdd(struct CallBack *cb, struct host *host);
+static int HDel(struct CallBack *cb);
 static int CDel(struct CallBack *cb, int deletefe);
-static int CDelPtr(register struct FileEntry *fe, register afs_uint32 * cbp,
+static int CDelPtr(struct FileEntry *fe, afs_uint32 * cbp,
                   int deletefe);
 static afs_uint32 *FindCBPtr(struct FileEntry *fe, struct host *host);
-static int FDel(register struct FileEntry *fe);
+static int FDel(struct FileEntry *fe);
 static int AddCallBack1_r(struct host *host, AFSFid * fid, afs_uint32 * thead,
                          int type, int locked);
 static void MultiBreakCallBack_r(struct cbstruct cba[], int ncbas,
@@ -207,16 +207,16 @@ static int DumpCallBackState_r(void);
 
 
 /* Other protos - move out sometime */
-void PrintCB(register struct CallBack *cb, afs_uint32 now);
+void PrintCB(struct CallBack *cb, afs_uint32 now);
 
 static afs_uint32 HashTable[FEHASH_SIZE];      /* File entry hash table */
 
 static struct FileEntry *
-FindFE(register AFSFid * fid)
+FindFE(AFSFid * fid)
 {
     int hash;
-    register int fei;
-    register struct FileEntry *fe;
+    int fei;
+    struct FileEntry *fe;
 
     hash = FEHash(fid->Volume, fid->Unique);
     for (fei = HashTable[hash]; fei; fei = fe->fnext) {
@@ -231,9 +231,9 @@ FindFE(register AFSFid * fid)
 #ifndef INTERPRET_DUMP
 
 static struct CallBack *
-iGetCB(register int *nused)
+iGetCB(int *nused)
 {
-    register struct CallBack *ret;
+    struct CallBack *ret;
 
     if ((ret = CBfree)) {
        CBfree = (struct CallBack *)(((struct object *)ret)->next);
@@ -243,7 +243,7 @@ iGetCB(register int *nused)
 }
 
 static int
-iFreeCB(register struct CallBack *cb, register int *nused)
+iFreeCB(struct CallBack *cb, int *nused)
 {
     ((struct object *)cb)->next = (struct object *)CBfree;
     CBfree = cb;
@@ -252,9 +252,9 @@ iFreeCB(register struct CallBack *cb, register int *nused)
 }
 
 static struct FileEntry *
-iGetFE(register int *nused)
+iGetFE(int *nused)
 {
-    register struct FileEntry *ret;
+    struct FileEntry *ret;
 
     if ((ret = FEfree)) {
        FEfree = (struct FileEntry *)(((struct object *)ret)->next);
@@ -264,7 +264,7 @@ iGetFE(register int *nused)
 }
 
 static int
-iFreeFE(register struct FileEntry *fe, register int *nused)
+iFreeFE(struct FileEntry *fe, int *nused)
 {
     ((struct object *)fe)->next = (struct object *)FEfree;
     FEfree = fe;
@@ -274,12 +274,12 @@ iFreeFE(register struct FileEntry *fe, register int *nused)
 
 /* Add cb to end of specified timeout list */
 static int
-TAdd(register struct CallBack *cb, register afs_uint32 * thead)
+TAdd(struct CallBack *cb, afs_uint32 * thead)
 {
     if (!*thead) {
        (*thead) = cb->tnext = cb->tprev = cbtoi(cb);
     } else {
-       register struct CallBack *thp = itocb(*thead);
+       struct CallBack *thp = itocb(*thead);
 
        cb->tprev = thp->tprev;
        cb->tnext = *thead;
@@ -296,9 +296,9 @@ TAdd(register struct CallBack *cb, register afs_uint32 * thead)
 
 /* Delete call back entry from timeout list */
 static int
-TDel(register struct CallBack *cb)
+TDel(struct CallBack *cb)
 {
-    register afs_uint32 *thead = itot(cb->thead);
+    afs_uint32 *thead = itot(cb->thead);
 
     if (*thead == cbtoi(cb))
        *thead = (*thead == cb->tnext ? 0 : cb->tnext);
@@ -311,13 +311,13 @@ TDel(register struct CallBack *cb)
 
 /* Add cb to end of specified host list */
 static int
-HAdd(register struct CallBack *cb, register struct host *host)
+HAdd(struct CallBack *cb, struct host *host)
 {
     cb->hhead = h_htoi(host);
     if (!host->cblist) {
        host->cblist = cb->hnext = cb->hprev = cbtoi(cb);
     } else {
-       register struct CallBack *fcb = itocb(host->cblist);
+       struct CallBack *fcb = itocb(host->cblist);
 
        cb->hprev = fcb->hprev;
        cb->hnext = cbtoi(fcb);
@@ -328,9 +328,9 @@ HAdd(register struct CallBack *cb, register struct host *host)
 
 /* Delete call back entry from host list */
 static int
-HDel(register struct CallBack *cb)
+HDel(struct CallBack *cb)
 {
-    register afs_uint32 *hhead = &h_itoh(cb->hhead)->cblist;
+    afs_uint32 *hhead = &h_itoh(cb->hhead)->cblist;
 
     if (*hhead == cbtoi(cb))
        *hhead = (*hhead == cb->hnext ? 0 : cb->hnext);
@@ -348,8 +348,8 @@ CDel(struct CallBack *cb, int deletefe)
 {
     int cbi = cbtoi(cb);
     struct FileEntry *fe = itofe(cb->fhead);
-    register afs_uint32 *cbp;
-    register int safety;
+    afs_uint32 *cbp;
+    int safety;
 
     for (safety = 0, cbp = &fe->firstcb; *cbp && *cbp != cbi;
         cbp = &itocb(*cbp)->cnext, safety++) {
@@ -374,10 +374,10 @@ CDel(struct CallBack *cb, int deletefe)
 static int Ccdelpt = 0, CcdelB = 0;
 
 static int
-CDelPtr(register struct FileEntry *fe, register afs_uint32 * cbp,
+CDelPtr(struct FileEntry *fe, afs_uint32 * cbp,
        int deletefe)
 {
-    register struct CallBack *cb;
+    struct CallBack *cb;
 
     if (!*cbp)
        return 0;
@@ -395,10 +395,10 @@ CDelPtr(register struct FileEntry *fe, register afs_uint32 * cbp,
 static afs_uint32 *
 FindCBPtr(struct FileEntry *fe, struct host *host)
 {
-    register afs_uint32 hostindex = h_htoi(host);
-    register struct CallBack *cb;
-    register afs_uint32 *cbp;
-    register int safety;
+    afs_uint32 hostindex = h_htoi(host);
+    struct CallBack *cb;
+    afs_uint32 *cbp;
+    int safety;
 
     for (safety = 0, cbp = &fe->firstcb; *cbp; cbp = &cb->cnext, safety++) {
        if (safety > cbstuff.nblks) {
@@ -415,10 +415,10 @@ FindCBPtr(struct FileEntry *fe, struct host *host)
 
 /* Delete file entry from hash table */
 static int
-FDel(register struct FileEntry *fe)
+FDel(struct FileEntry *fe)
 {
-    register int fei = fetoi(fe);
-    register afs_uint32 *p = &HashTable[FEHash(fe->volid, fe->unique)];
+    int fei = fetoi(fe);
+    afs_uint32 *p = &HashTable[FEHash(fe->volid, fe->unique)];
 
     while (*p && *p != fei)
        p = &itofe(*p)->fnext;
@@ -464,7 +464,7 @@ afs_int32
 XCallBackBulk_r(struct host * ahost, struct AFSFid * fids, afs_int32 nfids)
 {
     struct AFSCallBack tcbs[AFSCBMAX];
-    register int i;
+    int i;
     struct AFSCBFids tf;
     struct AFSCBs tc;
     int code;
@@ -593,7 +593,7 @@ AddCallBack1_r(struct host *host, AFSFid * fid, afs_uint32 * thead, int type,
     host->Console &= ~2;
 
     if (!fe) {
-       register afs_uint32 hash;
+       afs_uint32 hash;
 
        fe = newfe;
        newfe = NULL;
@@ -887,8 +887,8 @@ BreakCallBack(struct host *xhost, AFSFid * fid, int flag)
 int
 DeleteCallBack(struct host *host, AFSFid * fid)
 {
-    register struct FileEntry *fe;
-    register afs_uint32 *pcb;
+    struct FileEntry *fe;
+    afs_uint32 *pcb;
     char hoststr[16];
 
     H_LOCK;
@@ -932,10 +932,10 @@ DeleteCallBack(struct host *host, AFSFid * fid)
 int
 DeleteFileCallBacks(AFSFid * fid)
 {
-    register struct FileEntry *fe;
-    register struct CallBack *cb;
-    register afs_uint32 cbi;
-    register int n;
+    struct FileEntry *fe;
+    struct CallBack *cb;
+    afs_uint32 cbi;
+    int n;
 
     H_LOCK;
     cbstuff.DeleteFiles++;
@@ -965,8 +965,8 @@ DeleteFileCallBacks(AFSFid * fid)
 int
 DeleteAllCallBacks_r(struct host *host, int deletefe)
 {
-    register struct CallBack *cb;
-    register int cbi, first;
+    struct CallBack *cb;
+    int cbi, first;
 
     cbstuff.DeleteAllCallBacks++;
     cbi = first = host->cblist;
@@ -1057,7 +1057,7 @@ BreakDelayedCallBacks_r(struct host *host)
                cb = itocb(cbi);
                cbi = cb->hnext;
                if (cb->status == CB_DELAYED) {
-                   register struct FileEntry *fe = itofe(cb->fhead);
+                   struct FileEntry *fe = itofe(cb->fhead);
                    thead[nfids] = cb->thead;
                    fids[nfids].Volume = fe->volid;
                    fids[nfids].Vnode = fe->vnode;
@@ -1217,7 +1217,7 @@ BreakVolumeCallBacksLater(afs_uint32 volume)
     for (hash = 0; hash < FEHASH_SIZE; hash++) {
        for (feip = &HashTable[hash]; (fe = itofe(*feip)) != NULL; ) {
            if (fe->volid == volume) {
-               register struct CallBack *cbnext;
+               struct CallBack *cbnext;
                for (cb = itocb(fe->firstcb); cb; cb = cbnext) {
                    host = h_itoh(cb->hhead);
                    host->hostFlags |= HFE_LATER;
@@ -1300,7 +1300,7 @@ BreakLaterCallBacks(void)
     /* loop over FEs from myfe and free/break */
     tthead = 0;
     for (fe = myfe; fe;) {
-       register struct CallBack *cbnext;
+       struct CallBack *cbnext;
        for (cb = itocb(fe->firstcb); cb; cb = cbnext) {
            cbnext = itocb(cb->cnext);
            host = h_itoh(cb->hhead);
@@ -1368,13 +1368,13 @@ int
 CleanupTimedOutCallBacks_r(void)
 {
     afs_uint32 now = CBtime(FT_ApproxTime());
-    register afs_uint32 *thead;
-    register struct CallBack *cb;
-    register int ntimedout = 0;
+    afs_uint32 *thead;
+    struct CallBack *cb;
+    int ntimedout = 0;
     char hoststr[16];
 
     while (tfirst <= now) {
-       register int cbi;
+       int cbi;
        cbi = *(thead = THead(tfirst));
        if (cbi) {
            do {
@@ -1447,7 +1447,7 @@ struct lih_params {
  * theory not give these to us anyway, but be paranoid.
  */
 static int
-lih0_r(register struct host *host, register int flags, void *rock)
+lih0_r(struct host *host, int flags, void *rock)
 {
     struct lih_params *params = (struct lih_params *)rock;
 
@@ -1470,7 +1470,7 @@ lih0_r(register struct host *host, register int flags, void *rock)
 
 /* same as lih0_r, except we do not prevent held hosts from being selected. */
 static int
-lih1_r(register struct host *host, register int flags, void *rock)
+lih1_r(struct host *host, int flags, void *rock)
 {
     struct lih_params *params = (struct lih_params *)rock;
 
@@ -2270,8 +2270,8 @@ static int
 cb_stateSaveFEs(struct fs_dump_state * state)
 {
     int ret = 0;
-    register int fei, hash;
-    register struct FileEntry *fe;
+    int fei, hash;
+    struct FileEntry *fe;
 
     AssignInt64(state->eof_offset, &state->cb_hdr->fe_offset);
 
@@ -2460,7 +2460,7 @@ cb_stateRestoreCBs(struct fs_dump_state * state, struct FileEntry * fe,
                   struct iovec * iov, int niovecs)
 {
     int ret = 0, idx;
-    register struct CallBack * cb;
+    struct CallBack * cb;
     struct CBDiskEntry * cbdsk;
     afs_uint32 fei;
 
@@ -2761,8 +2761,8 @@ main(int argc, char **argv)
 {
     int err = 0, cbi = 0, stats = 0, noptions = 0, all = 0, vol = 0, raw = 0;
     static AFSFid fid;
-    register struct FileEntry *fe;
-    register struct CallBack *cb;
+    struct FileEntry *fe;
+    struct CallBack *cb;
     time_t now;
     int timebits = 32;
     
@@ -2912,7 +2912,7 @@ main(int argc, char **argv)
 }
 
 void
-PrintCB(register struct CallBack *cb, afs_uint32 now)
+PrintCB(struct CallBack *cb, afs_uint32 now)
 {
     struct FileEntry *fe = itofe(cb->fhead);
     time_t expires = TIndexToTime(cb->thead);
index f4e30f8c2d776098111e2f168e98493091a9b65f..51aa5112ccec96285dc6ae3e765b1630d82ce56e 100644 (file)
@@ -61,7 +61,7 @@ main(int argc, char **argv)
 {
     char **av = argv;
     struct sockaddr_in host;
-    register afs_int32 code;
+    afs_int32 code;
     struct hostent *hp;
     char *hostname;
     char hnamebuf[200];
@@ -113,7 +113,7 @@ main(int argc, char **argv)
        printf("fs> ");
        if (fgets(line, 499, stdin) != NULL) {
            char *oper;
-           register char **argp = args;
+           char **argp = args;
            GetArgs(line, argp, &nargs);
            oper = &argp[0][0];
            ++argp, --nargs;
@@ -225,11 +225,11 @@ main(int argc, char **argv)
 
 
 void
-GetArgs(register char *line, register char **args, register int *nargs)
+GetArgs(char *line, char **args, int *nargs)
 {
     *nargs = 0;
     while (*line) {
-       register char *last = line;
+       char *last = line;
        while (*line == ' ')
            line++;
        if (*last == ' ')
@@ -280,10 +280,10 @@ FetchData(char **argp)
 
 
 static afs_int32
-FetchProc(register struct rx_call *acall)
+FetchProc(struct rx_call *acall)
 {
     extern char *malloc();
-    register char *tbuffer;
+    char *tbuffer;
     afs_int32 tlen, length, code;
 
     code = rx_Read(acall, &length, sizeof(afs_int32));
@@ -421,7 +421,7 @@ StoreData(char **argp)
 
 
 static afs_int32
-StoreProc(register struct rx_call *acall, char *string, int length)
+StoreProc(struct rx_call *acall, char *string, int length)
 {
     afs_int32 tlen, code;
 
@@ -839,10 +839,10 @@ Readdir(char **argp)
 
 
 static afs_int32
-FetchDir(register struct rx_call *acall)
+FetchDir(struct rx_call *acall)
 {
     extern char *malloc();
-    register char *tbuffer;
+    char *tbuffer;
     afs_int32 tlen, length, code;
     struct dirent *dp;
 
index 819a3e5db8aa8e53f72d5fbcbf58ae1da3381601..4c7cacf206e28591fb91599442b5e7fdb0f5e087 100644 (file)
@@ -94,7 +94,7 @@ struct CEBlock {              /* block of CESPERBLOCK file entries */
     struct client entry[CESPERBLOCK];
 };
 
-void h_TossStuff_r(register struct host *host);
+void h_TossStuff_r(struct host *host);
 
 /*
  * Make sure the subnet macros have been defined.
@@ -120,8 +120,8 @@ void h_TossStuff_r(register struct host *host);
 static void
 GetCEBlock(void)
 {
-    register struct CEBlock *block;
-    register int i;
+    struct CEBlock *block;
+    int i;
 
     block = (struct CEBlock *)malloc(sizeof(struct CEBlock));
     if (!block) {
@@ -145,7 +145,7 @@ GetCEBlock(void)
 static struct client *
 GetCE(void)
 {
-    register struct client *entry;
+    struct client *entry;
 
     if (CEFree == 0)
        GetCEBlock();
@@ -165,7 +165,7 @@ GetCE(void)
 
 /* return an entry to the free list */
 static void
-FreeCE(register struct client *entry)
+FreeCE(struct client *entry)
 {
     entry->VenusEpoch = 0;
     entry->sid = 0;
@@ -202,8 +202,8 @@ struct HTBlock {            /* block of HTSPERBLOCK file entries */
 static void
 GetHTBlock(void)
 {
-    register struct HTBlock *block;
-    register int i;
+    struct HTBlock *block;
+    int i;
     static int index = 0;
 
     if (HTBlocks == h_MAXHOSTTABLES) {
@@ -237,7 +237,7 @@ GetHTBlock(void)
 static struct host *
 GetHT(void)
 {
-    register struct host *entry;
+    struct host *entry;
 
     if (HTFree == NULL)
        GetHTBlock();
@@ -253,7 +253,7 @@ GetHT(void)
 
 /* return an entry to the free list */
 static void
-FreeHT(register struct host *entry)
+FreeHT(struct host *entry)
 {
     entry->next = HTFree;
     HTFree = entry;
@@ -350,7 +350,7 @@ int
 hpr_GetHostCPS(afs_int32 host, prlist *CPS)
 {
 #ifdef AFS_PTHREAD_ENV
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 over;
     struct ubik_client *uclient = 
        (struct ubik_client *)pthread_getspecific(viced_uclient_key);
@@ -384,8 +384,8 @@ int
 hpr_NameToId(namelist *names, idlist *ids)
 {
 #ifdef AFS_PTHREAD_ENV
-    register afs_int32 code;
-    register afs_int32 i;
+    afs_int32 code;
+    afs_int32 i;
     struct ubik_client *uclient = 
        (struct ubik_client *)pthread_getspecific(viced_uclient_key);
 
@@ -410,7 +410,7 @@ int
 hpr_IdToName(idlist *ids, namelist *names)
 {
 #ifdef AFS_PTHREAD_ENV
-    register afs_int32 code;
+    afs_int32 code;
     struct ubik_client *uclient = 
        (struct ubik_client *)pthread_getspecific(viced_uclient_key);
     
@@ -433,7 +433,7 @@ int
 hpr_GetCPS(afs_int32 id, prlist *CPS)
 {
 #ifdef AFS_PTHREAD_ENV
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 over;
     struct ubik_client *uclient = 
        (struct ubik_client *)pthread_getspecific(viced_uclient_key);
@@ -465,7 +465,7 @@ hpr_GetCPS(afs_int32 id, prlist *CPS)
 static short consolePort = 0;
 
 int
-h_Lock_r(register struct host *host)
+h_Lock_r(struct host *host)
 {
     H_UNLOCK;
     h_Lock(host);
@@ -480,7 +480,7 @@ h_Lock_r(register struct host *host)
   */
 
 int
-h_NBLock_r(register struct host *host)
+h_NBLock_r(struct host *host)
 {
     struct Lock *hostLock = &host->lock;
     int locked = 0;
@@ -582,9 +582,9 @@ h_AddrInSameNetwork(afs_uint32 a_targetAddr, afs_uint32 a_candAddr)
 
 /* Assumptions: called with held host */
 void
-h_gethostcps_r(register struct host *host, register afs_int32 now)
+h_gethostcps_r(struct host *host, afs_int32 now)
 {
-    register int code;
+    int code;
     int slept = 0;
 
     /* wait if somebody else is already doing the getCPS call */
@@ -663,7 +663,7 @@ h_gethostcps_r(register struct host *host, register afs_int32 now)
 
 /* args in net byte order */
 void
-h_flushhostcps(register afs_uint32 hostaddr, register afs_uint16 hport)
+h_flushhostcps(afs_uint32 hostaddr, afs_uint16 hport)
 {
     struct host *host;
 
@@ -685,7 +685,7 @@ h_flushhostcps(register afs_uint32 hostaddr, register afs_uint16 hport)
 #define        DEF_ROPCONS 2115
 
 struct host *
-h_Alloc_r(register struct rx_connection *r_con)
+h_Alloc_r(struct rx_connection *r_con)
 {
     struct servent *serverentry;
     struct host *host;
@@ -839,9 +839,9 @@ h_LookupUuid_r(afsUUID * uuidp)
  * or host->clientDeleted must be set.
  */
 void
-h_TossStuff_r(register struct host *host)
+h_TossStuff_r(struct host *host)
 {
-    register struct client **cp, *client;
+    struct client **cp, *client;
     int code;
 
     /* make sure host doesn't go away over h_NBLock_r */
@@ -916,7 +916,7 @@ h_TossStuff_r(register struct host *host)
     host->hostFlags &= ~CLIENTDELETED;
 
     if (host->hostFlags & HOSTDELETED) {
-       register struct rx_connection *rxconn;
+       struct rx_connection *rxconn;
        struct AddrPort hostAddrPort;
        int i;
 
@@ -978,9 +978,9 @@ h_TossStuff_r(register struct host *host)
 void
 h_Enumerate(int (*proc) (struct host*, int, void *), void *param)
 {
-    register struct host *host, **list;
-    register int *flags;
-    register int i, count;
+    struct host *host, **list;
+    int *flags;
+    int i, count;
     int totalCount;
 
     H_LOCK;
@@ -1048,7 +1048,7 @@ void
 h_Enumerate_r(int (*proc) (struct host *, int, void *), 
              struct host *enumstart, void *param)
 {
-    register struct host *host, *next;
+    struct host *host, *next;
     int flags = 0;
     int nflags = 0;
     int count;
@@ -1175,7 +1175,7 @@ int
 h_DeleteHostFromUuidHashTable_r(struct host *host)
 {
      int index;
-     register struct h_UuidHashChain **uhp, *uth;
+     struct h_UuidHashChain **uhp, *uth;
      char uuid1[128];
      char hoststr[16];
  
@@ -2316,8 +2316,8 @@ MapName_r(char *aname, char *acell, afs_int32 * aval)
 struct client *
 h_ID2Client(afs_int32 vid)
 {
-    register struct client *client;
-    register struct host *host;
+    struct client *client;
+    struct host *host;
     int count;
 
     H_LOCK;
@@ -2357,7 +2357,7 @@ h_ID2Client(afs_int32 vid)
 struct client *
 h_FindClient_r(struct rx_connection *tcon)
 {
-    register struct client *client;
+    struct client *client;
     struct host *host = NULL;
     struct client *oldClient;
     afs_int32 viceid = 0;
@@ -2645,7 +2645,7 @@ h_ReleaseClient_r(struct client *client)
 int
 GetClient(struct rx_connection *tcon, struct client **cp)
 {
-    register struct client *client;
+    struct client *client;
     char hoststr[16];
 
     H_LOCK;
@@ -2735,10 +2735,10 @@ h_PrintStats(void)
 
 
 static int
-h_PrintClient(register struct host *host, int flags, void *rock)
+h_PrintClient(struct host *host, int flags, void *rock)
 {
     StreamHandle_t *file = (StreamHandle_t *)rock;
-    register struct client *client;
+    struct client *client;
     int i;
     char tmpStr[256];
     char tbuffer[32];
@@ -2825,7 +2825,7 @@ h_PrintClients(void)
 
 
 static int
-h_DumpHost(register struct host *host, int flags, void *rock)
+h_DumpHost(struct host *host, int flags, void *rock)
 {
     StreamHandle_t *file = (StreamHandle_t *)rock;
     
@@ -3474,8 +3474,8 @@ h_OldToNew(struct fs_dump_state * state, afs_uint32 old, afs_uint32 * new)
 void
 h_GetWorkStats(int *nump, int *activep, int *delp, afs_int32 cutofftime)
 {
-    register struct host *host;
-    register int num = 0, active = 0, del = 0;
+    struct host *host;
+    int num = 0, active = 0, del = 0;
     int count;
 
     H_LOCK;
@@ -3646,8 +3646,8 @@ h_GetHostNetStats(afs_int32 * a_numHostsP, afs_int32 * a_sameNetOrSubnetP,
                  afs_int32 * a_diffSubnetP, afs_int32 * a_diffNetworkP)
 {                              /*h_GetHostNetStats */
 
-    register struct host *hostP;       /*Ptr to current host entry */
-    register afs_uint32 currAddr_HBO;  /*Curr host addr, host byte order */
+    struct host *hostP;        /*Ptr to current host entry */
+    afs_uint32 currAddr_HBO;   /*Curr host addr, host byte order */
     int count;
 
     /*
@@ -3694,9 +3694,9 @@ static struct AFSFid zerofid;
  */
 #if 0
 static int
-CheckHost(register struct host *host, int flags, void *rock)
+CheckHost(struct host *host, int flags, void *rock)
 {
-    register struct client *client;
+    struct client *client;
     struct rx_connection *cb_conn = NULL;
     int code;
 
@@ -3800,9 +3800,9 @@ CheckHost(register struct host *host, int flags, void *rock)
 #endif
 
 int
-CheckHost_r(register struct host *host, int flags, void *dummy)
+CheckHost_r(struct host *host, int flags, void *dummy)
 {
-    register struct client *client;
+    struct client *client;
     struct rx_connection *cb_conn = NULL;
     int code;
 
@@ -4079,7 +4079,7 @@ h_DeleteHostFromAddrHashTable_r(afs_uint32 addr, afs_uint16 port,
                                struct host *host)
 {
     char hoststr[16];
-    register struct h_AddrHashChain **hp, *th;
+    struct h_AddrHashChain **hp, *th;
 
     if (addr == 0 && port == 0)
        return 1;
index 9c82d5a137ea5d5d1ebf0ea0748a00f8b7efd143..d4b364c4ff65136b2a8ab790e427866ada60983b 100644 (file)
@@ -155,7 +155,7 @@ extern int rxcon_client_key;
 /* N.B. h_UserName returns pointer to static data; also relatively expensive */
 extern char *h_UserName(struct client *client);
 #define h_Lock(host)    ObtainWriteLock(&(host)->lock)
-extern int h_Lock_r(register struct host *host);
+extern int h_Lock_r(struct host *host);
 #define h_Unlock(host)  ReleaseWriteLock(&(host)->lock)
 #define h_Unlock_r(host)  ReleaseWriteLock(&(host)->lock)
 
@@ -217,8 +217,8 @@ extern int PrintCallBackStats(void);
 extern void *ShutDown(void *);
 extern void ShutDownAndCore(int dopanic);
 
-extern struct host *h_Alloc(register struct rx_connection *r_con);
-extern struct host *h_Alloc_r(register struct rx_connection *r_con);
+extern struct host *h_Alloc(struct rx_connection *r_con);
+extern struct host *h_Alloc_r(struct rx_connection *r_con);
 extern int h_Lookup_r(afs_uint32 hostaddr, afs_uint16 hport,
                      struct host **hostp);
 extern struct host *h_LookupUuid_r(afsUUID * uuidp);
@@ -227,18 +227,18 @@ extern void h_Enumerate_r(int (*proc) (struct host *, int, void *), struct host
 extern struct host *h_GetHost_r(struct rx_connection *tcon);
 extern struct client *h_FindClient_r(struct rx_connection *tcon);
 extern int h_ReleaseClient_r(struct client *client);
-extern void h_TossStuff_r(register struct host *host);
+extern void h_TossStuff_r(struct host *host);
 extern struct client *h_ID2Client(afs_int32 vid);
 extern int GetClient(struct rx_connection *tcon, struct client **cp);
 extern int PutClient(struct client **cp);
 extern void h_PrintStats(void);
 extern void h_PrintClients(void);
 extern void h_GetWorkStats(int *, int *, int *, afs_int32);
-extern void h_flushhostcps(register afs_uint32 hostaddr,
-                          register afs_uint16 hport);
+extern void h_flushhostcps(afs_uint32 hostaddr,
+                          afs_uint16 hport);
 extern void h_GetHostNetStats(afs_int32 * a_numHostsP, afs_int32 * a_sameNetOrSubnetP,
                  afs_int32 * a_diffSubnetP, afs_int32 * a_diffNetworkP);
-extern int h_NBLock_r(register struct host *host);
+extern int h_NBLock_r(struct host *host);
 extern void h_DumpHosts(void);
 extern void h_InitHostPackage(void);
 extern void h_CheckHosts(void );
index fb2e070cd49aeef8b849119bec35c20c651c8598..227d6103886090ec62dd6b24f76f1eab85b0b803 100644 (file)
@@ -136,10 +136,10 @@ ReallyWrite(DirHandle * file, int block, char *data)
 
 
 void
-SetDirHandle(register DirHandle * dir, register Vnode * vnode)
+SetDirHandle(DirHandle * dir, Vnode * vnode)
 {
-    register Volume *vp = vnode->volumePtr;
-    register IHandle_t *h;
+    Volume *vp = vnode->volumePtr;
+    IHandle_t *h;
     IH_COPY(h, vnode->handle);
     dir->dirh_ino = h->ih_ino;
     dir->dirh_dev = h->ih_dev;
index d4ad4fa08c7bdfebf26892f80ee49c4c091c67d2..ba83f5f2ee9e1023bf07266d2c8973f45de05c4e 100644 (file)
@@ -285,8 +285,8 @@ CheckDescriptors(void *unused)
 {
 #ifndef AFS_NT40_ENV
     struct afs_stat status;
-    register int tsize = getdtablesize();
-    register int i;
+    int tsize = getdtablesize();
+    int i;
     for (i = 0; i < tsize; i++) {
        if (afs_fstat(i, &status) != -1) {
            printf("%d: dev %x, inode %u, length %u, type/mode %x\n", i,
@@ -1493,10 +1493,10 @@ static void
 NewParms(int initializing)
 {
     static struct afs_stat sbuf;
-    register int i, fd;
+    int i, fd;
     char *parms;
     char *argv[MAXPARMS];
-    register int argc;
+    int argc;
 
     if (!(afs_stat("/vice/file/parms", &sbuf))) {
        parms = (char *)malloc(sbuf.st_size);
@@ -1819,7 +1819,7 @@ WriteSysIdFile(void)
 static afs_int32
 Do_VLRegisterRPC(void)
 {
-    register int code;
+    int code;
     bulkaddrs addrs;
     afs_uint32 FS_HostAddrs_HBO[ADDRSPERSITE];
     int i = 0;
index 80f263a1242fb4ab9081be109e9f25dbfc118ae9..7c5387faad58de6383398d86a17d52adf4526a54 100644 (file)
@@ -55,7 +55,7 @@ static int convert_header(int ofd, int fd, int fromv, int tov, void *fromaddr,
 static char *
 Parent(const char *apath)
 {
-    register char *tp;
+    char *tp;
     strcpy(tspace, apath);
     tp = strrchr(tspace, '/');
     if (tp) {
@@ -979,7 +979,7 @@ rewrite_header(int new, int tovers, void *newheader)
 int
 main(int argc, char **argv)
 {
-    register struct cmd_syndesc *ts;
+    struct cmd_syndesc *ts;
     afs_int32 code;
 
     ts = cmd_CreateSyntax("initcmd", handleit, NULL, "optional");
index 42b9d30f81451cfe7eb18e2b5a504cdd4bad1da3..ebdedb2d2db48ecb5dae08c1efca501007b713ba 100644 (file)
@@ -93,7 +93,7 @@ static char *
 Parent(apath)
      char *apath;
 {
-    register char *tp;
+    char *tp;
     strcpy(tspace, apath);
     tp = strrchr(tspace, '/');
     if (tp) {
@@ -108,10 +108,10 @@ Parent(apath)
 /* this function returns TRUE (1) if the file is in AFS, otherwise false (0) */
 static int
 InAFS(apath)
-     register char *apath;
+     char *apath;
 {
     struct ViceIoctl blob;
-    register afs_int32 code;
+    afs_int32 code;
 
     blob.in_size = 0;
     blob.out_size = AFS_PIOCTL_MAXSIZE;
@@ -147,11 +147,11 @@ QuickPrintStatus(status, name)
 
 
 static int
-ListQuotaCmd(register struct cmd_syndesc *as, void *arock)
+ListQuotaCmd(struct cmd_syndesc *as, void *arock)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct ViceIoctl blob;
-    register struct cmd_item *ti;
+    struct cmd_item *ti;
     struct VolumeStatus *status;
     char *name;
 
@@ -248,7 +248,7 @@ main(argc, argv)
      int argc;
      char **argv;
 {
-    register afs_int32 code;
+    afs_int32 code;
     int old, new, rc;
     short uvers;
     char ubik[80];             /* space for some ubik header */
index 7186d68a7b22bfd54746910242f753d4d230d9dc..3614362f8903a499dd872e57f2743bd439ce9d8f 100644 (file)
@@ -122,8 +122,8 @@ char *(args[50]);
 struct Vlent *
 GetVolume(int vol, struct vldbentry *entry)
 {
-    register int i;
-    register struct Vlent *vl;
+    int i;
+    struct Vlent *vl;
 
     if (!vol)
        return NULL;
@@ -163,10 +163,10 @@ vl_Initialize(int auth, char *confDir, int server, char *cellp)
 afs_int32
 GetServer(char *aname)
 {
-    register struct hostent *th;
+    struct hostent *th;
     afs_uint32 addr;
     int b1, b2, b3, b4;
-    register afs_int32 code;
+    afs_int32 code;
 
     code = sscanf(aname, "%d.%d.%d.%d", &b1, &b2, &b3, &b4);
     if (code == 4) {
@@ -184,8 +184,8 @@ GetServer(char *aname)
 static int
 handleit(struct cmd_syndesc *as, void *arock)
 {
-    register struct cmd_item *ti;
-    register afs_int32 code, server = 0, sawserver = 0;
+    struct cmd_item *ti;
+    afs_int32 code, server = 0, sawserver = 0;
     afs_int32 id, voltype;
     struct vldbentry entry;
     char *cellp = 0;
@@ -241,7 +241,7 @@ handleit(struct cmd_syndesc *as, void *arock)
            exit(0);
        } else {
            char *oper, *vname;
-           register char **argp = args;
+           char **argp = args;
 
            GetArgs(line, argp, &nargs);
            oper = &argp[0][0];
@@ -1024,7 +1024,7 @@ handleit(struct cmd_syndesc *as, void *arock)
 int
 main(int argc, char **argv)
 {
-    register struct cmd_syndesc *ts;
+    struct cmd_syndesc *ts;
     afs_int32 code;
 
     strcpy(confdir, AFSDIR_CLIENT_ETC_DIRPATH);
@@ -1319,7 +1319,7 @@ GetArgs(char *line, char **args, int *nargs)
 {
     *nargs = 0;
     while (*line) {
-       register char *last = line;
+       char *last = line;
        while (isspace(*line))
            line++;
        if (isspace(*last))
index 4668faf6891991c5e41d71d9536dea549b5ea881..700d603d372d27bc019f5e17aefca885f475b3bd 100644 (file)
@@ -94,7 +94,7 @@ static char *
 rxinfo(char * str, struct rx_call *rxcall)
 {
     int code;
-    register struct rx_connection *tconn;
+    struct rx_connection *tconn;
     char tname[64] = "";
     char tinst[64] = "";
     char tcell[64] = "";
@@ -485,7 +485,7 @@ SVL_GetEntryByIDU(struct rx_call *rxcall,
 static int
 NameIsId(char *aname)
 {
-    register int tc;
+    int tc;
     while ((tc = *aname++)) {
        if (tc > '9' || tc < '0')
            return 0;
@@ -1939,7 +1939,7 @@ SVL_GetStats(struct rx_call *rxcall,
             vldstats *stats,
             vital_vlheader *vital_header)
 {
-    register afs_int32 errorcode;
+    afs_int32 errorcode;
     struct ubik_trans *trans;
     char rxstr[AFS_RXINFO_LEN];
 
@@ -1970,7 +1970,7 @@ SVL_GetAddrs(struct rx_call *rxcall,
             afs_int32 *nentries,
             bulkaddrs *addrsp)
 {
-    register afs_int32 errorcode;
+    afs_int32 errorcode;
     struct ubik_trans *trans;
     int nservers, i;
     afs_uint32 *taddrp;
@@ -2390,7 +2390,7 @@ SVL_GetAddrsU(struct rx_call *rxcall,
              afs_int32 *nentries,
              bulkaddrs *addrsp)
 {
-    register afs_int32 errorcode, index = -1, offset;
+    afs_int32 errorcode, index = -1, offset;
     struct ubik_trans *trans;
     int nservers, i, j, base = 0;
     struct extentaddr *exp = 0;
@@ -2606,7 +2606,7 @@ static int
 RemoveEntry(struct ubik_trans *trans, afs_int32 entryptr,
            struct nvlentry *tentry)
 {
-    register int errorcode;
+    int errorcode;
 
     if ((errorcode = UnthreadVLentry(trans, entryptr, tentry)))
        return errorcode;
@@ -3135,10 +3135,10 @@ InvalidReleasetype(afs_int32 releasetype)
 }
 
 static int
-IpAddrToRelAddr(register afs_uint32 ipaddr, struct ubik_trans *atrans)
+IpAddrToRelAddr(afs_uint32 ipaddr, struct ubik_trans *atrans)
 {
-    register int i, j;
-    register afs_int32 code, base, index;
+    int i, j;
+    afs_int32 code, base, index;
     struct extentaddr *exp;
 
     for (i = 0; i <= MAXSERVERID; i++) {
index 417347943e0a76023b46ff5067b68a5373b63348..a741c323df088efdccbfb0babd02ec43fbdabd35 100644 (file)
@@ -86,7 +86,7 @@ CheckSignal_Signal(int unused)
 static void *
 CheckSignal(void *unused)
 {
-    register int i, errorcode;
+    int i, errorcode;
     struct ubik_trans *trans;
 
     if ((errorcode =
@@ -131,7 +131,7 @@ vldb_rxstat_userok(struct rx_call *call)
 int
 main(int argc, char **argv)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_uint32 myHost;
     struct rx_service *tservice;
     struct rx_securityClass **securityClasses;
index 46311f3a2a5925d9eea188b5a06ae926db3238b2..b7764bab5adc0dc142d480f64f0d34efa561bb25 100644 (file)
@@ -18,10 +18,10 @@ extern afs_int32 vlwrite(struct ubik_trans *trans, afs_int32 offset,
                         void *buffer, afs_int32 length);
 extern afs_int32 vlentrywrite(struct ubik_trans *trans, afs_int32 offset,
                              void *buffer, afs_int32 length);
-extern int write_vital_vlheader(register struct ubik_trans *trans);
+extern int write_vital_vlheader(struct ubik_trans *trans);
 extern afs_int32 readExtents(struct ubik_trans *trans);
 extern afs_int32 CheckInit(struct ubik_trans *trans, int builddb);
-extern afs_int32 AllocBlock(register struct ubik_trans *trans,
+extern afs_int32 AllocBlock(struct ubik_trans *trans,
                            struct nvlentry *tentry);
 extern afs_int32 FindExtentBlock(struct ubik_trans *trans, afsUUID *uuidp,
                                 afs_int32 createit, afs_int32 hostslot,
index cd9ff5cdc6a3bc33f1c9072d13d74a7d5c2bcb79..a7725d650ebe2d1ec831ff3ad0295c808f83cdc2 100644 (file)
@@ -47,10 +47,10 @@ IDHash(afs_int32 volumeid)
 
 /* Hashing algorithm based on the volume name; name's size is implicit (64 chars) and if changed it should be reflected here. */
 afs_int32
-NameHash(register char *volumename)
+NameHash(char *volumename)
 {
-    register unsigned int hash;
-    register int i;
+    unsigned int hash;
+    int i;
 
     hash = 0;
     for (i = strlen(volumename), volumename += i - 1; i--; volumename--)
@@ -93,7 +93,7 @@ vlentrywrite(struct ubik_trans *trans, afs_int32 offset, void *buffer,
     struct vlentry oentry;
     struct nvlentry nentry, *nep;
     char *bufp;
-    register afs_int32 i;
+    afs_int32 i;
 
     if (length != sizeof(oentry))
        return -1;
@@ -142,7 +142,7 @@ vlentryread(struct ubik_trans *trans, afs_int32 offset, char *buffer,
     struct vlentry *oep, tentry;
     struct nvlentry *nep, *nbufp;
     char *bufp = (char *)&tentry;
-    register afs_int32 i;
+    afs_int32 i;
 
     if (length != sizeof(vlentry))
        return -1;
@@ -188,7 +188,7 @@ vlentryread(struct ubik_trans *trans, afs_int32 offset, char *buffer,
 
 /* Convenient write of small critical vldb header info to the database. */
 int
-write_vital_vlheader(register struct ubik_trans *trans)
+write_vital_vlheader(struct ubik_trans *trans)
 {
     if (vlwrite
        (trans, 0, (char *)&cheader.vital_header, sizeof(vital_vlheader)))
@@ -391,7 +391,7 @@ CheckInit(struct ubik_trans *trans, int builddb)
 
 
 afs_int32
-GetExtentBlock(register struct ubik_trans *trans, register afs_int32 base)
+GetExtentBlock(struct ubik_trans *trans, afs_int32 base)
 {
     afs_int32 blockindex, code, error = 0;
 
@@ -449,13 +449,13 @@ GetExtentBlock(register struct ubik_trans *trans, register afs_int32 base)
 
 
 afs_int32
-FindExtentBlock(register struct ubik_trans *trans, afsUUID *uuidp,
+FindExtentBlock(struct ubik_trans *trans, afsUUID *uuidp,
                afs_int32 createit, afs_int32 hostslot,
                struct extentaddr **expp, afs_int32 *basep)
 {
     afsUUID tuuid;
     struct extentaddr *exp;
-    register afs_int32 i, j, code, base, index, error = 0;
+    afs_int32 i, j, code, base, index, error = 0;
 
     *expp = NULL;
     *basep = 0;
@@ -553,9 +553,9 @@ FindExtentBlock(register struct ubik_trans *trans, afsUUID *uuidp,
 /* Allocate a free block of storage for entry, returning address of a new
    zeroed entry (or zero if something is wrong).  */
 afs_int32
-AllocBlock(register struct ubik_trans *trans, struct nvlentry *tentry)
+AllocBlock(struct ubik_trans *trans, struct nvlentry *tentry)
 {
-    register afs_int32 blockindex;
+    afs_int32 blockindex;
 
     if (cheader.vital_header.freePtr) {
        /* allocate this dude */
@@ -607,7 +607,7 @@ afs_int32
 FindByID(struct ubik_trans *trans, afs_uint32 volid, afs_int32 voltype,
         struct nvlentry *tentry, afs_int32 *error)
 {
-    register afs_int32 typeindex, hashindex, blockindex;
+    afs_int32 typeindex, hashindex, blockindex;
 
     *error = 0;
     hashindex = IDHash(volid);
@@ -650,8 +650,8 @@ afs_int32
 FindByName(struct ubik_trans *trans, char *volname, struct nvlentry *tentry,
           afs_int32 *error)
 {
-    register afs_int32 hashindex;
-    register afs_int32 blockindex;
+    afs_int32 hashindex;
+    afs_int32 blockindex;
     char tname[VL_MAXNAMELEN];
 
     /* remove .backup or .readonly extensions for stupid backwards
@@ -764,8 +764,8 @@ NextUnusedID(struct ubik_trans *trans, afs_uint32 maxvolid, afs_uint32 bump,
 int
 HashNDump(struct ubik_trans *trans, int hashindex)
 {
-    register int i = 0;
-    register int blockindex;
+    int i = 0;
+    int blockindex;
     struct nvlentry tentry;
 
     for (blockindex = ntohl(cheader.VolnameHash[hashindex]);
@@ -784,8 +784,8 @@ HashNDump(struct ubik_trans *trans, int hashindex)
 int
 HashIdDump(struct ubik_trans *trans, int hashindex)
 {
-    register int i = 0;
-    register int blockindex;
+    int i = 0;
+    int blockindex;
     struct nvlentry tentry;
 
     for (blockindex = ntohl(cheader.VolidHash[0][hashindex]);
@@ -849,7 +849,7 @@ int
 UnthreadVLentry(struct ubik_trans *trans, afs_int32 blockindex,
                struct nvlentry *aentry)
 {
-    register afs_int32 errorcode, typeindex;
+    afs_int32 errorcode, typeindex;
 
     if (!index_OK(trans, blockindex))
        return VL_BADINDEX;
@@ -950,8 +950,8 @@ int
 HashVolname(struct ubik_trans *trans, afs_int32 blockindex,
            struct nvlentry *aentry)
 {
-    register afs_int32 hashindex;
-    register afs_int32 code;
+    afs_int32 hashindex;
+    afs_int32 code;
 
     /* Insert into volname's hash linked list */
     hashindex = NameHash(aentry->name);
@@ -970,7 +970,7 @@ int
 UnhashVolname(struct ubik_trans *trans, afs_int32 blockindex,
              struct nvlentry *aentry)
 {
-    register afs_int32 hashindex, nextblockindex, prevblockindex;
+    afs_int32 hashindex, nextblockindex, prevblockindex;
     struct nvlentry tentry;
     afs_int32 temp;
 
@@ -1014,7 +1014,7 @@ afs_int32
 NextEntry(struct ubik_trans *trans, afs_int32 blockindex,
          struct nvlentry *tentry, afs_int32 *remaining)
 {
-    register afs_int32 lastblockindex;
+    afs_int32 lastblockindex;
 
     if (blockindex == 0)       /* get first one */
        blockindex = sizeof(cheader);
index 13cef1bb6256ddb7a90a1fc1bd77c445152169d9..9f4aedd85ee0d0f031ef68c7c136f085e752b916 100644 (file)
@@ -84,7 +84,7 @@ void CloneVolume(Error *, Volume *, Volume *, Volume *);
 static int
 ci_AddItem(struct clone_head *ah, Inode aino)
 {
-    register struct clone_items *ti;
+    struct clone_items *ti;
 
     /* if no last elt (first call) or last item full, get a new one */
     if ((!ah->last) || ah->last->nitems >= CLONE_MAXITEMS) {
@@ -124,8 +124,8 @@ ci_InitHead(struct clone_head *ah)
 int
 ci_Apply(struct clone_head *ah, int (*aproc) (Inode,  void *), void *arock)
 {
-    register struct clone_items *ti;
-    register int i;
+    struct clone_items *ti;
+    int i;
 
     for (ti = ah->first; ti; ti = ti->next) {
        for (i = 0; i < ti->nitems; i++) {
@@ -139,7 +139,7 @@ ci_Apply(struct clone_head *ah, int (*aproc) (Inode,  void *), void *arock)
 int
 ci_Destroy(struct clone_head *ah)
 {
-    register struct clone_items *ti, *ni;
+    struct clone_items *ti, *ni;
 
     for (ti = ah->first; ti; ti = ni) {
        ni = ti->next;          /* guard against freeing */
index ec02d3101ef3b41a6e424a8123a688f573e2e27f..b9a382d0de42030c4af1c3ee5a05ddc404d6f0e4 100644 (file)
@@ -260,7 +260,7 @@ main(int argc, char **argv)
 static int
 common_prolog(struct cmd_syndesc * as, struct state * state)
 {
-    register struct cmd_item *ti;
+    struct cmd_item *ti;
     VolumePackageOptions opts;
 
 #ifdef AFS_NT40_ENV
@@ -308,7 +308,7 @@ common_prolog(struct cmd_syndesc * as, struct state * state)
 static int
 common_volop_prolog(struct cmd_syndesc * as, struct state * state)
 {
-    register struct cmd_item *ti;
+    struct cmd_item *ti;
 
     state->vop = (struct volop_state *) calloc(1, sizeof(struct volop_state));
     assert(state->vop != NULL);
@@ -899,7 +899,7 @@ VolOpQuery(struct cmd_syndesc * as, void * rock)
 static int
 vn_prolog(struct cmd_syndesc * as, struct state * state)
 {
-    register struct cmd_item *ti;
+    struct cmd_item *ti;
 
     state->vop = (struct volop_state *) calloc(1, sizeof(struct volop_state));
     assert(state->vop != NULL);
index b56eff6c2a30f7095ee9a6e58ca51218259552c0..a13d16058255c6ebe286b56b30b0a53be63dc0f5 100644 (file)
@@ -1964,7 +1964,7 @@ static void (*HandlerProc[MAXHANDLERS]) (osi_socket);
 static void
 InitHandler(void)
 {
-    register int i;
+    int i;
     ObtainWriteLock(&FSYNC_handler_lock);
     for (i = 0; i < MAXHANDLERS; i++) {
        HandlerFD[i] = -1;
@@ -1994,7 +1994,7 @@ CallHandler(struct pollfd *fds, int nfds, int mask)
 static void
 CallHandler(fd_set * fdsetp)
 {
-    register int i;
+    int i;
     ObtainReadLock(&FSYNC_handler_lock);
     for (i = 0; i < MAXHANDLERS; i++) {
        if (HandlerFD[i] >= 0 && FD_ISSET(HandlerFD[i], fdsetp)) {
@@ -2010,7 +2010,7 @@ CallHandler(fd_set * fdsetp)
 static int
 AddHandler(osi_socket afd, void (*aproc) (osi_socket))
 {
-    register int i;
+    int i;
     ObtainWriteLock(&FSYNC_handler_lock);
     for (i = 0; i < MAXHANDLERS; i++)
        if (HandlerFD[i] == -1)
@@ -2026,9 +2026,9 @@ AddHandler(osi_socket afd, void (*aproc) (osi_socket))
 }
 
 static int
-FindHandler(register osi_socket afd)
+FindHandler(osi_socket afd)
 {
-    register int i;
+    int i;
     ObtainReadLock(&FSYNC_handler_lock);
     for (i = 0; i < MAXHANDLERS; i++)
        if (HandlerFD[i] == afd) {
@@ -2041,9 +2041,9 @@ FindHandler(register osi_socket afd)
 }
 
 static int
-FindHandler_r(register osi_socket afd)
+FindHandler_r(osi_socket afd)
 {
-    register int i;
+    int i;
     for (i = 0; i < MAXHANDLERS; i++)
        if (HandlerFD[i] == afd) {
            return i;
@@ -2053,7 +2053,7 @@ FindHandler_r(register osi_socket afd)
 }
 
 static int
-RemoveHandler(register osi_socket afd)
+RemoveHandler(osi_socket afd)
 {
     ObtainWriteLock(&FSYNC_handler_lock);
     HandlerFD[FindHandler_r(afd)] = -1;
@@ -2083,8 +2083,8 @@ GetHandler(struct pollfd *fds, int maxfds, int events, int *nfds)
 static void
 GetHandler(fd_set * fdsetp, int *maxfdp)
 {
-    register int i;
-    register int maxfd = -1;
+    int i;
+    int maxfd = -1;
     FD_ZERO(fdsetp);
     ObtainReadLock(&FSYNC_handler_lock);       /* just in case */
     for (i = 0; i < MAXHANDLERS; i++)
index 7854a5862184eebf77dc5707e2e42eb588a9e6db..7bb461992f4c3a2046a1c994760125531660fda9 100644 (file)
@@ -1130,7 +1130,7 @@ ListViceInodes(char *devname, char *mountedOn, FILE *inodeFile,
                    goto out;
                }
            } else {
-               register int bj, bk;
+               int bj, bk;
                dptr = inodes;
                for (bj = bk = 0; bj < bufsize; bj = bj + 512, bk++) {
                    if ((code = read(pfd, dptr, 512)) != 512) {
index ae26a479243c2d2a68b4f79a56d397da451fab4e..0bd832e5bc54066922d1bfa641062424cdfbabcf 100644 (file)
@@ -76,7 +76,7 @@ NukeProc(struct ViceInodeInfo *ainfo, afs_uint32 avolid, void *arock)
 {
     struct ilist **allInodes = (struct ilist **)arock;
     struct ilist *ti;
-    register afs_int32 i;
+    afs_int32 i;
 
 #ifndef AFS_PTHREAD_ENV
     IOMGR_Poll();              /* poll so we don't kill the RPC connection */
@@ -115,7 +115,7 @@ nuke(char *aname, afs_int32 avolid)
     /* first process the partition containing this junk */
     struct afs_stat tstat;
     struct ilist *ti, *ni, *li=NULL;
-    register afs_int32 code;
+    afs_int32 code;
     int i, forceSal;
     char wpath[100];
     char *lastDevComp;
index f9297f9248f76b6e03d5404befbfa38b62f74d69..080849c0a9e789b040dc6397a42bf8b320175140 100644 (file)
@@ -545,10 +545,10 @@ VAttachPartitions(void)
  * (This function was grabbed from df.c)
  */
 int
-getmount(register struct vmount **vmountpp)
+getmount(struct vmount **vmountpp)
 {
     int size;
-    register struct vmount *vm;
+    struct vmount *vm;
     int nmounts;
 
     /* set initial size of mntctl buffer to a MAGIC NUMBER */
@@ -874,7 +874,7 @@ VPartitionPath(struct DiskPartition64 *part)
 struct DiskPartition64 *
 VGetPartition_r(char *name, int abortp)
 {
-    register struct DiskPartition64 *dp;
+    struct DiskPartition64 *dp;
 #ifdef AFS_DEMAND_ATTACH_FS
     dp = VLookupPartition_r(name);
 #else /* AFS_DEMAND_ATTACH_FS */
@@ -900,7 +900,7 @@ VGetPartition(char *name, int abortp)
 
 #ifdef AFS_NT40_ENV
 void
-VSetPartitionDiskUsage_r(register struct DiskPartition64 *dp)
+VSetPartitionDiskUsage_r(struct DiskPartition64 *dp)
 {
     ULARGE_INTEGER free_user, total, free_total;
     int ufree, tot, tfree;
@@ -924,7 +924,7 @@ VSetPartitionDiskUsage_r(register struct DiskPartition64 *dp)
 
 #else
 void
-VSetPartitionDiskUsage_r(register struct DiskPartition64 *dp)
+VSetPartitionDiskUsage_r(struct DiskPartition64 *dp)
 {
     int bsize, code;
     afs_int64 totalblks, free, used, availblks;
@@ -990,7 +990,7 @@ VSetPartitionDiskUsage_r(register struct DiskPartition64 *dp)
 #endif /* AFS_NT40_ENV */
 
 void
-VSetPartitionDiskUsage(register struct DiskPartition64 *dp)
+VSetPartitionDiskUsage(struct DiskPartition64 *dp)
 {
     VOL_LOCK;
     VSetPartitionDiskUsage_r(dp);
@@ -1144,7 +1144,7 @@ VLockPartition_r(char *name)
 void
 VUnlockPartition_r(char *name)
 {
-    register struct DiskPartition64 *dp = VGetPartition_r(name, 0);
+    struct DiskPartition64 *dp = VGetPartition_r(name, 0);
     OVERLAPPED lap;
 
     if (!dp)
@@ -1167,7 +1167,7 @@ VUnlockPartition_r(char *name)
 void
 VLockPartition_r(char *name)
 {
-    register struct DiskPartition64 *dp = VGetPartition_r(name, 0);
+    struct DiskPartition64 *dp = VGetPartition_r(name, 0);
     char *partitionName;
     int retries, code;
     struct timeval pausing;
@@ -1274,7 +1274,7 @@ VLockPartition_r(char *name)
 void
 VUnlockPartition_r(char *name)
 {
-    register struct DiskPartition64 *dp = VGetPartition_r(name, 0);
+    struct DiskPartition64 *dp = VGetPartition_r(name, 0);
     if (!dp)
        return;                 /* no partition, will fail later */
     close(dp->lock_fd);
index 15ee14c6eb85c357021d0a59be9766b33fb97daa..c122c0563a5706b0c637f6a3f0349219e7dcd1ce 100644 (file)
@@ -178,8 +178,8 @@ extern void VUnlockPartition(char *name);
 extern void VUnlockPartition_r(char *name);
 extern void VResetDiskUsage(void);
 extern void VResetDiskUsage_r(void);
-extern void VSetPartitionDiskUsage(register struct DiskPartition64 *dp);
-extern void VSetPartitionDiskUsage_r(register struct DiskPartition64 *dp);
+extern void VSetPartitionDiskUsage(struct DiskPartition64 *dp);
+extern void VSetPartitionDiskUsage_r(struct DiskPartition64 *dp);
 extern char *VPartitionPath(struct DiskPartition64 *p);
 extern void VAdjustDiskUsage(Error * ec, struct Volume *vp,
                             afs_sfsize_t blocks, afs_sfsize_t checkBlocks);
index d1f0fb6c8f8c312e3fe5c396ecf9018f7603416f..8b2d51778bbbef17e077a17578155226fce4a6e9 100644 (file)
@@ -108,15 +108,15 @@ static int
 ObliterateRegion(Volume * avp, VnodeClass aclass, StreamHandle_t * afile,
                 afs_int32 * aoffset)
 {
-    register struct VnodeClassInfo *vcp;
+    struct VnodeClassInfo *vcp;
     Inode inodes[MAXOBLITATONCE];
-    register afs_int32 iindex, nscanned;
+    afs_int32 iindex, nscanned;
     afs_int32 offset;
     char buf[SIZEOF_LARGEDISKVNODE];
     int hitEOF;
-    register int i;
-    register afs_int32 code;
-    register struct VnodeDiskObject *vnode = (struct VnodeDiskObject *)buf;
+    int i;
+    afs_int32 code;
+    struct VnodeDiskObject *vnode = (struct VnodeDiskObject *)buf;
 
     hitEOF = 0;
     vcp = &VnodeClassInfo[aclass];
@@ -187,7 +187,7 @@ PurgeIndex_r(Volume * vp, VnodeClass class)
     StreamHandle_t *ifile;
     struct VnodeClassInfo *vcp = &VnodeClassInfo[class];
     afs_int32 offset;
-    register afs_int32 code;
+    afs_int32 code;
     FdHandle_t *fdP;
 
 
index 6b6199d76221a7293c9146370b6ac2734fd1327b..1a2a2caf65374a13104f43e7ed32fd0df54ab08f 100644 (file)
@@ -182,7 +182,7 @@ struct {
 static int
 handleit(struct cmd_syndesc *as, void *arock)
 {
-    register struct cmd_item *ti;
+    struct cmd_item *ti;
     char pname[100], *temp;
     afs_int32 seenpart = 0, seenvol = 0, vid = 0;
     struct cmdline_rock *rock = (struct cmdline_rock *)arock;
index c12f338c4b439ffac8a22e3f9273be0566b52bc9..7e141c29cbc43a0e60df03281c9c63462e5f68ef 100644 (file)
@@ -131,7 +131,7 @@ static int get_salvage_lock = 0;
 static int
 handleit(struct cmd_syndesc *as, void *arock)
 {
-    register struct cmd_item *ti;
+    struct cmd_item *ti;
     char pname[100], *temp;
     afs_int32 seenpart = 0, seenvol = 0, vid = 0;
     ProgramType pt;
index 1a9ab88a3ae71da0158eb560ec1881cb68b3a0b8..aae6a1a8dfc782e8521fa3b70b12cd5343a30ced 100644 (file)
@@ -99,9 +99,9 @@ static void AcceptOff(void);
 static void InitHandler(void);
 static void CallHandler(fd_set * fdsetp);
 static int AddHandler(osi_socket afd, void (*aproc) (int));
-static int FindHandler(register osi_socket afd);
-static int FindHandler_r(register osi_socket afd);
-static int RemoveHandler(register osi_socket afd);
+static int FindHandler(osi_socket afd);
+static int FindHandler_r(osi_socket afd);
+static int RemoveHandler(osi_socket afd);
 static void GetHandler(fd_set * fdsetp, int *maxfdp);
 
 static int AllocNode(struct SalvageQueueNode ** node);
@@ -796,7 +796,7 @@ AcceptOff(void)
 static void
 InitHandler(void)
 {
-    register int i;
+    int i;
     ObtainWriteLock(&SALVSYNC_handler_lock);
     for (i = 0; i < MAXHANDLERS; i++) {
        HandlerFD[i] = -1;
@@ -808,7 +808,7 @@ InitHandler(void)
 static void
 CallHandler(fd_set * fdsetp)
 {
-    register int i;
+    int i;
     ObtainReadLock(&SALVSYNC_handler_lock);
     for (i = 0; i < MAXHANDLERS; i++) {
        if (HandlerFD[i] >= 0 && FD_ISSET(HandlerFD[i], fdsetp)) {
@@ -823,7 +823,7 @@ CallHandler(fd_set * fdsetp)
 static int
 AddHandler(osi_socket afd, void (*aproc) (int))
 {
-    register int i;
+    int i;
     ObtainWriteLock(&SALVSYNC_handler_lock);
     for (i = 0; i < MAXHANDLERS; i++)
        if (HandlerFD[i] == -1)
@@ -839,9 +839,9 @@ AddHandler(osi_socket afd, void (*aproc) (int))
 }
 
 static int
-FindHandler(register osi_socket afd)
+FindHandler(osi_socket afd)
 {
-    register int i;
+    int i;
     ObtainReadLock(&SALVSYNC_handler_lock);
     for (i = 0; i < MAXHANDLERS; i++)
        if (HandlerFD[i] == afd) {
@@ -854,9 +854,9 @@ FindHandler(register osi_socket afd)
 }
 
 static int
-FindHandler_r(register osi_socket afd)
+FindHandler_r(osi_socket afd)
 {
-    register int i;
+    int i;
     for (i = 0; i < MAXHANDLERS; i++)
        if (HandlerFD[i] == afd) {
            return i;
@@ -866,7 +866,7 @@ FindHandler_r(register osi_socket afd)
 }
 
 static int
-RemoveHandler(register osi_socket afd)
+RemoveHandler(osi_socket afd)
 {
     ObtainWriteLock(&SALVSYNC_handler_lock);
     HandlerFD[FindHandler_r(afd)] = -1;
@@ -877,8 +877,8 @@ RemoveHandler(register osi_socket afd)
 static void
 GetHandler(fd_set * fdsetp, int *maxfdp)
 {
-    register int i;
-    register int maxfd = -1;
+    int i;
+    int maxfd = -1;
     FD_ZERO(fdsetp);
     ObtainReadLock(&SALVSYNC_handler_lock);    /* just in case */
     for (i = 0; i < MAXHANDLERS; i++)
index 78403e63de8e5c68a307d77b00d987fde60132b0..0dda161843ec549bb28c987517ea5063dbced668 100644 (file)
@@ -544,9 +544,9 @@ printDirs(partitionName)
 ader */
 static
 ComputeUsedPages(dhp)
-     register struct DirHeader *dhp;
+     struct DirHeader *dhp;
 {
-    register afs_int32 usedPages, i;
+    afs_int32 usedPages, i;
 
     if (dhp->header.pgcount != 0) {
        /* new style */
index 3ae24e751ca63b9446e11e6cf712e572c3ab5e89..94635cb8e48f38bfa604965809a265e63868f033 100644 (file)
@@ -109,7 +109,7 @@ static afs_int32 vnLogPtr = 0;
 void
 VNLog(afs_int32 aop, afs_int32 anparms, ... )
 {
-    register afs_int32 temp;
+    afs_int32 temp;
     va_list ap;
 
     va_start(ap, anparms);
@@ -196,7 +196,7 @@ AddToVVnList(Volume * vp, Vnode * vnp)
  * @internal volume package internal use only
  */
 void
-DeleteFromVVnList(register Vnode * vnp)
+DeleteFromVVnList(Vnode * vnp)
 {
     Vn_volume(vnp) = NULL;
 
@@ -344,7 +344,7 @@ DeleteFromVnHash(Vnode * vnp)
  * @internal vnode package internal use only
  */
 void
-VInvalidateVnode_r(register struct Vnode *avnode)
+VInvalidateVnode_r(struct Vnode *avnode)
 {
     avnode->changed_newTime = 0;       /* don't let it get flushed out again */
     avnode->changed_oldTime = 0;
@@ -375,7 +375,7 @@ int
 VInitVnodes(VnodeClass class, int nVnodes)
 {
     byte *va;
-    register struct VnodeClassInfo *vcp = &VnodeClassInfo[class];
+    struct VnodeClassInfo *vcp = &VnodeClassInfo[class];
 
     vcp->allocs = vcp->gets = vcp->reads = vcp->writes = 0;
     vcp->cacheSize = nVnodes;
@@ -470,7 +470,7 @@ VInitVnodes(VnodeClass class, int nVnodes)
 Vnode *
 VGetFreeVnode_r(struct VnodeClassInfo * vcp)
 {
-    register Vnode *vnp;
+    Vnode *vnp;
 
     vnp = vcp->lruHead->lruPrev;
 #ifdef AFS_DEMAND_ATTACH_FS
@@ -585,10 +585,10 @@ VAllocVnode(Error * ec, Volume * vp, VnodeType type)
 Vnode *
 VAllocVnode_r(Error * ec, Volume * vp, VnodeType type)
 {
-    register Vnode *vnp;
+    Vnode *vnp;
     VnodeId vnodeNumber;
     int bitNumber;
-    register struct VnodeClassInfo *vcp;
+    struct VnodeClassInfo *vcp;
     VnodeClass class;
     Unique unique;
 #ifdef AFS_DEMAND_ATTACH_FS
@@ -1124,7 +1124,7 @@ VGetVnode(Error * ec, Volume * vp, VnodeId vnodeNumber, int locktype)
 Vnode *
 VGetVnode_r(Error * ec, Volume * vp, VnodeId vnodeNumber, int locktype)
 {                              /* READ_LOCK or WRITE_LOCK, as defined in lock.h */
-    register Vnode *vnp;
+    Vnode *vnp;
     VnodeClass class;
     struct VnodeClassInfo *vcp;
 
@@ -1298,7 +1298,7 @@ int TrustVnodeCacheEntry = 1;
 /* This variable is bogus--when it's set to 0, the hash chains fill
    up with multiple versions of the same vnode.  Should fix this!! */
 void
-VPutVnode(Error * ec, register Vnode * vnp)
+VPutVnode(Error * ec, Vnode * vnp)
 {
     VOL_LOCK;
     VPutVnode_r(ec, vnp);
@@ -1321,7 +1321,7 @@ VPutVnode(Error * ec, register Vnode * vnp)
  * @internal volume package internal use only
  */
 void
-VPutVnode_r(Error * ec, register Vnode * vnp)
+VPutVnode_r(Error * ec, Vnode * vnp)
 {
     int writeLocked;
     VnodeClass class;
@@ -1430,7 +1430,7 @@ VPutVnode_r(Error * ec, register Vnode * vnp)
  * been deleted.
  */
 int
-VVnodeWriteToRead(Error * ec, register Vnode * vnp)
+VVnodeWriteToRead(Error * ec, Vnode * vnp)
 {
     int retVal;
     VOL_LOCK;
@@ -1457,7 +1457,7 @@ VVnodeWriteToRead(Error * ec, register Vnode * vnp)
  * @internal volume package internal use only
  */
 int
-VVnodeWriteToRead_r(Error * ec, register Vnode * vnp)
+VVnodeWriteToRead_r(Error * ec, Vnode * vnp)
 {
     int writeLocked;
     VnodeClass class;
index 8e1c14b5c6ab71d3af0f2782ee0e5094671522df..465d81953fcec83ca60951ab6222c2a32aeeb06b 100644 (file)
@@ -267,10 +267,10 @@ extern Vnode *VGetVnode(Error * ec, struct Volume *vp, VnodeId vnodeNumber,
                        int locktype);
 extern Vnode *VGetVnode_r(Error * ec, struct Volume *vp, VnodeId vnodeNumber,
                          int locktype);
-extern void VPutVnode(Error * ec, register Vnode * vnp);
-extern void VPutVnode_r(Error * ec, register Vnode * vnp);
-extern int VVnodeWriteToRead(Error * ec, register Vnode * vnp);
-extern int VVnodeWriteToRead_r(Error * ec, register Vnode * vnp);
+extern void VPutVnode(Error * ec, Vnode * vnp);
+extern void VPutVnode_r(Error * ec, Vnode * vnp);
+extern int VVnodeWriteToRead(Error * ec, Vnode * vnp);
+extern int VVnodeWriteToRead_r(Error * ec, Vnode * vnp);
 extern Vnode *VAllocVnode(Error * ec, struct Volume *vp, VnodeType type);
 extern Vnode *VAllocVnode_r(Error * ec, struct Volume *vp, VnodeType type);
 /*extern VFreeVnode();*/
@@ -278,7 +278,7 @@ extern Vnode *VGetFreeVnode_r(struct VnodeClassInfo *vcp);
 extern Vnode *VLookupVnode(struct Volume * vp, VnodeId vnodeId);
 
 extern void AddToVVnList(struct Volume * vp, Vnode * vnp);
-extern void DeleteFromVVnList(register Vnode * vnp);
+extern void DeleteFromVVnList(Vnode * vnp);
 extern void AddToVnLRU(struct VnodeClassInfo * vcp, Vnode * vnp);
 extern void DeleteFromVnLRU(struct VnodeClassInfo * vcp, Vnode * vnp);
 extern void AddToVnHash(Vnode * vnp);
index 18fdd02394d2682be1cb9385c132f89e219cea85..2c6c1e09eb54ff27e6ae3ebd78f4ea2cde779cf6 100644 (file)
@@ -79,7 +79,7 @@ handleit(struct cmd_syndesc *as, void *arock)
 int
 main(int argc, char **argv)
 {
-    register struct cmd_syndesc *ts;
+    struct cmd_syndesc *ts;
     afs_int32 code;
 
     ts = cmd_CreateSyntax(NULL, handleit, NULL, "Manipulate volume blessed bit");
index a475705677a12240c02270f4106aee9e8272e13a..84ee6a440512d0611bf2e854a215f12391557123 100644 (file)
@@ -84,13 +84,13 @@ int fixheader = 0, saveinodes = 0, orphaned = 0;
 int VolumeChanged;
 
 /* Forward Declarations */
-void PrintHeader(register Volume * vp);
+void PrintHeader(Volume * vp);
 void HandleAllPart(void);
 void HandlePart(struct DiskPartition64 *partP);
 void HandleVolume(struct DiskPartition64 *partP, char *name);
 struct DiskPartition64 *FindCurrentPartition(void);
 Volume *AttachVolume(struct DiskPartition64 *dp, char *volname,
-                    register struct VolumeHeader *header);
+                    struct VolumeHeader *header);
 #if defined(AFS_NAMEI_ENV)
 void PrintVnode(int offset, VnodeDiskObject * vnode, VnodeId vnodeNumber,
                Inode ino, Volume * vp);
@@ -169,9 +169,9 @@ ReadHdr1(IHandle_t * ih, char *to, int size, u_int magic, u_int version)
 
 Volume *
 AttachVolume(struct DiskPartition64 * dp, char *volname,
-            register struct VolumeHeader * header)
+            struct VolumeHeader * header)
 {
-    register Volume *vp;
+    Volume *vp;
     afs_int32 ec = 0;
 
     vp = (Volume *) calloc(1, sizeof(Volume));
@@ -218,7 +218,7 @@ AttachVolume(struct DiskPartition64 * dp, char *volname,
 static int
 handleit(struct cmd_syndesc *as, void *arock)
 {
-    register struct cmd_item *ti;
+    struct cmd_item *ti;
     int err = 0;
     afs_uint32 volumeId = 0;
     char *partName = 0;
@@ -445,7 +445,7 @@ HandleVolume(struct DiskPartition64 *dp, char *name)
     struct VolumeHeader header;
     struct VolumeDiskHeader diskHeader;
     struct afs_stat status, stat;
-    register int fd;
+    int fd;
     Volume *vp;
     IHandle_t *ih;
     char headerName[1024];
@@ -615,7 +615,7 @@ HandleVolume(struct DiskPartition64 *dp, char *name)
 int
 main(int argc, char **argv)
 {
-    register struct cmd_syndesc *ts;
+    struct cmd_syndesc *ts;
     afs_int32 code;
 
     ts = cmd_CreateSyntax(NULL, handleit, NULL, "Dump volume's internal state");
@@ -651,7 +651,7 @@ main(int argc, char **argv)
 #define typestring(type) (type == RWVOL? "read/write": type == ROVOL? "readonly": type == BACKVOL? "backup": "unknown")
 
 void
-PrintHeader(register Volume * vp)
+PrintHeader(Volume * vp)
 {
     Vdiskused = V_diskused(vp);
     if (dsizeOnly || saveinodes)
@@ -748,7 +748,7 @@ PrintVnodes(Volume * vp, VnodeClass class)
     char buf[SIZEOF_LARGEDISKVNODE];
     struct VnodeDiskObject *vnode = (struct VnodeDiskObject *)buf;
     StreamHandle_t *file;
-    register int vnodeIndex, nVnodes, offset = 0;
+    int vnodeIndex, nVnodes, offset = 0;
     Inode ino;
     IHandle_t *ih = vp->vnodeIndex[class].handle;
     FdHandle_t *fdP;
index c4ace1d50a110e5fb5797dcd13fa400f86eb11db..369eb263050d7f1a955e465e6ff541db65cba8d4 100644 (file)
@@ -329,7 +329,7 @@ IUnique(Unique u)
 }
 
 static int
-BadError(register int aerror)
+BadError(int aerror)
 {
     if (aerror == EPERM || aerror == ENXIO || aerror == ENOENT)
        return 1;
@@ -937,7 +937,7 @@ SalvageFileSys1(struct DiskPartition64 *partP, VolumeId singleVolumeNumber)
 }
 
 void
-DeleteExtraVolumeHeaderFile(register struct VolumeSummary *vsp)
+DeleteExtraVolumeHeaderFile(struct VolumeSummary *vsp)
 {
     char path[64];
     sprintf(path, "%s/%s", fileSysPath, vsp->fileName);
@@ -966,8 +966,8 @@ DeleteExtraVolumeHeaderFile(register struct VolumeSummary *vsp)
 int
 CompareInodes(const void *_p1, const void *_p2)
 {
-    register const struct ViceInodeInfo *p1 = _p1;
-    register const struct ViceInodeInfo *p2 = _p2;
+    const struct ViceInodeInfo *p1 = _p1;
+    const struct ViceInodeInfo *p2 = _p2;
     if (p1->u.vnode.vnodeNumber == INODESPECIAL
        || p2->u.vnode.vnodeNumber == INODESPECIAL) {
        VolumeId p1rwid, p2rwid;
@@ -1061,13 +1061,13 @@ CompareInodes(const void *_p1, const void *_p2)
 }
 
 void
-CountVolumeInodes(register struct ViceInodeInfo *ip, int maxInodes,
-                 register struct InodeSummary *summary)
+CountVolumeInodes(struct ViceInodeInfo *ip, int maxInodes,
+                 struct InodeSummary *summary)
 {
     VolumeId volume = ip->u.vnode.volumeId;
     VolumeId rwvolume = volume;
-    register int n, nSpecial;
-    register Unique maxunique;
+    int n, nSpecial;
+    Unique maxunique;
     n = nSpecial = 0;
     maxunique = 0;
     while (maxInodes-- && volume == ip->u.vnode.volumeId) {
@@ -1265,8 +1265,8 @@ GetInodeSummary(FILE *inodeFile, VolumeId singleVolumeNumber)
 int
 CompareVolumes(const void *_p1, const void *_p2)
 {
-    register const struct VolumeSummary *p1 = _p1;
-    register const struct VolumeSummary *p2 = _p2;
+    const struct VolumeSummary *p1 = _p1;
+    const struct VolumeSummary *p2 = _p2;
     if (p1->header.parent != p2->header.parent)
        return p1->header.parent < p2->header.parent ? -1 : 1;
     if (p1->header.id == p1->header.parent)    /* p1 is rw volume */
@@ -1717,7 +1717,7 @@ GetVolumeSummary(VolumeId singleVolumeNumber)
  * a RO only site, then the RO volume. For now, be cautious and hunt carefully.
  */
 Inode
-FindLinkHandle(register struct InodeSummary *isp, int nVols,
+FindLinkHandle(struct InodeSummary *isp, int nVols,
               struct ViceInodeInfo *allInodes)
 {
     int i, j;
@@ -1734,7 +1734,7 @@ FindLinkHandle(register struct InodeSummary *isp, int nVols,
 }
 
 int
-CreateLinkTable(register struct InodeSummary *isp, Inode ino)
+CreateLinkTable(struct InodeSummary *isp, Inode ino)
 {
     struct versionStamp version;
     FdHandle_t *fdP;
@@ -1786,7 +1786,7 @@ nt_SVG(void *arg)
 }
 
 void
-SalvageVolumeGroup(register struct InodeSummary *isp, int nVols)
+SalvageVolumeGroup(struct InodeSummary *isp, int nVols)
 {
     pthread_t tid;
     pthread_attr_t tattr;
@@ -1823,7 +1823,7 @@ SalvageVolumeGroup(register struct InodeSummary *isp, int nVols)
 #endif /* AFS_NT40_ENV */
 
 void
-DoSalvageVolumeGroup(register struct InodeSummary *isp, int nVols)
+DoSalvageVolumeGroup(struct InodeSummary *isp, int nVols)
 {
     struct ViceInodeInfo *inodes, *allInodes, *ip;
     int i, totalInodes, size, salvageTo;
@@ -2014,10 +2014,10 @@ DoSalvageVolumeGroup(register struct InodeSummary *isp, int nVols)
 }
 
 int
-QuickCheck(register struct InodeSummary *isp, int nVols)
+QuickCheck(struct InodeSummary *isp, int nVols)
 {
     /* Check headers BEFORE forking */
-    register int i;
+    int i;
     IHandle_t *h;
 
     for (i = 0; i < nVols; i++) {
@@ -2066,12 +2066,12 @@ QuickCheck(register struct InodeSummary *isp, int nVols)
  */
 
 int
-SalvageVolumeHeaderFile(register struct InodeSummary *isp,
-                       register struct ViceInodeInfo *inodes, int RW,
+SalvageVolumeHeaderFile(struct InodeSummary *isp,
+                       struct ViceInodeInfo *inodes, int RW,
                        int check, int *deleteMe)
 {
     int i;
-    register struct ViceInodeInfo *ip;
+    struct ViceInodeInfo *ip;
     int allinodesobsolete = 1;
     struct VolumeDiskHeader diskHeader;
     afs_int32 (*writefunc)(VolumeDiskHeader_t *, struct DiskPartition64 *) = NULL;
@@ -2312,7 +2312,7 @@ SalvageVolumeHeaderFile(register struct InodeSummary *isp,
 }
 
 int
-SalvageHeader(register struct stuff *sp, struct InodeSummary *isp, int check,
+SalvageHeader(struct stuff *sp, struct InodeSummary *isp, int check,
              int *deleteMe)
 {
     union {
@@ -2476,9 +2476,9 @@ SalvageHeader(register struct stuff *sp, struct InodeSummary *isp, int check,
 }
 
 int
-SalvageVnodes(register struct InodeSummary *rwIsp,
-             register struct InodeSummary *thisIsp,
-             register struct ViceInodeInfo *inodes, int check)
+SalvageVnodes(struct InodeSummary *rwIsp,
+             struct InodeSummary *thisIsp,
+             struct ViceInodeInfo *inodes, int check)
 {
     int ilarge, ismall, ioffset, RW, nInodes;
     ioffset = rwIsp->index + rwIsp->nSpecialInodes;    /* first inode */
@@ -2499,7 +2499,7 @@ SalvageVnodes(register struct InodeSummary *rwIsp,
 
 int
 SalvageIndex(Inode ino, VnodeClass class, int RW,
-            register struct ViceInodeInfo *ip, int nInodes,
+            struct ViceInodeInfo *ip, int nInodes,
             struct VolumeSummary *volSummary, int check)
 {
     VolumeId volumeNumber;
@@ -2586,8 +2586,8 @@ SalvageIndex(Inode ino, VnodeClass class, int RW,
                    /* For RW volume, look for vnode with matching inode number;
                     * if no such match, take the first determined by our sort
                     * order */
-                   register struct ViceInodeInfo *lip = ip;
-                   register int lnInodes = nInodes;
+                   struct ViceInodeInfo *lip = ip;
+                   int lnInodes = nInodes;
                    while (lnInodes
                           && lip->u.vnode.vnodeNumber == vnodeNumber) {
                        if (VNDISK_GET_INO(vnode) == lip->inodeNumber) {
@@ -2772,7 +2772,7 @@ CheckVnodeNumber(VnodeId vnodeNumber)
 }
 
 void
-CopyOnWrite(register struct DirSummary *dir)
+CopyOnWrite(struct DirSummary *dir)
 {
     /* Copy the directory unconditionally if we are going to change it:
      * not just if was cloned.
@@ -2825,7 +2825,7 @@ CopyOnWrite(register struct DirSummary *dir)
  * old dir.
  */
 void
-CopyAndSalvage(register struct DirSummary *dir)
+CopyAndSalvage(struct DirSummary *dir)
 {
     struct VnodeDiskObject vnode;
     struct VnodeClassInfo *vcp = &VnodeClassInfo[vLarge];
@@ -3164,7 +3164,7 @@ JudgeEntry(void *dirVal, char *name, afs_int32 vnodeNumber,
 void
 DistilVnodeEssence(VolumeId rwVId, VnodeClass class, Inode ino, Unique * maxu)
 {
-    register struct VnodeInfo *vip = &vnodeInfo[class];
+    struct VnodeInfo *vip = &vnodeInfo[class];
     struct VnodeClassInfo *vcp = &VnodeClassInfo[class];
     char buf[SIZEOF_LARGEDISKVNODE];
     struct VnodeDiskObject *vnode = (struct VnodeDiskObject *)buf;
@@ -3203,7 +3203,7 @@ DistilVnodeEssence(VolumeId rwVId, VnodeClass class, Inode ino, Unique * maxu)
         nVnodes && STREAM_READ(vnode, vcp->diskSize, 1, file) == 1;
         nVnodes--, vnodeIndex++) {
        if (vnode->type != vNull) {
-           register struct VnodeEssence *vep = &vip->vnodes[vnodeIndex];
+           struct VnodeEssence *vep = &vip->vnodes[vnodeIndex];
            afs_fsize_t vnodeLength;
            vip->nAllocatedVnodes++;
            vep->count = vnode->linkCount;
@@ -3733,12 +3733,12 @@ CreateRootDir(VolumeDiskData *volHeader, IHandle_t *alinkH, VolumeId vid,
 }
 
 int
-SalvageVolume(register struct InodeSummary *rwIsp, IHandle_t * alinkH)
+SalvageVolume(struct InodeSummary *rwIsp, IHandle_t * alinkH)
 {
     /* This routine, for now, will only be called for read-write volumes */
     int i, j, code;
     int BlocksInVolume = 0, FilesInVolume = 0;
-    register VnodeClass class;
+    VnodeClass class;
     struct DirSummary rootdir, oldrootdir;
     struct VnodeInfo *dirVnodeInfo;
     struct VnodeDiskObject vnode;
@@ -3933,7 +3933,7 @@ SalvageVolume(register struct InodeSummary *rwIsp, IHandle_t * alinkH)
        FilesInVolume += vnodeInfo[class].nAllocatedVnodes;
        BlocksInVolume += vnodeInfo[class].volumeBlockCount;
        for (i = 0; i < nVnodes; i++) {
-           register struct VnodeEssence *vnp = &vnodes[i];
+           struct VnodeEssence *vnp = &vnodes[i];
            VnodeId vnodeNumber = bitNumberToVnodeNumber(i, class);
 
            /* If the vnode is good but is unclaimed (not listed in
@@ -4005,7 +4005,7 @@ SalvageVolume(register struct InodeSummary *rwIsp, IHandle_t * alinkH)
     }
 
     for (class = 0; class < nVNODECLASSES; class++) {
-       register struct VnodeInfo *vip = &vnodeInfo[class];
+       struct VnodeInfo *vip = &vnodeInfo[class];
        for (i = 0; i < vip->nVnodes; i++)
            if (vip->vnodes[i].name)
                free(vip->vnodes[i].name);
@@ -4101,7 +4101,7 @@ ClearROInUseBit(struct VolumeSummary *summary)
  * deleteMe - Always do so, only a partial volume.
  */
 void
-MaybeZapVolume(register struct InodeSummary *isp, char *message, int deleteMe,
+MaybeZapVolume(struct InodeSummary *isp, char *message, int deleteMe,
               int check)
 {
     if (readOnly(isp) || deleteMe) {
@@ -4333,10 +4333,10 @@ CopyInode(Device device, Inode inode1, Inode inode2, int rwvolume)
 void
 PrintInodeList(void)
 {
-    register struct ViceInodeInfo *ip;
+    struct ViceInodeInfo *ip;
     struct ViceInodeInfo *buf;
     struct afs_stat status;
-    register int nInodes;
+    int nInodes;
 
     assert(afs_fstat(inodeFd, &status) == 0);
     buf = (struct ViceInodeInfo *)malloc(status.st_size);
@@ -4585,7 +4585,7 @@ Abort(const char *format, ...)
 char *
 ToString(const char *s)
 {
-    register char *p;
+    char *p;
     p = (char *)malloc(strlen(s) + 1);
     assert(p != NULL);
     strcpy(p, s);
index 3cfd564409c6a73cfa87175518c805798ccbdcdc..21c5ae637a64eb12047548409fe6067247c3935d 100644 (file)
@@ -228,26 +228,26 @@ extern void CheckLogFile(char * log_path);
 extern void TimeStampLogFile(char * log_path);
 #endif
 extern void ClearROInUseBit(struct VolumeSummary *summary);
-extern void CopyAndSalvage(register struct DirSummary *dir);
+extern void CopyAndSalvage(struct DirSummary *dir);
 extern int CopyInode(Device device, Inode inode1, Inode inode2, int rwvolume);
-extern void CopyOnWrite(register struct DirSummary *dir);
-extern void CountVolumeInodes(register struct ViceInodeInfo *ip, int maxInodes,
-                      register struct InodeSummary *summary);
-extern void DeleteExtraVolumeHeaderFile(register struct VolumeSummary *vsp);
+extern void CopyOnWrite(struct DirSummary *dir);
+extern void CountVolumeInodes(struct ViceInodeInfo *ip, int maxInodes,
+                      struct InodeSummary *summary);
+extern void DeleteExtraVolumeHeaderFile(struct VolumeSummary *vsp);
 extern void DistilVnodeEssence(VolumeId vid, VnodeClass class, Inode ino,
                               Unique * maxu);
 extern int GetInodeSummary(FILE *inodeFile, VolumeId singleVolumeNumber);
 extern int GetVolumeSummary(VolumeId singleVolumeNumber);
 extern int JudgeEntry(void *dirVal, char *name, afs_int32 vnodeNumber,
                      afs_int32 unique);
-extern void MaybeZapVolume(register struct InodeSummary *isp, char *message,
+extern void MaybeZapVolume(struct InodeSummary *isp, char *message,
                           int deleteMe, int check);
 extern void ObtainSalvageLock(void);
 extern void ObtainSharedSalvageLock(void);
 extern void PrintInodeList(void);
 extern void PrintInodeSummary(void);
 extern void PrintVolumeSummary(void);
-extern int QuickCheck(register struct InodeSummary *isp, int nVols);
+extern int QuickCheck(struct InodeSummary *isp, int nVols);
 extern void RemoveTheForce(char *path);
 extern void SalvageDir(char *name, VolumeId rwVid, struct VnodeInfo *dirVnodeInfo,
                       IHandle_t * alinkH, int i, struct DirSummary *rootdir,
@@ -256,23 +256,23 @@ extern void SalvageFileSysParallel(struct DiskPartition64 *partP);
 extern void SalvageFileSys(struct DiskPartition64 *partP, VolumeId singleVolumeNumber);
 extern void SalvageFileSys1(struct DiskPartition64 *partP,
                            VolumeId singleVolumeNumber);
-extern int SalvageHeader(register struct stuff *sp, struct InodeSummary *isp,
+extern int SalvageHeader(struct stuff *sp, struct InodeSummary *isp,
                         int check, int *deleteMe);
 extern int SalvageIndex(Inode ino, VnodeClass class, int RW,
-                       register struct ViceInodeInfo *ip, int nInodes,
+                       struct ViceInodeInfo *ip, int nInodes,
                        struct VolumeSummary *volSummary, int check);
-extern int SalvageVnodes(register struct InodeSummary *rwIsp,
-                        register struct InodeSummary *thisIsp,
-                        register struct ViceInodeInfo *inodes, int check);
-extern int SalvageVolume(register struct InodeSummary *rwIsp, IHandle_t * alinkH);
-extern void DoSalvageVolumeGroup(register struct InodeSummary *isp, int nVols);
+extern int SalvageVnodes(struct InodeSummary *rwIsp,
+                        struct InodeSummary *thisIsp,
+                        struct ViceInodeInfo *inodes, int check);
+extern int SalvageVolume(struct InodeSummary *rwIsp, IHandle_t * alinkH);
+extern void DoSalvageVolumeGroup(struct InodeSummary *isp, int nVols);
 #ifdef AFS_NT40_ENV
-extern void SalvageVolumeGroup(register struct InodeSummary *isp, int nVols);
+extern void SalvageVolumeGroup(struct InodeSummary *isp, int nVols);
 #else
 #define SalvageVolumeGroup DoSalvageVolumeGroup
 #endif
-extern int SalvageVolumeHeaderFile(register struct InodeSummary *isp,
-                                  register struct ViceInodeInfo *inodes, int RW,
+extern int SalvageVolumeHeaderFile(struct InodeSummary *isp,
+                                  struct ViceInodeInfo *inodes, int RW,
                                   int check, int *deleteMe);
 extern void showlog(void);
 extern int UseTheForceLuke(char *path);
index 1be7407c5f309f7337bfd8fd72c34518879e1497..4d7a709591414431e0484ac594bb7fab41cab5c3 100644 (file)
@@ -18,10 +18,10 @@ extern int (*vol_PollProc) (void);
 extern int nuke(char *, afs_int32);
 
 /* vutil.c */
-extern void AssignVolumeName(register VolumeDiskData * vol, char *name, char *ext);
-extern void AssignVolumeName_r(register VolumeDiskData * vol, char *name, char *ext);
-extern void ClearVolumeStats(register VolumeDiskData * vol);
-extern void ClearVolumeStats_r(register VolumeDiskData * vol);
+extern void AssignVolumeName(VolumeDiskData * vol, char *name, char *ext);
+extern void AssignVolumeName_r(VolumeDiskData * vol, char *name, char *ext);
+extern void ClearVolumeStats(VolumeDiskData * vol);
+extern void ClearVolumeStats_r(VolumeDiskData * vol);
 extern afs_int32 CopyVolumeHeader(VolumeDiskData *, VolumeDiskData *);
 
 #endif
index 289921ceecfa4b2ec46fa202678273af2fac0370..6b1bdd6e649a129c353aae71a71c3e7a6ba7f13f 100644 (file)
@@ -188,11 +188,11 @@ static void FreeVolume(Volume * vp);
 static void VScanUpdateList(void);
 #endif /* !AFS_DEMAND_ATTACH_FS */
 static void VInitVolumeHeaderCache(afs_uint32 howMany);
-static int GetVolumeHeader(register Volume * vp);
-static void ReleaseVolumeHeader(register struct volHeader *hd);
-static void FreeVolumeHeader(register Volume * vp);
-static void AddVolumeToHashTable(register Volume * vp, int hashid);
-static void DeleteVolumeFromHashTable(register Volume * vp);
+static int GetVolumeHeader(Volume * vp);
+static void ReleaseVolumeHeader(struct volHeader *hd);
+static void FreeVolumeHeader(Volume * vp);
+static void AddVolumeToHashTable(Volume * vp, int hashid);
+static void DeleteVolumeFromHashTable(Volume * vp);
 #if 0
 static int VHold(Volume * vp);
 #endif
@@ -201,8 +201,8 @@ static void VGetBitmap_r(Error * ec, Volume * vp, VnodeClass class);
 static void VReleaseVolumeHandles_r(Volume * vp);
 static void VCloseVolumeHandles_r(Volume * vp);
 static void LoadVolumeHeader(Error * ec, Volume * vp);
-static int VCheckOffline(register Volume * vp);
-static int VCheckDetach(register Volume * vp);
+static int VCheckOffline(Volume * vp);
+static int VCheckDetach(Volume * vp);
 static Volume * GetVolume(Error * ec, Error * client_ec, VolId volumeId, Volume * hint, int flags);
 
 int LogLevel;                  /* Vice loglevel--not defined as extern so that it will be
@@ -415,7 +415,7 @@ static void VVByPListEndExclusive_r(struct DiskPartition64 * dp);
 static void VVByPListWait_r(struct DiskPartition64 * dp);
 
 /* online salvager */
-static int VCheckSalvage(register Volume * vp);
+static int VCheckSalvage(Volume * vp);
 #if defined(SALVSYNC_BUILD_CLIENT) || defined(FSSYNC_BUILD_CLIENT)
 static int VScheduleSalvage_r(Volume * vp);
 #endif
@@ -1314,8 +1314,8 @@ void
 VShutdown_r(void)
 {
     int i;
-    register Volume *vp, *np;
-    register afs_int32 code;
+    Volume *vp, *np;
+    afs_int32 code;
 
     if (VInit < 2) {
         Log("VShutdown:  aborting attach volumes\n");
@@ -1753,7 +1753,7 @@ static int
 ShutdownVByPForPass_r(struct DiskPartition64 * dp, int pass)
 {
     struct rx_queue * q = queue_First(&dp->vol_list, rx_queue);
-    register int i = 0;
+    int i = 0;
 
     while (ShutdownVolumeWalk_r(dp, pass, &q))
        i++;
@@ -2234,7 +2234,7 @@ VAttachVolumeByName(Error * ec, char *partition, char *name, int mode)
 Volume *
 VAttachVolumeByName_r(Error * ec, char *partition, char *name, int mode)
 {
-    register Volume *vp = NULL;
+    Volume *vp = NULL;
     struct DiskPartition64 *partp;
     char path[64];
     int isbusy = 0;
@@ -3439,7 +3439,7 @@ VAttachVolume_r(Error * ec, VolumeId volumeId, int mode)
     char *part, *name;
     VGetVolumePath(ec, volumeId, &part, &name);
     if (*ec) {
-       register Volume *vp;
+       Volume *vp;
        Error error;
        vp = VGetVolume_r(&error, volumeId);
        if (vp) {
@@ -3463,7 +3463,7 @@ VAttachVolume_r(Error * ec, VolumeId volumeId, int mode)
  * is dropped within VHold */
 #ifdef AFS_DEMAND_ATTACH_FS
 static int
-VHold_r(register Volume * vp)
+VHold_r(Volume * vp)
 {
     Error error;
 
@@ -3481,7 +3481,7 @@ VHold_r(register Volume * vp)
 }
 #else /* AFS_DEMAND_ATTACH_FS */
 static int
-VHold_r(register Volume * vp)
+VHold_r(Volume * vp)
 {
     Error error;
 
@@ -3495,7 +3495,7 @@ VHold_r(register Volume * vp)
 
 #if 0
 static int
-VHold(register Volume * vp)
+VHold(Volume * vp)
 {
     int retVal;
     VOL_LOCK;
@@ -3524,7 +3524,7 @@ VHold(register Volume * vp)
  * @internal volume package internal use only
  */
 void
-VPutVolume_r(register Volume * vp)
+VPutVolume_r(Volume * vp)
 {
     assert(--vp->nUsers >= 0);
     if (vp->nUsers == 0) {
@@ -3542,7 +3542,7 @@ VPutVolume_r(register Volume * vp)
 }
 
 void
-VPutVolume(register Volume * vp)
+VPutVolume(Volume * vp)
 {
     VOL_LOCK;
     VPutVolume_r(vp);
@@ -3928,7 +3928,7 @@ GetVolume(Error * ec, Error * client_ec, VolId volumeId, Volume * hint, int nowa
 /* caller MUST hold a heavyweight ref on vp */
 #ifdef AFS_DEMAND_ATTACH_FS
 void
-VTakeOffline_r(register Volume * vp)
+VTakeOffline_r(Volume * vp)
 {
     Error error;
 
@@ -3946,7 +3946,7 @@ VTakeOffline_r(register Volume * vp)
 }
 #else /* AFS_DEMAND_ATTACH_FS */
 void
-VTakeOffline_r(register Volume * vp)
+VTakeOffline_r(Volume * vp)
 {
     assert(vp->nUsers > 0);
     assert(programType == fileServer);
@@ -3957,7 +3957,7 @@ VTakeOffline_r(register Volume * vp)
 #endif /* AFS_DEMAND_ATTACH_FS */
 
 void
-VTakeOffline(register Volume * vp)
+VTakeOffline(Volume * vp)
 {
     VOL_LOCK;
     VTakeOffline_r(vp);
@@ -4479,7 +4479,7 @@ ReallyFreeVolume(Volume * vp)
  * returns 1 if volume was freed, 0 otherwise */
 #ifdef AFS_DEMAND_ATTACH_FS
 static int
-VCheckDetach(register Volume * vp)
+VCheckDetach(Volume * vp)
 {
     int ret = 0;
     Error ec = 0;
@@ -4513,7 +4513,7 @@ VCheckDetach(register Volume * vp)
 }
 #else /* AFS_DEMAND_ATTACH_FS */
 static int
-VCheckDetach(register Volume * vp)
+VCheckDetach(Volume * vp)
 {
     int ret = 0;
     Error ec = 0;
@@ -4554,7 +4554,7 @@ VCheckDetach(register Volume * vp)
  * return 1 if volume went offline, 0 otherwise */
 #ifdef AFS_DEMAND_ATTACH_FS
 static int
-VCheckOffline(register Volume * vp)
+VCheckOffline(Volume * vp)
 {
     int ret = 0;
 
@@ -4615,7 +4615,7 @@ VCheckOffline(register Volume * vp)
 }
 #else /* AFS_DEMAND_ATTACH_FS */
 static int
-VCheckOffline(register Volume * vp)
+VCheckOffline(Volume * vp)
 {
     int ret = 0;
 
@@ -4900,7 +4900,7 @@ VVolOpSetVBusy_r(Volume * vp, FSSYNC_VolOp_info * vopinfo)
  * @internal volume package internal use only.
  */
 static int
-VCheckSalvage(register Volume * vp)
+VCheckSalvage(Volume * vp)
 {
     int ret = 0;
 #if defined(SALVSYNC_BUILD_CLIENT) || defined(FSSYNC_BUILD_CLIENT)
@@ -5576,7 +5576,7 @@ VAllocBitmapEntry_r(Error * ec, Volume * vp,
                    struct vnodeIndex *index, int flags)
 {
     int ret = 0;
-    register byte *bp, *ep;
+    byte *bp, *ep;
 #ifdef AFS_DEMAND_ATTACH_FS
     VolState state_save;
 #endif /* AFS_DEMAND_ATTACH_FS */
@@ -5695,7 +5695,7 @@ VAllocBitmapEntry_r(Error * ec, Volume * vp,
 }
 
 int
-VAllocBitmapEntry(Error * ec, Volume * vp, register struct vnodeIndex * index)
+VAllocBitmapEntry(Error * ec, Volume * vp, struct vnodeIndex * index)
 {
     int retVal;
     VOL_LOCK;
@@ -5705,7 +5705,7 @@ VAllocBitmapEntry(Error * ec, Volume * vp, register struct vnodeIndex * index)
 }
 
 void
-VFreeBitMapEntry_r(Error * ec, register struct vnodeIndex *index,
+VFreeBitMapEntry_r(Error * ec, struct vnodeIndex *index,
                   unsigned bitNumber)
 {
     unsigned int offset;
@@ -5726,7 +5726,7 @@ VFreeBitMapEntry_r(Error * ec, register struct vnodeIndex *index,
 }
 
 void
-VFreeBitMapEntry(Error * ec, register struct vnodeIndex *index,
+VFreeBitMapEntry(Error * ec, struct vnodeIndex *index,
                 unsigned bitNumber)
 {
     VOL_LOCK;
@@ -6025,12 +6025,12 @@ Midnight(time_t t) {
  *------------------------------------------------------------------------*/
 
 int
-VAdjustVolumeStatistics_r(register Volume * vp)
+VAdjustVolumeStatistics_r(Volume * vp)
 {
     unsigned int now = FT_ApproxTime();
 
     if (now - V_dayUseDate(vp) > OneDay) {
-       register int ndays, i;
+       int ndays, i;
 
        ndays = (now - V_dayUseDate(vp)) / OneDay;
        for (i = 6; i > ndays - 1; i--)
@@ -6059,7 +6059,7 @@ VAdjustVolumeStatistics_r(register Volume * vp)
 }                              /*VAdjustVolumeStatistics */
 
 int
-VAdjustVolumeStatistics(register Volume * vp)
+VAdjustVolumeStatistics(Volume * vp)
 {
     int retVal;
     VOL_LOCK;
@@ -6069,7 +6069,7 @@ VAdjustVolumeStatistics(register Volume * vp)
 }
 
 void
-VBumpVolumeUsage_r(register Volume * vp)
+VBumpVolumeUsage_r(Volume * vp)
 {
     unsigned int now = FT_ApproxTime();
     V_accessDate(vp) = now;
@@ -6085,7 +6085,7 @@ VBumpVolumeUsage_r(register Volume * vp)
 }
 
 void
-VBumpVolumeUsage(register Volume * vp)
+VBumpVolumeUsage(Volume * vp)
 {
     VOL_LOCK;
     VBumpVolumeUsage_r(vp);
@@ -6189,8 +6189,8 @@ VAddToVolumeUpdateList_r(Error * ec, Volume * vp)
 static void
 VScanUpdateList(void)
 {
-    register int i, gap;
-    register Volume *vp;
+    int i, gap;
+    Volume *vp;
     Error error;
     afs_uint32 now = FT_ApproxTime();
     /* Be careful with this code, since it works with interleaved calls to AddToVolumeUpdateList */
@@ -7290,7 +7290,7 @@ struct volume_hdr_LRU_t volume_hdr_LRU;
 static void
 VInitVolumeHeaderCache(afs_uint32 howMany)
 {
-    register struct volHeader *hp;
+    struct volHeader *hp;
     if (programType != fileServer)
        return;
     queue_Init(&volume_hdr_LRU);
@@ -7330,10 +7330,10 @@ VInitVolumeHeaderCache(afs_uint32 howMany)
  * @internal volume package internal use only.
  */
 static int
-GetVolumeHeader(register Volume * vp)
+GetVolumeHeader(Volume * vp)
 {
     Error error;
-    register struct volHeader *hd;
+    struct volHeader *hd;
     int old;
     static int everLogged = 0;
 
@@ -7524,7 +7524,7 @@ LoadVolumeHeader(Error * ec, Volume * vp)
  * @internal volume package internal use only.
  */
 static void
-ReleaseVolumeHeader(register struct volHeader *hd)
+ReleaseVolumeHeader(struct volHeader *hd)
 {
     if (programType != fileServer)
        return;
@@ -7559,9 +7559,9 @@ ReleaseVolumeHeader(register struct volHeader *hd)
  * @internal volume package internal use only.
  */
 static void
-FreeVolumeHeader(register Volume * vp)
+FreeVolumeHeader(Volume * vp)
 {
-    register struct volHeader *hd = vp->header;
+    struct volHeader *hd = vp->header;
     if (!hd)
        return;
     if (programType == fileServer) {
@@ -7625,7 +7625,7 @@ VSetVolHashSize(int logsize)
 static void
 VInitVolumeHash(void)
 {
-    register int i;
+    int i;
 
     VolumeHashTable.Table = (VolumeHashChainHead *) calloc(VolumeHashTable.Size, 
                                                           sizeof(VolumeHashChainHead));
@@ -7656,7 +7656,7 @@ VInitVolumeHash(void)
  *       asynchronous hash chain reordering to finish.
  */
 static void
-AddVolumeToHashTable(register Volume * vp, int hashid)
+AddVolumeToHashTable(Volume * vp, int hashid)
 {
     VolumeHashChainHead * head;
 
@@ -7695,7 +7695,7 @@ AddVolumeToHashTable(register Volume * vp, int hashid)
  *       asynchronous hash chain reordering to finish.
  */
 static void
-DeleteVolumeFromHashTable(register Volume * vp)
+DeleteVolumeFromHashTable(Volume * vp)
 {
     VolumeHashChainHead * head;
 
@@ -7753,7 +7753,7 @@ DeleteVolumeFromHashTable(register Volume * vp)
 Volume *
 VLookupVolume_r(Error * ec, VolId volumeId, Volume * hint)
 {
-    register int looks = 0;
+    int looks = 0;
     Volume * vp, *np;
 #ifdef AFS_DEMAND_ATTACH_FS
     Volume *pp;
@@ -8137,7 +8137,7 @@ void
 VPrintCacheStats_r(void)
 {
     afs_uint32 get_hi, get_lo, load_hi, load_lo;
-    register struct VnodeClassInfo *vcp;
+    struct VnodeClassInfo *vcp;
     vcp = &VnodeClassInfo[vLarge];
     Log("Large vnode cache, %d entries, %d allocs, %d gets (%d reads), %d writes\n", vcp->cacheSize, vcp->allocs, vcp->gets, vcp->reads, vcp->writes);
     vcp = &VnodeClassInfo[vSmall];
index f7d271261a6a300df527e7898f82e656f72351e0..9e2eeee53259bcb948943939c1a3b2a6bce2ceae 100644 (file)
@@ -782,9 +782,9 @@ extern int VAllocBitmapEntry(Error * ec, Volume * vp,
                             struct vnodeIndex *index);
 extern int VAllocBitmapEntry_r(Error * ec, Volume * vp,
                               struct vnodeIndex *index, int flags);
-extern void VFreeBitMapEntry(Error * ec, register struct vnodeIndex *index,
+extern void VFreeBitMapEntry(Error * ec, struct vnodeIndex *index,
                             unsigned bitNumber);
-extern void VFreeBitMapEntry_r(Error * ec, register struct vnodeIndex *index,
+extern void VFreeBitMapEntry_r(Error * ec, struct vnodeIndex *index,
                               unsigned bitNumber);
 extern int VolumeNumber(char *name);
 extern char *VolumeExternalName(VolumeId volumeId);
@@ -803,8 +803,8 @@ extern void VDetachVolume(Error * ec, Volume * vp);
 extern void VDetachVolume_r(Error * ec, Volume * vp);
 extern void VForceOffline(Volume * vp);
 extern void VForceOffline_r(Volume * vp, int flags);
-extern void VBumpVolumeUsage(register Volume * vp);
-extern void VBumpVolumeUsage_r(register Volume * vp);
+extern void VBumpVolumeUsage(Volume * vp);
+extern void VBumpVolumeUsage_r(Volume * vp);
 extern void VSetDiskUsage(void);
 extern void VPrintCacheStats(void);
 extern void VReleaseVnodeFiles_r(Volume * vp);
@@ -817,8 +817,8 @@ extern int VInitAttachVolumes(ProgramType pt);
 extern void DiskToVolumeHeader(VolumeHeader_t * h, VolumeDiskHeader_t * dh);
 extern void VolumeHeaderToDisk(VolumeDiskHeader_t * dh, VolumeHeader_t * h);
 extern void AssignVolumeName(VolumeDiskData * vol, char *name, char *ext);
-extern void VTakeOffline_r(register Volume * vp);
-extern void VTakeOffline(register Volume * vp);
+extern void VTakeOffline_r(Volume * vp);
+extern void VTakeOffline(Volume * vp);
 extern Volume * VLookupVolume_r(Error * ec, VolId volumeId, Volume * hint);
 extern void VGetVolumePath(Error * ec, VolId volumeId, char **partitionp,
                           char **namep);
index 7c58dad3f9b48578365cdec9d1e49e27688a0080..7abd95bd27ee32d0eb05312a22e0767c981e25b0 100644 (file)
@@ -85,7 +85,7 @@
 static void
 RemoveInodes(Device dev, VolumeId vid)
 {
-    register int i;
+    int i;
     IHandle_t *handle;
 
     /* This relies on the fact that IDEC only needs the device and NT only
@@ -207,7 +207,7 @@ VCreateVolume_r(Error * ec, char *partname, VolId volumeId, VolId parentId)
     device = partition->device;
 
     for (i = 0; i < nFILES; i++) {
-       register struct stuff *p = &stuff[i];
+       struct stuff *p = &stuff[i];
        if (p->obsolete)
            continue;
 #ifdef AFS_NAMEI_ENV
@@ -334,7 +334,7 @@ VCreateVolume_r(Error * ec, char *partname, VolId volumeId, VolId parentId)
 
 
 void
-AssignVolumeName(register VolumeDiskData * vol, char *name, char *ext)
+AssignVolumeName(VolumeDiskData * vol, char *name, char *ext)
 {
     VOL_LOCK;
     AssignVolumeName_r(vol, name, ext);
@@ -342,9 +342,9 @@ AssignVolumeName(register VolumeDiskData * vol, char *name, char *ext)
 }
 
 void
-AssignVolumeName_r(register VolumeDiskData * vol, char *name, char *ext)
+AssignVolumeName_r(VolumeDiskData * vol, char *name, char *ext)
 {
-    register char *dot;
+    char *dot;
     strncpy(vol->name, name, VNAMESIZE - 1);
     vol->name[VNAMESIZE - 1] = '\0';
     dot = strrchr(vol->name, '.');
@@ -391,7 +391,7 @@ CopyVolumeHeader(VolumeDiskData * from, VolumeDiskData * to)
 }
 
 void
-ClearVolumeStats(register VolumeDiskData * vol)
+ClearVolumeStats(VolumeDiskData * vol)
 {
     VOL_LOCK;
     ClearVolumeStats_r(vol);
@@ -399,7 +399,7 @@ ClearVolumeStats(register VolumeDiskData * vol)
 }
 
 void
-ClearVolumeStats_r(register VolumeDiskData * vol)
+ClearVolumeStats_r(VolumeDiskData * vol)
 {
     memset(vol->weekUse, 0, sizeof(vol->weekUse));
     vol->dayUse = 0;
index f1d1b644718800d596dc42a1b2417623a4a52f58..e2d79bc867e412c796754e93544fe1fca32d1c3f 100644 (file)
@@ -68,36 +68,36 @@ extern int DoLogging;
 
 
 /* Forward Declarations */
-static int DumpDumpHeader(register struct iod *iodp, register Volume * vp,
+static int DumpDumpHeader(struct iod *iodp, Volume * vp,
                          afs_int32 fromtime);
-static int DumpPartial(register struct iod *iodp, register Volume * vp,
+static int DumpPartial(struct iod *iodp, Volume * vp,
                       afs_int32 fromtime, int dumpAllDirs);
-static int DumpVnodeIndex(register struct iod *iodp, Volume * vp,
+static int DumpVnodeIndex(struct iod *iodp, Volume * vp,
                          VnodeClass class, afs_int32 fromtime,
                          int forcedump);
-static int DumpVnode(register struct iod *iodp, struct VnodeDiskObject *v,
+static int DumpVnode(struct iod *iodp, struct VnodeDiskObject *v,
                     int volid, int vnodeNumber, int dumpEverything);
-static int ReadDumpHeader(register struct iod *iodp, struct DumpHeader *hp);
-static int ReadVnodes(register struct iod *iodp, Volume * vp, int incremental,
+static int ReadDumpHeader(struct iod *iodp, struct DumpHeader *hp);
+static int ReadVnodes(struct iod *iodp, Volume * vp, int incremental,
                      afs_int32 * Lbuf, afs_int32 s1, afs_int32 * Sbuf,
                      afs_int32 s2, afs_int32 delo);
 static afs_fsize_t volser_WriteFile(int vn, struct iod *iodp,
                                    FdHandle_t * handleP, int tag,
                                    Error * status);
 
-static int SizeDumpDumpHeader(register struct iod *iodp, register Volume * vp,
+static int SizeDumpDumpHeader(struct iod *iodp, Volume * vp,
                              afs_int32 fromtime,
-                             register struct volintSize *size);
-static int SizeDumpPartial(register struct iod *iodp, register Volume * vp,
+                             struct volintSize *size);
+static int SizeDumpPartial(struct iod *iodp, Volume * vp,
                           afs_int32 fromtime, int dumpAllDirs,
-                          register struct volintSize *size);
-static int SizeDumpVnodeIndex(register struct iod *iodp, Volume * vp,
+                          struct volintSize *size);
+static int SizeDumpVnodeIndex(struct iod *iodp, Volume * vp,
                              VnodeClass class, afs_int32 fromtime,
                              int forcedump,
-                             register struct volintSize *size);
-static int SizeDumpVnode(register struct iod *iodp, struct VnodeDiskObject *v,
+                             struct volintSize *size);
+static int SizeDumpVnode(struct iod *iodp, struct VnodeDiskObject *v,
                         int volid, int vnodeNumber, int dumpEverything,
-                        register struct volintSize *size);
+                        struct volintSize *size);
 
 #define MAX_SECTIONS    3
 #define MIN_TLV_TAG     5
@@ -142,7 +142,7 @@ initNonStandardTags(void)
 }
 
 static void
-iod_Init(register struct iod *iodp, register struct rx_call *call)
+iod_Init(struct iod *iodp, struct rx_call *call)
 {
     iodp->call = call;
     iodp->haveOldChar = 0;
@@ -211,7 +211,7 @@ iod_ungetc(struct iod *iodp, int achar)
 }
 
 static int
-iod_getc(register struct iod *iodp)
+iod_getc(struct iod *iodp)
 {
     unsigned char t;
 
@@ -225,9 +225,9 @@ iod_getc(register struct iod *iodp)
 }
 
 static int
-ReadShort(register struct iod *iodp, register unsigned short *sp)
+ReadShort(struct iod *iodp, unsigned short *sp)
 {
-    register int b1, b0;
+    int b1, b0;
     b1 = iod_getc(iodp);
     if (b1 == EOF)
        return 0;
@@ -239,9 +239,9 @@ ReadShort(register struct iod *iodp, register unsigned short *sp)
 }
 
 static int
-ReadInt32(register struct iod *iodp, afs_uint32 * lp)
+ReadInt32(struct iod *iodp, afs_uint32 * lp)
 {
-    afs_uint32 register b3, b2, b1, b0;
+    afs_uint32 b3, b2, b1, b0;
     b3 = iod_getc(iodp);
     if (b3 == EOF)
        return 0;
@@ -259,9 +259,9 @@ ReadInt32(register struct iod *iodp, afs_uint32 * lp)
 }
 
 static void
-ReadString(register struct iod *iodp, register char *to, register int maxa)
+ReadString(struct iod *iodp, char *to, int maxa)
 {
-    register int c;
+    int c;
 
     *to = '\0';
     if (maxa == 0)
@@ -278,8 +278,8 @@ ReadString(register struct iod *iodp, register char *to, register int maxa)
 }
 
 static void
-ReadByteString(register struct iod *iodp, register byte * to,
-              register int size)
+ReadByteString(struct iod *iodp, byte * to,
+              int size)
 {
     while (size--)
        *to++ = iod_getc(iodp);
@@ -289,7 +289,7 @@ ReadByteString(register struct iod *iodp, register byte * to,
  * returns 1 on success and 0 otherwise
  */
 static afs_int32
-ReadStandardTagLen(register struct iod *iodp, unsigned char tag, afs_int32 section,
+ReadStandardTagLen(struct iod *iodp, unsigned char tag, afs_int32 section,
                         afs_size_t *length)
 {
     afs_int32 code, i;
@@ -331,7 +331,7 @@ ReadStandardTagLen(register struct iod *iodp, unsigned char tag, afs_int32 secti
 static char skipbuf[256];
 
 static afs_int32
-SkipData(register struct iod *iodp, afs_size_t length)
+SkipData(struct iod *iodp, afs_size_t length)
 {
     while (length > 256) {
         if (iod_Read(iodp, (char *)&skipbuf, 256) != 256)
@@ -386,9 +386,9 @@ HandleUnknownTag(struct iod *iodp, int tag, afs_int32 section,
 }
 
 static int
-ReadVolumeHeader(register struct iod *iodp, VolumeDiskData * vol)
+ReadVolumeHeader(struct iod *iodp, VolumeDiskData * vol)
 {
-    register int tag;
+    int tag;
     afs_uint32 trash;
     afs_int32 critical = 0;
     memset(vol, 0, sizeof(*vol));
@@ -526,7 +526,7 @@ ReadVolumeHeader(register struct iod *iodp, VolumeDiskData * vol)
 }
 
 static int
-DumpTag(register struct iod *iodp, register int tag)
+DumpTag(struct iod *iodp, int tag)
 {
     char p;
 
@@ -536,10 +536,10 @@ DumpTag(register struct iod *iodp, register int tag)
 }
 
 static int
-DumpByte(register struct iod *iodp, char tag, byte value)
+DumpByte(struct iod *iodp, char tag, byte value)
 {
     char tbuffer[2];
-    register byte *p = (unsigned char *)tbuffer;
+    byte *p = (unsigned char *)tbuffer;
     *p++ = tag;
     *p = value;
     return ((iod_Write(iodp, tbuffer, 2) == 2) ? 0 : VOLSERDUMPERROR);
@@ -549,11 +549,11 @@ DumpByte(register struct iod *iodp, char tag, byte value)
 #define putshort(p, v) *p++ = v>>8, *p++ = v
 
 static int
-DumpDouble(register struct iod *iodp, char tag, register afs_uint32 value1,
-          register afs_uint32 value2)
+DumpDouble(struct iod *iodp, char tag, afs_uint32 value1,
+          afs_uint32 value2)
 {
     char tbuffer[9];
-    register byte *p = (unsigned char *)tbuffer;
+    byte *p = (unsigned char *)tbuffer;
     *p++ = tag;
     putint32(p, value1);
     putint32(p, value2);
@@ -561,23 +561,23 @@ DumpDouble(register struct iod *iodp, char tag, register afs_uint32 value1,
 }
 
 static int
-DumpInt32(register struct iod *iodp, char tag, register afs_uint32 value)
+DumpInt32(struct iod *iodp, char tag, afs_uint32 value)
 {
     char tbuffer[5];
-    register byte *p = (unsigned char *)tbuffer;
+    byte *p = (unsigned char *)tbuffer;
     *p++ = tag;
     putint32(p, value);
     return ((iod_Write(iodp, tbuffer, 5) == 5) ? 0 : VOLSERDUMPERROR);
 }
 
 static int
-DumpArrayInt32(register struct iod *iodp, char tag,
-              register afs_uint32 * array, register int nelem)
+DumpArrayInt32(struct iod *iodp, char tag,
+              afs_uint32 * array, int nelem)
 {
     char tbuffer[4];
-    register afs_uint32 v;
+    afs_uint32 v;
     int code = 0;
-    register byte *p = (unsigned char *)tbuffer;
+    byte *p = (unsigned char *)tbuffer;
     *p++ = tag;
     putshort(p, nelem);
     code = iod_Write(iodp, tbuffer, 3);
@@ -596,10 +596,10 @@ DumpArrayInt32(register struct iod *iodp, char tag,
 }
 
 static int
-DumpShort(register struct iod *iodp, char tag, unsigned int value)
+DumpShort(struct iod *iodp, char tag, unsigned int value)
 {
     char tbuffer[3];
-    register byte *p = (unsigned char *)tbuffer;
+    byte *p = (unsigned char *)tbuffer;
     *p++ = tag;
     *p++ = value >> 8;
     *p = value;
@@ -607,19 +607,19 @@ DumpShort(register struct iod *iodp, char tag, unsigned int value)
 }
 
 static int
-DumpBool(register struct iod *iodp, char tag, unsigned int value)
+DumpBool(struct iod *iodp, char tag, unsigned int value)
 {
     char tbuffer[2];
-    register byte *p = (unsigned char *)tbuffer;
+    byte *p = (unsigned char *)tbuffer;
     *p++ = tag;
     *p = value;
     return ((iod_Write(iodp, tbuffer, 2) == 2) ? 0 : VOLSERDUMPERROR);
 }
 
 static int
-DumpString(register struct iod *iodp, char tag, register char *s)
+DumpString(struct iod *iodp, char tag, char *s)
 {
-    register int n;
+    int n;
     int code = 0;
     code = iod_Write(iodp, &tag, 1);
     if (code != 1)
@@ -632,8 +632,8 @@ DumpString(register struct iod *iodp, char tag, register char *s)
 }
 
 static int
-DumpByteString(register struct iod *iodp, char tag, register byte * bs,
-              register int nbytes)
+DumpByteString(struct iod *iodp, char tag, byte * bs,
+              int nbytes)
 {
     int code = 0;
 
@@ -647,7 +647,7 @@ DumpByteString(register struct iod *iodp, char tag, register byte * bs,
 }
 
 static afs_int32
-DumpStandardTag(register struct iod *iodp, char tag, afs_uint32 section)
+DumpStandardTag(struct iod *iodp, char tag, afs_uint32 section)
 {
     afs_int32 code;
     afs_uint32 off = tag >> 5;
@@ -669,7 +669,7 @@ DumpStandardTag(register struct iod *iodp, char tag, afs_uint32 section)
 
 AFS_UNUSED
 static afs_int32
-DumpStandardTagLen(register struct iod *iodp, char tag, afs_uint32 section,
+DumpStandardTagLen(struct iod *iodp, char tag, afs_uint32 section,
                         afs_size_t length)
 {
     char buf[10];
@@ -843,7 +843,7 @@ DumpFile(struct iod *iodp, int vnode, FdHandle_t * handleP)
 }
 
 static int
-DumpVolumeHeader(register struct iod *iodp, register Volume * vp)
+DumpVolumeHeader(struct iod *iodp, Volume * vp)
 {
     int code = 0;
     static char nullString[1] = "";    /*The ``contents'' of motd */
@@ -914,7 +914,7 @@ DumpVolumeHeader(register struct iod *iodp, register Volume * vp)
 }
 
 static int
-DumpEnd(register struct iod *iodp)
+DumpEnd(struct iod *iodp)
 {
     return (DumpInt32(iodp, D_DUMPEND, DUMPENDMAGIC));
 }
@@ -923,12 +923,12 @@ DumpEnd(register struct iod *iodp)
 
 /* Dump a whole volume */
 int
-DumpVolume(register struct rx_call *call, register Volume * vp,
+DumpVolume(struct rx_call *call, Volume * vp,
           afs_int32 fromtime, int dumpAllDirs)
 {
     struct iod iod;
     int code = 0;
-    register struct iod *iodp = &iod;
+    struct iod *iodp = &iod;
     iod_Init(iodp, call);
 
     if (!code)
@@ -969,7 +969,7 @@ DumpVolMulti(struct rx_call **calls, int ncalls, Volume * vp,
 
 /* A partial dump (no dump header) */
 static int
-DumpPartial(register struct iod *iodp, register Volume * vp,
+DumpPartial(struct iod *iodp, Volume * vp,
            afs_int32 fromtime, int dumpAllDirs)
 {
     int code = 0;
@@ -983,18 +983,18 @@ DumpPartial(register struct iod *iodp, register Volume * vp,
 }
 
 static int
-DumpVnodeIndex(register struct iod *iodp, Volume * vp, VnodeClass class,
+DumpVnodeIndex(struct iod *iodp, Volume * vp, VnodeClass class,
               afs_int32 fromtime, int forcedump)
 {
-    register int code = 0;
-    register struct VnodeClassInfo *vcp = &VnodeClassInfo[class];
+    int code = 0;
+    struct VnodeClassInfo *vcp = &VnodeClassInfo[class];
     char buf[SIZEOF_LARGEDISKVNODE];
     struct VnodeDiskObject *vnode = (struct VnodeDiskObject *)buf;
     StreamHandle_t *file;
     FdHandle_t *fdP;
     afs_sfsize_t size, nVnodes;
     int flag;
-    register int vnodeIndex;
+    int vnodeIndex;
 
     fdP = IH_OPEN(vp->vnodeIndex[class].handle);
     assert(fdP != NULL);
@@ -1030,7 +1030,7 @@ DumpVnodeIndex(register struct iod *iodp, Volume * vp, VnodeClass class,
 }
 
 static int
-DumpDumpHeader(register struct iod *iodp, register Volume * vp,
+DumpDumpHeader(struct iod *iodp, Volume * vp,
               afs_int32 fromtime)
 {
     int code = 0;
@@ -1055,7 +1055,7 @@ DumpDumpHeader(register struct iod *iodp, register Volume * vp,
 }
 
 static int
-DumpVnode(register struct iod *iodp, struct VnodeDiskObject *v, int volid,
+DumpVnode(struct iod *iodp, struct VnodeDiskObject *v, int volid,
          int vnodeNumber, int dumpEverything)
 {
     int code = 0;
@@ -1123,7 +1123,7 @@ ProcessIndex(Volume * vp, VnodeClass class, afs_int32 ** Bufp, int *sizep,
     FdHandle_t *fdP;
     struct VnodeClassInfo *vcp = &VnodeClassInfo[class];
     char buf[SIZEOF_LARGEDISKVNODE], zero[SIZEOF_LARGEDISKVNODE];
-    register struct VnodeDiskObject *vnode = (struct VnodeDiskObject *)buf;
+    struct VnodeDiskObject *vnode = (struct VnodeDiskObject *)buf;
 
     memset(zero, 0, sizeof(zero));     /* zero out our proto-vnode */
     fdP = IH_OPEN(vp->vnodeIndex[class].handle);
@@ -1206,16 +1206,16 @@ ProcessIndex(Volume * vp, VnodeClass class, afs_int32 ** Bufp, int *sizep,
 
 
 int
-RestoreVolume(register struct rx_call *call, Volume * avp, int incremental,
+RestoreVolume(struct rx_call *call, Volume * avp, int incremental,
              struct restoreCookie *cookie)
 {
     VolumeDiskData vol;
     struct DumpHeader header;
     afs_uint32 endMagic;
     Error error = 0, vupdate;
-    register Volume *vp;
+    Volume *vp;
     struct iod iod;
-    register struct iod *iodp = &iod;
+    struct iod *iodp = &iod;
     afs_int32 *b1 = NULL, *b2 = NULL;
     int s1 = 0, s2 = 0, delo = 0, tdelo;
     int tag;
@@ -1309,13 +1309,13 @@ RestoreVolume(register struct rx_call *call, Volume * avp, int incremental,
 }
 
 static int
-ReadVnodes(register struct iod *iodp, Volume * vp, int incremental,
+ReadVnodes(struct iod *iodp, Volume * vp, int incremental,
           afs_int32 * Lbuf, afs_int32 s1, afs_int32 * Sbuf, afs_int32 s2,
           afs_int32 delo)
 {
     afs_int32 vnodeNumber;
     char buf[SIZEOF_LARGEDISKVNODE];
-    register int tag;
+    int tag;
     struct VnodeDiskObject *vnode = (struct VnodeDiskObject *)buf;
     struct VnodeDiskObject oldvnode;
     int idx;
@@ -1529,7 +1529,7 @@ volser_WriteFile(int vn, struct iod *iodp, FdHandle_t * handleP, int tag,
     afs_fsize_t filesize;
     afs_fsize_t written = 0;
     size_t size = 8192;
-    register afs_fsize_t nbytes;
+    afs_fsize_t nbytes;
     unsigned char *p;
 
 
@@ -1585,9 +1585,9 @@ volser_WriteFile(int vn, struct iod *iodp, FdHandle_t * handleP, int tag,
 }
 
 static int
-ReadDumpHeader(register struct iod *iodp, struct DumpHeader *hp)
+ReadDumpHeader(struct iod *iodp, struct DumpHeader *hp)
 {
-    register int tag;
+    int tag;
     afs_uint32 beginMagic;
     afs_int32 critical = 0;
     if (iod_getc(iodp) != D_DUMPHEADER || !ReadInt32(iodp, &beginMagic)
@@ -1598,7 +1598,7 @@ ReadDumpHeader(register struct iod *iodp, struct DumpHeader *hp)
     hp->nDumpTimes = 0;
     while ((tag = iod_getc(iodp)) > D_MAX) {
        unsigned short arrayLength;
-       register int i;
+       int i;
        if (critical)
            critical--;
        switch (tag) {
@@ -1637,8 +1637,8 @@ ReadDumpHeader(register struct iod *iodp, struct DumpHeader *hp)
 /* ----- Below are the calls that calculate dump size ----- */
 
 static int
-SizeDumpVolumeHeader(register struct iod *iodp, register Volume * vp,
-                    register struct volintSize *v_size)
+SizeDumpVolumeHeader(struct iod *iodp, Volume * vp,
+                    struct volintSize *v_size)
 {
     int code = 0;
     static char nullString[1] = "";    /*The ``contents'' of motd */
@@ -1732,7 +1732,7 @@ SizeDumpVolumeHeader(register struct iod *iodp, register Volume * vp,
 }
 
 static int
-SizeDumpEnd(register struct iod *iodp, register struct volintSize *v_size)
+SizeDumpEnd(struct iod *iodp, struct volintSize *v_size)
 {
     int code = 0;
     afs_uint64 addvar;
@@ -1742,12 +1742,12 @@ SizeDumpEnd(register struct iod *iodp, register struct volintSize *v_size)
 }
 
 int
-SizeDumpVolume(register struct rx_call *call, register Volume * vp,
+SizeDumpVolume(struct rx_call *call, Volume * vp,
               afs_int32 fromtime, int dumpAllDirs,
-              register struct volintSize *v_size)
+              struct volintSize *v_size)
 {
     int code = 0;
-    register struct iod *iodp = (struct iod *)0;
+    struct iod *iodp = (struct iod *)0;
 /*    iod_Init(iodp, call); */
 
     if (!code)
@@ -1761,8 +1761,8 @@ SizeDumpVolume(register struct rx_call *call, register Volume * vp,
 }
 
 static int
-SizeDumpDumpHeader(register struct iod *iodp, register Volume * vp,
-                  afs_int32 fromtime, register struct volintSize *v_size)
+SizeDumpDumpHeader(struct iod *iodp, Volume * vp,
+                  afs_int32 fromtime, struct volintSize *v_size)
 {
     int code = 0;
 /*    int UseLatestReadOnlyClone = 1; */
@@ -1791,9 +1791,9 @@ SizeDumpDumpHeader(register struct iod *iodp, register Volume * vp,
 }
 
 static int
-SizeDumpVnode(register struct iod *iodp, struct VnodeDiskObject *v, int volid,
+SizeDumpVnode(struct iod *iodp, struct VnodeDiskObject *v, int volid,
              int vnodeNumber, int dumpEverything,
-             register struct volintSize *v_size)
+             struct volintSize *v_size)
 {
     int code = 0;
     afs_uint64 addvar;
@@ -1853,9 +1853,9 @@ SizeDumpVnode(register struct iod *iodp, struct VnodeDiskObject *v, int volid,
 
 /* A partial dump (no dump header) */
 static int
-SizeDumpPartial(register struct iod *iodp, register Volume * vp,
+SizeDumpPartial(struct iod *iodp, Volume * vp,
                afs_int32 fromtime, int dumpAllDirs,
-               register struct volintSize *v_size)
+               struct volintSize *v_size)
 {
     int code = 0;
     if (!code)
@@ -1870,19 +1870,19 @@ SizeDumpPartial(register struct iod *iodp, register Volume * vp,
 }
 
 static int
-SizeDumpVnodeIndex(register struct iod *iodp, Volume * vp, VnodeClass class,
+SizeDumpVnodeIndex(struct iod *iodp, Volume * vp, VnodeClass class,
                   afs_int32 fromtime, int forcedump,
-                  register struct volintSize *v_size)
+                  struct volintSize *v_size)
 {
-    register int code = 0;
-    register struct VnodeClassInfo *vcp = &VnodeClassInfo[class];
+    int code = 0;
+    struct VnodeClassInfo *vcp = &VnodeClassInfo[class];
     char buf[SIZEOF_LARGEDISKVNODE];
     struct VnodeDiskObject *vnode = (struct VnodeDiskObject *)buf;
     StreamHandle_t *file;
     FdHandle_t *fdP;
     afs_sfsize_t size, nVnodes;
     int flag;
-    register int vnodeIndex;
+    int vnodeIndex;
 
     fdP = IH_OPEN(vp->vnodeIndex[class].handle);
     assert(fdP != NULL);
index fd89c842558a03edbe75ba34ce65da85147c7164..9a7539f868ca658103d4f26db56694727583e0de 100644 (file)
@@ -95,7 +95,7 @@ int verbose = 0;
 /* Forward Declarations */
 void HandleVolume(struct DiskPartition64 *partP, char *name, char *filename, int fromtime);
 Volume *AttachVolume(struct DiskPartition64 *dp, char *volname,
-                    register struct VolumeHeader *header);
+                    struct VolumeHeader *header);
 static void DoMyVolDump(Volume * vp, struct DiskPartition64 *dp,
                        char *dumpfile, int fromtime);
 
@@ -121,9 +121,9 @@ ReadHdr1(IHandle_t * ih, char *to, int size, u_int magic, u_int version)
 
 Volume *
 AttachVolume(struct DiskPartition64 * dp, char *volname,
-            register struct VolumeHeader * header)
+            struct VolumeHeader * header)
 {
-    register Volume *vp;
+    Volume *vp;
     afs_int32 ec = 0;
 
     vp = (Volume *) calloc(1, sizeof(Volume));
@@ -170,7 +170,7 @@ AttachVolume(struct DiskPartition64 * dp, char *volname,
 static int
 handleit(struct cmd_syndesc *as, void *arock)
 {
-    register struct cmd_item *ti;
+    struct cmd_item *ti;
     int err = 0;
     afs_uint32 volumeId = 0;
     char *partName = 0;
@@ -254,7 +254,7 @@ HandleVolume(struct DiskPartition64 *dp, char *name, char *filename, int fromtim
     struct VolumeHeader header;
     struct VolumeDiskHeader diskHeader;
     struct afs_stat status;
-    register int fd;
+    int fd;
     Volume *vp;
     char headerName[1024];
 
@@ -297,7 +297,7 @@ HandleVolume(struct DiskPartition64 *dp, char *name, char *filename, int fromtim
 int
 main(int argc, char **argv)
 {
-    register struct cmd_syndesc *ts;
+    struct cmd_syndesc *ts;
     afs_int32 code;
     VolumePackageOptions opts;
 
@@ -323,12 +323,12 @@ main(int argc, char **argv)
 
 
 static int
-DumpDouble(int dumpfd, char tag, register afs_uint32 value1,
-          register afs_uint32 value2)
+DumpDouble(int dumpfd, char tag, afs_uint32 value1,
+          afs_uint32 value2)
 {
     int res;
     char tbuffer[9];
-    register byte *p = (unsigned char *)tbuffer;
+    byte *p = (unsigned char *)tbuffer;
     *p++ = tag;
     putint32(p, value1);
     putint32(p, value2);
@@ -338,19 +338,19 @@ DumpDouble(int dumpfd, char tag, register afs_uint32 value1,
 }
 
 static int
-DumpInt32(int dumpfd, char tag, register afs_uint32 value)
+DumpInt32(int dumpfd, char tag, afs_uint32 value)
 {
     char tbuffer[5];
-    register byte *p = (unsigned char *)tbuffer;
+    byte *p = (unsigned char *)tbuffer;
     *p++ = tag;
     putint32(p, value);
     return ((write(dumpfd, tbuffer, 5) == 5) ? 0 : VOLSERDUMPERROR);
 }
 
 static int
-DumpString(int dumpfd, char tag, register char *s)
+DumpString(int dumpfd, char tag, char *s)
 {
-    register int n;
+    int n;
     int code = 0;
     code = write(dumpfd, &tag, 1);
     if (code != 1)
@@ -364,13 +364,13 @@ DumpString(int dumpfd, char tag, register char *s)
 
 
 static int
-DumpArrayInt32(int dumpfd, char tag, register afs_uint32 * array,
-              register int nelem)
+DumpArrayInt32(int dumpfd, char tag, afs_uint32 * array,
+              int nelem)
 {
     char tbuffer[4];
-    register afs_uint32 v;
+    afs_uint32 v;
     int code = 0;
-    register byte *p = (unsigned char *)tbuffer;
+    byte *p = (unsigned char *)tbuffer;
     *p++ = tag;
     putshort(p, nelem);
     code = write(dumpfd, tbuffer, 3);
@@ -392,7 +392,7 @@ DumpArrayInt32(int dumpfd, char tag, register afs_uint32 * array,
 
 
 static int
-DumpDumpHeader(int dumpfd, register Volume * vp, afs_int32 fromtime)
+DumpDumpHeader(int dumpfd, Volume * vp, afs_int32 fromtime)
 {
     int code = 0;
     afs_int32 dumpTimes[2];
@@ -428,14 +428,14 @@ static int
 DumpByte(int dumpfd, char tag, byte value)
 {
     char tbuffer[2];
-    register byte *p = (unsigned char *)tbuffer;
+    byte *p = (unsigned char *)tbuffer;
     *p++ = tag;
     *p = value;
     return ((write(dumpfd, tbuffer, 2) == 2) ? 0 : VOLSERDUMPERROR);
 }
 
 static int
-DumpTag(int dumpfd, register int tag)
+DumpTag(int dumpfd, int tag)
 {
     char p;
 
@@ -448,7 +448,7 @@ static int
 DumpBool(int dumpfd, char tag, unsigned int value)
 {
     char tbuffer[2];
-    register byte *p = (unsigned char *)tbuffer;
+    byte *p = (unsigned char *)tbuffer;
     *p++ = tag;
     *p = value;
     return ((write(dumpfd, tbuffer, 2) == 2) ? 0 : VOLSERDUMPERROR);
@@ -457,7 +457,7 @@ DumpBool(int dumpfd, char tag, unsigned int value)
 
 
 static int
-DumpVolumeHeader(int dumpfd, register Volume * vp)
+DumpVolumeHeader(int dumpfd, Volume * vp)
 {
     int code = 0;
 
@@ -532,7 +532,7 @@ static int
 DumpShort(int dumpfd, char tag, unsigned int value)
 {
     char tbuffer[3];
-    register byte *p = (unsigned char *)tbuffer;
+    byte *p = (unsigned char *)tbuffer;
     *p++ = tag;
     *p++ = value >> 8;
     *p = value;
@@ -540,7 +540,7 @@ DumpShort(int dumpfd, char tag, unsigned int value)
 }
 
 static int
-DumpByteString(int dumpfd, char tag, register byte * bs, register int nbytes)
+DumpByteString(int dumpfd, char tag, byte * bs, int nbytes)
 {
     int code = 0;
 
@@ -776,8 +776,8 @@ static int
 DumpVnodeIndex(int dumpfd, Volume * vp, VnodeClass class, afs_int32 fromtime,
               int forcedump)
 {
-    register int code = 0;
-    register struct VnodeClassInfo *vcp = &VnodeClassInfo[class];
+    int code = 0;
+    struct VnodeClassInfo *vcp = &VnodeClassInfo[class];
     char buf[SIZEOF_LARGEDISKVNODE];
     struct VnodeDiskObject *vnode = (struct VnodeDiskObject *)buf;
     StreamHandle_t *file;
@@ -785,7 +785,7 @@ DumpVnodeIndex(int dumpfd, Volume * vp, VnodeClass class, afs_int32 fromtime,
     afs_sfsize_t size;
     int flag;
     int offset = 0;
-    register int vnodeIndex, nVnodes = 0;
+    int vnodeIndex, nVnodes = 0;
 
     fdP = IH_OPEN(vp->vnodeIndex[class].handle);
     file = FDH_FDOPEN(fdP, "r+");
@@ -822,7 +822,7 @@ DumpVnodeIndex(int dumpfd, Volume * vp, VnodeClass class, afs_int32 fromtime,
 
 /* A partial dump (no dump header) */
 static int
-DumpPartial(int dumpfd, register Volume * vp, afs_int32 fromtime,
+DumpPartial(int dumpfd, Volume * vp, afs_int32 fromtime,
            int dumpAllDirs)
 {
     int code = 0;
index 592a1f31e5a097e82b76a1b9f2f186f956dc0883..2b43be614cd9eb0998852ba7ab4bf40fe7b6c54c 100644 (file)
@@ -242,7 +242,7 @@ vol_rxstat_userok(struct rx_call *call)
 int 
 main(int argc, char **argv)
 {
-    register afs_int32 code;
+    afs_int32 code;
     struct rx_securityClass **securityClasses;
     afs_int32 numClasses;
     struct rx_service *service;
index 5e84bbf81810be896f4aca510a30f76bd1ce4a23..18bd7e7a12a987d88386151ea54a53789b4ce026 100644 (file)
@@ -136,7 +136,7 @@ static afs_int32 VolSetDate(struct rx_call *, afs_int32, afs_int32);
 int 
 VPFullUnlock_r(void)
 {
-    register struct DiskPartition64 *tp;
+    struct DiskPartition64 *tp;
     for (tp = DiskPartitionList; tp; tp = tp->next) {
        if (tp->lock_fd != INVALID_FD) {
            close(tp->lock_fd); /* releases flock held on this partition */
@@ -160,8 +160,8 @@ VPFullUnlock(void)
 afs_int32
 PartitionID(char *aname)
 {
-    register char tc;
-    register int code = 0;
+    char tc;
+    int code = 0;
     char ascii[3];
 
     tc = *aname;
@@ -446,7 +446,7 @@ afs_int32
 VolPartitionInfo(struct rx_call *acid, char *pname, struct diskPartition64 
                 *partition)
 {
-    register struct DiskPartition64 *dp;
+    struct DiskPartition64 *dp;
 
 /*
     if (!afsconf_SuperUser(tdir, acid, caller)) return VOLSERBAD_ACCESS;
@@ -481,7 +481,7 @@ VolNukeVolume(struct rx_call *acid, afs_int32 apartID, afs_uint32 avolID)
     char partName[50];
     afs_int32 error;
     Error verror;
-    register afs_int32 code;
+    afs_int32 code;
     struct Volume *tvp;
     char caller[MAXKTCNAMELEN];
 
@@ -531,11 +531,11 @@ VolCreateVolume(struct rx_call *acid, afs_int32 apart, char *aname,
                    afs_int32 *atrans)
 {
     Error error;
-    register Volume *vp;
+    Volume *vp;
     Error junk;                /* discardable error code */
     afs_uint32 volumeID;
     afs_int32 doCreateRoot = 1;
-    register struct volser_trans *tt;
+    struct volser_trans *tt;
     char ppath[30];
     char caller[MAXKTCNAMELEN];
 
@@ -622,7 +622,7 @@ SAFSVolDeleteVolume(struct rx_call *acid, afs_int32 atrans)
 static afs_int32
 VolDeleteVolume(struct rx_call *acid, afs_int32 atrans)
 {
-    register struct volser_trans *tt;
+    struct volser_trans *tt;
     Error error;
     char caller[MAXKTCNAMELEN];
 
@@ -681,9 +681,9 @@ VolClone(struct rx_call *acid, afs_int32 atrans, afs_uint32 purgeId,
             afs_int32 newType, char *newName, afs_uint32 *newNumber)
 {
     afs_uint32 newId;
-    register struct Volume *originalvp, *purgevp, *newvp;
+    struct Volume *originalvp, *purgevp, *newvp;
     Error error, code;
-    register struct volser_trans *tt, *ttc;
+    struct volser_trans *tt, *ttc;
     char caller[MAXKTCNAMELEN];
 #ifdef AFS_DEMAND_ATTACH_FS
     struct Volume *salv_vp = NULL;
@@ -877,10 +877,10 @@ SAFSVolReClone(struct rx_call *acid, afs_int32 atrans, afs_uint32 cloneId)
 static afs_int32
 VolReClone(struct rx_call *acid, afs_int32 atrans, afs_int32 cloneId)
 {
-    register struct Volume *originalvp, *clonevp;
+    struct Volume *originalvp, *clonevp;
     Error error, code;
     afs_int32 newType;
-    register struct volser_trans *tt, *ttc;
+    struct volser_trans *tt, *ttc;
     char caller[MAXKTCNAMELEN];
 
     /*not a super user */
@@ -1052,8 +1052,8 @@ static afs_int32
 VolTransCreate(struct rx_call *acid, afs_uint32 volume, afs_int32 partition,
                   afs_int32 iflags, afs_int32 *ttid)
 {
-    register struct volser_trans *tt;
-    register Volume *tv;
+    struct volser_trans *tt;
+    Volume *tv;
     afs_int32 error;
     Error code;
     afs_int32 mode;
@@ -1140,7 +1140,7 @@ SAFSVolGetFlags(struct rx_call *acid, afs_int32 atid, afs_int32 *aflags)
 static afs_int32
 VolGetFlags(struct rx_call *acid, afs_int32 atid, afs_int32 *aflags)
 {
-    register struct volser_trans *tt;
+    struct volser_trans *tt;
 
     tt = FindTrans(atid);
     if (!tt)
@@ -1178,8 +1178,8 @@ SAFSVolSetFlags(struct rx_call *acid, afs_int32 atid, afs_int32 aflags)
 static afs_int32
 VolSetFlags(struct rx_call *acid, afs_int32 atid, afs_int32 aflags)
 {
-    register struct volser_trans *tt;
-    register struct Volume *vp;
+    struct volser_trans *tt;
+    struct Volume *vp;
     Error error;
     char caller[MAXKTCNAMELEN];
 
@@ -1250,11 +1250,11 @@ VolForward(struct rx_call *acid, afs_int32 fromTrans, afs_int32 fromDate,
               struct destServer *destination, afs_int32 destTrans, 
               struct restoreCookie *cookie)
 {
-    register struct volser_trans *tt;
-    register afs_int32 code;
-    register struct rx_connection *tcon;
+    struct volser_trans *tt;
+    afs_int32 code;
+    struct rx_connection *tcon;
     struct rx_call *tcall;
-    register struct Volume *vp;
+    struct Volume *vp;
     struct rx_securityClass *securityObject;
     afs_int32 securityIndex;
     char caller[MAXKTCNAMELEN];
@@ -1485,7 +1485,7 @@ VolDump(struct rx_call *acid, afs_int32 fromTrans, afs_int32 fromDate,
        afs_int32 flags)
 {
     int code = 0;
-    register struct volser_trans *tt;
+    struct volser_trans *tt;
     char caller[MAXKTCNAMELEN];
 
     if (!afsconf_SuperUser(tdir, acid, caller))
@@ -1532,8 +1532,8 @@ static afs_int32
 VolRestore(struct rx_call *acid, afs_int32 atrans, afs_int32 aflags,
           struct restoreCookie *cookie)
 {
-    register struct volser_trans *tt;
-    register afs_int32 code, tcode;
+    struct volser_trans *tt;
+    afs_int32 code, tcode;
     char caller[MAXKTCNAMELEN];
 
     if (!afsconf_SuperUser(tdir, acid, caller))
@@ -1572,7 +1572,7 @@ SAFSVolEndTrans(struct rx_call *acid, afs_int32 destTrans, afs_int32 *rcode)
 static afs_int32
 VolEndTrans(struct rx_call *acid, afs_int32 destTrans, afs_int32 *rcode)
 {
-    register struct volser_trans *tt;
+    struct volser_trans *tt;
     char caller[MAXKTCNAMELEN];
 
     if (!afsconf_SuperUser(tdir, acid, caller))
@@ -1601,7 +1601,7 @@ SAFSVolSetForwarding(struct rx_call *acid, afs_int32 atid, afs_int32 anewsite)
 static afs_int32
 VolSetForwarding(struct rx_call *acid, afs_int32 atid, afs_int32 anewsite)
 {
-    register struct volser_trans *tt;
+    struct volser_trans *tt;
     char caller[MAXKTCNAMELEN];
     char partName[16];
 
@@ -1630,7 +1630,7 @@ VolSetForwarding(struct rx_call *acid, afs_int32 atid, afs_int32 anewsite)
 
 afs_int32
 SAFSVolGetStatus(struct rx_call *acid, afs_int32 atrans,
-                register struct volser_status *astatus)
+                struct volser_status *astatus)
 {
     afs_int32 code;
 
@@ -1641,10 +1641,10 @@ SAFSVolGetStatus(struct rx_call *acid, afs_int32 atrans,
 
 static afs_int32
 VolGetStatus(struct rx_call *acid, afs_int32 atrans,
-            register struct volser_status *astatus)
+            struct volser_status *astatus)
 {
-    register struct Volume *tv;
-    register struct VolumeDiskData *td;
+    struct Volume *tv;
+    struct VolumeDiskData *td;
     struct volser_trans *tt;
 
 
@@ -1691,7 +1691,7 @@ VolGetStatus(struct rx_call *acid, afs_int32 atrans,
 
 afs_int32
 SAFSVolSetInfo(struct rx_call *acid, afs_int32 atrans,
-              register struct volintInfo *astatus)
+              struct volintInfo *astatus)
 {
     afs_int32 code;
 
@@ -1702,10 +1702,10 @@ SAFSVolSetInfo(struct rx_call *acid, afs_int32 atrans,
 
 static afs_int32
 VolSetInfo(struct rx_call *acid, afs_int32 atrans,
-              register struct volintInfo *astatus)
+              struct volintInfo *astatus)
 {
-    register struct Volume *tv;
-    register struct VolumeDiskData *td;
+    struct Volume *tv;
+    struct VolumeDiskData *td;
     struct volser_trans *tt;
     char caller[MAXKTCNAMELEN];
     Error error;
@@ -1763,10 +1763,10 @@ SAFSVolGetName(struct rx_call *acid, afs_int32 atrans, char **aname)
 static afs_int32
 VolGetName(struct rx_call *acid, afs_int32 atrans, char **aname)
 {
-    register struct Volume *tv;
-    register struct VolumeDiskData *td;
+    struct Volume *tv;
+    struct VolumeDiskData *td;
     struct volser_trans *tt;
-    register int len;
+    int len;
 
     /* We need to at least fill it in */
     *aname = (char *)malloc(1);
@@ -1997,7 +1997,7 @@ static int
 FillVolInfo(Volume * vp, volint_info_handle_t * handle)
 {
     unsigned int numStatBytes, now;
-    register struct VolumeDiskData *hdr = &vp->header->diskstuff;
+    struct VolumeDiskData *hdr = &vp->header->diskstuff;
 
     /*read in the relevant info */
     strcpy((char *)VOLINT_INFO_PTR(handle, name), hdr->name);
@@ -2892,7 +2892,7 @@ VolSetIdsTypes(struct rx_call *acid, afs_int32 atid, char name[],
 {
     struct Volume *tv;
     Error error = 0;
-    register struct volser_trans *tt;
+    struct volser_trans *tt;
     char caller[MAXKTCNAMELEN];
 
     if (strlen(name) > 31)
@@ -2950,7 +2950,7 @@ VolSetDate(struct rx_call *acid, afs_int32 atid, afs_int32 cdate)
 {
     struct Volume *tv;
     Error error = 0;
-    register struct volser_trans *tt;
+    struct volser_trans *tt;
     char caller[MAXKTCNAMELEN];
 
     if (!afsconf_SuperUser(tdir, acid, caller))
@@ -2995,7 +2995,7 @@ SAFSVolConvertROtoRWvolume(struct rx_call *acid, afs_int32 partId,
 #else
     char caller[MAXKTCNAMELEN];
     DIR *dirp;
-    register struct volser_trans *ttc;
+    struct volser_trans *ttc;
     char pname[16], volname[20];
     struct DiskPartition64 *partP;
     afs_int32 ret = ENODEV;
@@ -3049,10 +3049,10 @@ SAFSVolConvertROtoRWvolume(struct rx_call *acid, afs_int32 partId,
 
 afs_int32
 SAFSVolGetSize(struct rx_call *acid, afs_int32 fromTrans, afs_int32 fromDate,
-              register struct volintSize *size)
+              struct volintSize *size)
 {
     int code = 0;
-    register struct volser_trans *tt;
+    struct volser_trans *tt;
     char caller[MAXKTCNAMELEN];
 
     if (!afsconf_SuperUser(tdir, acid, caller))
index d2ec0a6f54be2ca6a57eee56a95b24f3f81eb87e..6431f78f9d7f6b671b4f9a1d87956be97cbfaf1e 100644 (file)
@@ -26,7 +26,7 @@ extern int UV_CreateVolume(afs_uint32 aserver, afs_int32 apart, char *aname,
 extern int UV_DeleteVolume(afs_uint32 aserver, afs_int32 apart,
                           afs_uint32 avolid);
 
-extern int UV_SetSecurity(register struct rx_securityClass *as,
+extern int UV_SetSecurity(struct rx_securityClass *as,
                           afs_int32 aindex);
 
 extern int UV_ListOneVolume(afs_uint32 aserver, afs_int32 apart,
index bb182c1f92234e1252ad802d92670d1ad81620b8..b12ae71bde22c3fdfcd5cd601a23723c9c6c2e4b 100644 (file)
@@ -106,9 +106,9 @@ NewTrans(afs_uint32 avol, afs_int32 apart)
 
 /* find a trans, again returning with high ref count */
 struct volser_trans *
-FindTrans(register afs_int32 atrans)
+FindTrans(afs_int32 atrans)
 {
-    register struct volser_trans *tt;
+    struct volser_trans *tt;
     VTRANS_LOCK;
     for (tt = allTrans; tt; tt = tt->next) {
        if (tt->tid == atrans) {
@@ -124,9 +124,9 @@ FindTrans(register afs_int32 atrans)
 
 /* delete transaction if refcount == 1, otherwise queue delete for later.  Does implicit TRELE */
 afs_int32 
-DeleteTrans(register struct volser_trans *atrans, afs_int32 lock)
+DeleteTrans(struct volser_trans *atrans, afs_int32 lock)
 {
-    register struct volser_trans *tt, **lt;
+    struct volser_trans *tt, **lt;
     Error error;
 
     if (lock) VTRANS_LOCK;
@@ -162,7 +162,7 @@ DeleteTrans(register struct volser_trans *atrans, afs_int32 lock)
 
 /* put a transaction back */
 afs_int32 
-TRELE(register struct volser_trans *at)
+TRELE(struct volser_trans *at)
 {
     VTRANS_LOCK;
     if (at->refCount == 0) {
@@ -190,7 +190,7 @@ static int GCDeletes = 0;
 afs_int32
 GCTrans(void)
 {
-    register struct volser_trans *tt, *nt;
+    struct volser_trans *tt, *nt;
     afs_int32 now;
 
     now = FT_ApproxTime();
index c3e2ebedbb34a2cb36c3db194a21e2d1a9581519..e3c78fbc04879b0e10dd736ae6b567508840186c 100644 (file)
@@ -224,9 +224,9 @@ GetServerNoresolve(char *aname)
 afs_uint32
 GetServer(char *aname)
 {
-    register struct hostent *th;
+    struct hostent *th;
     afs_uint32 addr; /* in network byte order */
-    register afs_int32 code;
+    afs_int32 code;
     char hostname[MAXHOSTCHARS];
 
     if ((addr = GetServerNoresolve(aname)) == 0) {
@@ -288,7 +288,7 @@ IsPartValid(afs_int32 partId, afs_uint32 server, afs_int32 *code)
  /*sends the contents of file associated with <fd> and <blksize>  to Rx Stream 
   * associated  with <call> */
 int 
-SendFile(usd_handle_t ufd, register struct rx_call *call, long blksize)
+SendFile(usd_handle_t ufd, struct rx_call *call, long blksize)
 {
     char *buffer = (char *)0;
     afs_int32 error = 0;
@@ -1500,14 +1500,14 @@ VolumeStats_int(volintInfo *pntr, struct nvldbentry *entry, afs_uint32 server,
 
 /* command to forcibly remove a volume */
 static int
-NukeVolume(register struct cmd_syndesc *as)
+NukeVolume(struct cmd_syndesc *as)
 {
-    register afs_int32 code;
+    afs_int32 code;
     afs_uint32 volID;
     afs_int32  err;
     afs_int32 partID;
     afs_uint32 server;
-    register char *tp;
+    char *tp;
 
     server = GetServer(tp = as->parms[0].items->data);
     if (!server) {
@@ -1566,7 +1566,7 @@ NukeVolume(register struct cmd_syndesc *as)
  *------------------------------------------------------------------------
  */
 static int
-ExamineVolume(register struct cmd_syndesc *as, void *arock)
+ExamineVolume(struct cmd_syndesc *as, void *arock)
 {
     struct nvldbentry entry;
     afs_int32 vcode = 0;
@@ -1719,7 +1719,7 @@ ExamineVolume(register struct cmd_syndesc *as, void *arock)
  *------------------------------------------------------------------------
  */
 static int
-SetFields(register struct cmd_syndesc *as, void *arock)
+SetFields(struct cmd_syndesc *as, void *arock)
 {
     struct nvldbentry entry;
     volintInfo info;
@@ -1803,7 +1803,7 @@ SetFields(register struct cmd_syndesc *as, void *arock)
  *------------------------------------------------------------------------
  */
 static int
-volOnline(register struct cmd_syndesc *as, void *arock)
+volOnline(struct cmd_syndesc *as, void *arock)
 {
     afs_uint32 server;
     afs_int32 partition;
@@ -1864,7 +1864,7 @@ volOnline(register struct cmd_syndesc *as, void *arock)
  *------------------------------------------------------------------------
  */
 static int
-volOffline(register struct cmd_syndesc *as, void *arock)
+volOffline(struct cmd_syndesc *as, void *arock)
 {
     afs_uint32 server;
     afs_int32 partition;
@@ -1916,7 +1916,7 @@ volOffline(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-CreateVolume(register struct cmd_syndesc *as, void *arock)
+CreateVolume(struct cmd_syndesc *as, void *arock)
 {
     afs_int32 pnum;
     char part[10];
@@ -2179,7 +2179,7 @@ DeleteVolume(struct cmd_syndesc *as, void *arock)
 
 #define TESTM  0               /* set for move space tests, clear for production */
 static int
-MoveVolume(register struct cmd_syndesc *as, void *arock)
+MoveVolume(struct cmd_syndesc *as, void *arock)
 {
 
     afs_uint32 volid;
@@ -2308,7 +2308,7 @@ MoveVolume(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-CopyVolume(register struct cmd_syndesc *as, void *arock)
+CopyVolume(struct cmd_syndesc *as, void *arock)
 {
     afs_uint32 volid;
     afs_uint32 fromserver, toserver;
@@ -2456,7 +2456,7 @@ CopyVolume(register struct cmd_syndesc *as, void *arock)
 
 
 static int
-ShadowVolume(register struct cmd_syndesc *as, void *arock)
+ShadowVolume(struct cmd_syndesc *as, void *arock)
 {
     afs_uint32 volid, tovolid;
     afs_uint32 fromserver, toserver;
@@ -2653,7 +2653,7 @@ ShadowVolume(register struct cmd_syndesc *as, void *arock)
 
 
 static int
-CloneVolume(register struct cmd_syndesc *as, void *arock)
+CloneVolume(struct cmd_syndesc *as, void *arock)
 {
     afs_uint32 volid, cloneid;
     afs_uint32 server;
@@ -2768,7 +2768,7 @@ CloneVolume(register struct cmd_syndesc *as, void *arock)
 
 
 static int
-BackupVolume(register struct cmd_syndesc *as, void *arock)
+BackupVolume(struct cmd_syndesc *as, void *arock)
 {
     afs_uint32 avolid;
     afs_uint32 aserver;
@@ -2840,7 +2840,7 @@ BackupVolume(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-ReleaseVolume(register struct cmd_syndesc *as, void *arock)
+ReleaseVolume(struct cmd_syndesc *as, void *arock)
 {
 
     struct nvldbentry entry;
@@ -2887,7 +2887,7 @@ ReleaseVolume(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-DumpVolumeCmd(register struct cmd_syndesc *as, void *arock)
+DumpVolumeCmd(struct cmd_syndesc *as, void *arock)
 {
     afs_uint32 avolid;
     afs_uint32 aserver;
@@ -2989,7 +2989,7 @@ retry_dump:
 #define TS_NEW 3
 
 static int
-RestoreVolumeCmd(register struct cmd_syndesc *as, void *arock)
+RestoreVolumeCmd(struct cmd_syndesc *as, void *arock)
 {
     afs_uint32 avolid, aparentid;
     afs_uint32 aserver;
@@ -3287,7 +3287,7 @@ RestoreVolumeCmd(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-LockReleaseCmd(register struct cmd_syndesc *as, void *arock)
+LockReleaseCmd(struct cmd_syndesc *as, void *arock)
 {
     afs_uint32 avolid;
     afs_int32 code, err;
@@ -3313,7 +3313,7 @@ LockReleaseCmd(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-AddSite(register struct cmd_syndesc *as, void *arock)
+AddSite(struct cmd_syndesc *as, void *arock)
 {
     afs_uint32 avolid;
     afs_uint32 aserver;
@@ -3376,7 +3376,7 @@ AddSite(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-RemoveSite(register struct cmd_syndesc *as, void *arock)
+RemoveSite(struct cmd_syndesc *as, void *arock)
 {
 
     afs_uint32 avolid;
@@ -3429,7 +3429,7 @@ RemoveSite(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-ChangeLocation(register struct cmd_syndesc *as, void *arock)
+ChangeLocation(struct cmd_syndesc *as, void *arock)
 {
     afs_uint32 avolid;
     afs_uint32 aserver;
@@ -3478,7 +3478,7 @@ ChangeLocation(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-ListPartitions(register struct cmd_syndesc *as, void *arock)
+ListPartitions(struct cmd_syndesc *as, void *arock)
 {
     afs_uint32 aserver;
     afs_int32 code;
@@ -3637,7 +3637,7 @@ XCompareVolID(const void *a_obj1P, const void *a_obj2P)
  *------------------------------------------------------------------------*/
 
 static int
-ListVolumes(register struct cmd_syndesc *as, void *arock)
+ListVolumes(struct cmd_syndesc *as, void *arock)
 {
     afs_int32 apart, int32list, fast;
     afs_uint32 aserver;
@@ -3792,7 +3792,7 @@ ListVolumes(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-SyncVldb(register struct cmd_syndesc *as, void *arock)
+SyncVldb(struct cmd_syndesc *as, void *arock)
 {
     afs_int32 pnum = 0, code;  /* part name */
     char part[10];
@@ -3874,7 +3874,7 @@ SyncVldb(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-SyncServer(register struct cmd_syndesc *as, void *arock)
+SyncServer(struct cmd_syndesc *as, void *arock)
 {
     afs_int32 pnum, code;      /* part name */
     char part[10];
@@ -3954,7 +3954,7 @@ VolumeInfoCmd(char *name)
 }
 
 static int
-VolumeZap(register struct cmd_syndesc *as, void *arock)
+VolumeZap(struct cmd_syndesc *as, void *arock)
 {
     struct nvldbentry entry;
     afs_uint32 volid, zapbackupid = 0, backupid = 0;
@@ -4040,7 +4040,7 @@ VolumeZap(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-VolserStatus(register struct cmd_syndesc *as, void *arock)
+VolserStatus(struct cmd_syndesc *as, void *arock)
 {
     afs_uint32 server;
     afs_int32 code;
@@ -4138,7 +4138,7 @@ VolserStatus(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-RenameVolume(register struct cmd_syndesc *as, void *arock)
+RenameVolume(struct cmd_syndesc *as, void *arock)
 {
     afs_int32 code1, code2, code;
     struct nvldbentry entry;
@@ -4258,14 +4258,14 @@ GetVolumeInfo(afs_uint32 volid, afs_uint32 *server, afs_int32 *part, afs_int32 *
 }
 
 static int
-DeleteEntry(register struct cmd_syndesc *as, void *arock)
+DeleteEntry(struct cmd_syndesc *as, void *arock)
 {
     afs_int32 apart = 0;
     afs_uint32 avolid;
     afs_int32 vcode;
     struct VldbListByAttributes attributes;
     nbulkentries arrayEntries;
-    register struct nvldbentry *vllist;
+    struct nvldbentry *vllist;
     struct cmd_item *itp;
     afs_int32 nentries;
     int j;
@@ -4650,7 +4650,7 @@ ListVLDB(struct cmd_syndesc *as, void *arock)
 }
 
 static int
-BackSys(register struct cmd_syndesc *as, void *arock)
+BackSys(struct cmd_syndesc *as, void *arock)
 {
     afs_uint32 avolid;
     afs_int32 apart = 0;
@@ -4659,7 +4659,7 @@ BackSys(register struct cmd_syndesc *as, void *arock)
     afs_int32 vcode;
     struct VldbListByAttributes attributes;
     nbulkentries arrayEntries;
-    register struct nvldbentry *vllist;
+    struct nvldbentry *vllist;
     afs_int32 nentries;
     int j;
     char pname[10];
@@ -4984,7 +4984,7 @@ BackSys(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-UnlockVLDB(register struct cmd_syndesc *as, void *arock)
+UnlockVLDB(struct cmd_syndesc *as, void *arock)
 {
     afs_int32 apart;
     afs_uint32 aserver = 0;
@@ -4992,7 +4992,7 @@ UnlockVLDB(register struct cmd_syndesc *as, void *arock)
     afs_int32 vcode;
     struct VldbListByAttributes attributes;
     nbulkentries arrayEntries;
-    register struct nvldbentry *vllist;
+    struct nvldbentry *vllist;
     afs_int32 nentries;
     int j;
     afs_uint32 volid;
@@ -5088,8 +5088,8 @@ UnlockVLDB(register struct cmd_syndesc *as, void *arock)
 static char *
 PrintInt64Size(afs_uint64 in)
 {
-    register afs_uint32 hi, lo;
-    register char * units;
+    afs_uint32 hi, lo;
+    char * units;
     static char output[16];
 
     SplitInt64(in,hi,lo);
@@ -5114,7 +5114,7 @@ PrintInt64Size(afs_uint64 in)
 }
 
 static int
-PartitionInfo(register struct cmd_syndesc *as, void *arock)
+PartitionInfo(struct cmd_syndesc *as, void *arock)
 {
     afs_int32 apart;
     afs_uint32 aserver;
@@ -5197,7 +5197,7 @@ PartitionInfo(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-ChangeAddr(register struct cmd_syndesc *as, void *arock)
+ChangeAddr(struct cmd_syndesc *as, void *arock)
 {
     afs_int32 ip1, ip2, vcode;
     int remove = 0;
@@ -5356,7 +5356,7 @@ print_addrs(const bulkaddrs * addrs, afsUUID * m_uuid, int nentries,
 }
 
 static int
-ListAddrs(register struct cmd_syndesc *as, void *arock)
+ListAddrs(struct cmd_syndesc *as, void *arock)
 {
     afs_int32 vcode, m_uniq=0;
     afs_int32 i, printuuid = 0;
@@ -5461,7 +5461,7 @@ ListAddrs(register struct cmd_syndesc *as, void *arock)
 
 
 static int
-SetAddrs(register struct cmd_syndesc *as, void *arock)
+SetAddrs(struct cmd_syndesc *as, void *arock)
 {
     afs_int32 vcode;
     bulkaddrs m_addrs;
@@ -5525,7 +5525,7 @@ SetAddrs(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-LockEntry(register struct cmd_syndesc *as, void *arock)
+LockEntry(struct cmd_syndesc *as, void *arock)
 {
     afs_uint32 avolid;
     afs_int32 vcode, err;
@@ -5552,7 +5552,7 @@ LockEntry(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-ConvertRO(register struct cmd_syndesc *as, void *arock)
+ConvertRO(struct cmd_syndesc *as, void *arock)
 {
     afs_int32 partition = -1;
     afs_uint32 volid;
@@ -5718,7 +5718,7 @@ ConvertRO(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-Sizes(register struct cmd_syndesc *as, void *arock)
+Sizes(struct cmd_syndesc *as, void *arock)
 {
     afs_uint32 avolid;
     afs_uint32 aserver;
@@ -5804,7 +5804,7 @@ Sizes(register struct cmd_syndesc *as, void *arock)
 }
 
 static int
-EndTrans(register struct cmd_syndesc *as, void *arock)
+EndTrans(struct cmd_syndesc *as, void *arock)
 {
     afs_uint32 server;
     afs_int32 code, tid, rcode;
@@ -5878,9 +5878,9 @@ win32_enableCrypt(void)
 static int
 MyBeforeProc(struct cmd_syndesc *as, void *arock)
 {
-    register char *tcell;
-    register afs_int32 code;
-    register afs_int32 sauth;
+    char *tcell;
+    afs_int32 code;
+    afs_int32 sauth;
 
     /* Initialize the ubik_client connection */
     rx_SetRxDeadTime(90);
@@ -5930,9 +5930,9 @@ osi_audit(void)
 int
 main(int argc, char **argv)
 {
-    register afs_int32 code;
+    afs_int32 code;
 
-    register struct cmd_syndesc *ts;
+    struct cmd_syndesc *ts;
 
 #ifdef AFS_AIX32_ENV
     /*
index 72c08382b957f18e459478be3bdc0d8badf7f991..1ce5b64978a08340301726cb22670ae58740ef21 100644 (file)
@@ -435,7 +435,7 @@ static struct rx_securityClass *uvclass = 0;
 static int uvindex = -1;
 /* called by VLDBClient_Init to set the security module to be used in the RPC */
 int
-UV_SetSecurity(register struct rx_securityClass *as, afs_int32 aindex)
+UV_SetSecurity(struct rx_securityClass *as, afs_int32 aindex)
 {
     uvindex = aindex;
     uvclass = as;
@@ -447,7 +447,7 @@ UV_SetSecurity(register struct rx_securityClass *as, afs_int32 aindex)
 struct rx_connection *
 UV_Bind(afs_uint32 aserver, afs_int32 port)
 {
-    register struct rx_connection *tc;
+    struct rx_connection *tc;
 
     tc = rx_NewConnection(aserver, htons(port), VOLSERVICE_ID, uvclass,
                          uvindex);
@@ -633,8 +633,8 @@ EnumerateEntry(struct nvldbentry *entry)
 int
 UV_NukeVolume(afs_uint32 server, afs_int32 partid, afs_uint32 volid)
 {
-    register struct rx_connection *tconn;
-    register afs_int32 code;
+    struct rx_connection *tconn;
+    afs_int32 code;
 
     tconn = UV_Bind(server, AFSCONF_VOLUMEPORT);
     if (tconn) {
@@ -650,7 +650,7 @@ int
 UV_PartitionInfo64(afs_uint32 server, char *pname,
                   struct diskPartition64 *partition)
 {
-    register struct rx_connection *aconn;
+    struct rx_connection *aconn;
     afs_int32 code = 0;
 
     aconn = (struct rx_connection *)0;
@@ -723,9 +723,9 @@ UV_CreateVolume3(afs_uint32 aserver, afs_int32 apart, char *aname,
                 afs_int32 aspare3, afs_int32 aspare4, afs_uint32 * anewid,
                 afs_uint32 * aroid, afs_uint32 * abkid)
 {
-    register struct rx_connection *aconn;
+    struct rx_connection *aconn;
     afs_int32 tid;
-    register afs_int32 code;
+    afs_int32 code;
     afs_int32 error;
     afs_int32 rcode, vcode;
     afs_int32 lastid;
@@ -855,7 +855,7 @@ int
 UV_AddVLDBEntry(afs_uint32 aserver, afs_int32 apart, char *aname,
                afs_uint32 aid)
 {
-    register struct rx_connection *aconn;
+    struct rx_connection *aconn;
     afs_int32 error;
     afs_int32 vcode;
     struct nvldbentry entry, storeEntry;       /*the new vldb entry */
@@ -1210,7 +1210,7 @@ UV_MoveVolume2(afs_uint32 afromvol, afs_uint32 afromserver, afs_int32 afrompart,
     afs_int32 tmp;
     afs_uint32 tmpVol;
     struct restoreCookie cookie;
-    register afs_int32 vcode, code;
+    afs_int32 vcode, code;
     struct volser_status tstatus;
     struct destServer destination;
 
@@ -2238,7 +2238,7 @@ UV_CopyVolume2(afs_uint32 afromvol, afs_uint32 afromserver, afs_int32 afrompart,
     afs_int32 rcode;
     afs_int32 fromDate, cloneFromDate;
     struct restoreCookie cookie;
-    register afs_int32 vcode, code;
+    afs_int32 vcode, code;
     afs_uint32 newVol;
     afs_int32 volflag;
     struct volser_status tstatus;
@@ -5131,7 +5131,7 @@ UV_ListPartitions(afs_uint32 aserver, struct partList *ptrPartList,
     struct rx_connection *aconn;
     struct pIDs partIds;
     struct partEntries partEnts;
-    register int i, j = 0, code;
+    int i, j = 0, code;
 
     *cntp = 0;
     aconn = UV_Bind(aserver, AFSCONF_VOLUMEPORT);
index caae8d7584514a042d52d193872f4313dc4d65e0..f28d265f2f299a0a12e61e95e2220a9cb06d2e53 100644 (file)
@@ -54,7 +54,7 @@ static void
 ovlentry_to_nvlentry(struct vldbentry *oentryp,
                      struct nvldbentry *nentryp)
 {
-    register int i;
+    int i;
 
     memset(nentryp, 0, sizeof(struct nvldbentry));
     strncpy(nentryp->name, oentryp->name, sizeof(nentryp->name));
@@ -74,7 +74,7 @@ static int
 nvlentry_to_ovlentry(struct nvldbentry *nentryp,
                      struct vldbentry *oentryp)
 {
-    register int i;
+    int i;
 
     memset(oentryp, 0, sizeof(struct vldbentry));
     strncpy(oentryp->name, nentryp->name, sizeof(oentryp->name));
@@ -104,7 +104,7 @@ int
 VLDB_CreateEntry(struct nvldbentry *entryp)
 {
     struct vldbentry oentry;
-    register int code;
+    int code;
 
     if (newvlserver == 1) {
       tryold:
@@ -130,7 +130,7 @@ int
 VLDB_GetEntryByID(afs_uint32 volid, afs_int32 voltype, struct nvldbentry *entryp)
 {
     struct vldbentry oentry;
-    register int code;
+    int code;
 
     if (newvlserver == 1) {
       tryold:
@@ -156,7 +156,7 @@ int
 VLDB_GetEntryByName(char *namep, struct nvldbentry *entryp)
 {
     struct vldbentry oentry;
-    register int code;
+    int code;
 
     if (newvlserver == 1) {
       tryold:
@@ -181,7 +181,7 @@ int
 VLDB_ReplaceEntry(afs_uint32 volid, afs_int32 voltype, struct nvldbentry *entryp, afs_int32 releasetype)
 {
     struct vldbentry oentry;
-    register int code;
+    int code;
 
     if (newvlserver == 1) {
       tryold:
@@ -214,7 +214,7 @@ VLDB_ListAttributes(VldbListByAttributes *attrp,
                     nbulkentries *blkentriesp)
 {
     bulkentries arrayEntries;
-    register int code, i;
+    int code, i;
 
     if (newvlserver == 1) {
       tryold:
@@ -283,7 +283,7 @@ int cacheip_index = 0;
 int
 VLDB_IsSameAddrs(afs_uint32 serv1, afs_uint32 serv2, afs_int32 *errorp)
 {
-    register int code;
+    int code;
     ListAddrByAttributes attrs;
     bulkaddrs addrs;
     afs_uint32 *addrp, i, j, f1, f2;
index 8afbc92fd03df36034fba7b0127be9e616ca9158..015678a925b95089f58291476c10972d62983bbe 100644 (file)
@@ -195,7 +195,7 @@ static void *
 xstat_cm_LWP(void *unused)
 {
     static char rn[] = "xstat_cm_LWP"; /*Routine name */
-    register afs_int32 code;   /*Results of calls */
+    afs_int32 code;    /*Results of calls */
     int oneShotCode;           /*Result of one-shot signal */
     struct timeval tv;         /*Time structure */
     int conn_idx;              /*Connection index */
@@ -384,7 +384,7 @@ xstat_cm_Init(int a_numServers, struct sockaddr_in *a_socketArray,
 {
 
     static char rn[] = "xstat_cm_Init";        /*Routine name */
-    register afs_int32 code;   /*Return value */
+    afs_int32 code;    /*Return value */
     struct rx_securityClass *secobj;   /*Client security object */
     int arg_errfound;          /*Argument error found? */
     int curr_srv;              /*Current server idx */
index 615bdd490bdb245cc27d0b1b242dcd89006b53fc..f2c8aeafd5e1559f1aeb0867a3e1fb469e74f8e2 100644 (file)
@@ -115,7 +115,7 @@ void
 PrintCallInfo(void)
 {                              /*PrintCallInfo */
 
-    register int i;            /*Loop variable */
+    int i;             /*Loop variable */
     int numInt32s;             /*# int32words returned */
     afs_int32 *currInt32;      /*Ptr to current afs_int32 value */
     char *printableTime;       /*Ptr to printable time string */
@@ -1423,7 +1423,7 @@ main(int argc, char **argv)
 {                              /*Main routine */
 
     static char rn[] = "xstat_cm_test";        /*Routine name */
-    register afs_int32 code;   /*Return code */
+    afs_int32 code;    /*Return code */
     struct cmd_syndesc *ts;    /*Ptr to cmd line syntax desc */
 
     /*
index 5beb3fb574d852320b17e3e2041a270b605878f5..94e3753c712cb76083a6162f0308325fc157e593 100644 (file)
@@ -224,7 +224,7 @@ static void *
 xstat_fs_LWP(void *unused)
 {
     static char rn[] = "xstat_fs_LWP"; /*Routine name */
-    register afs_int32 code;   /*Results of calls */
+    afs_int32 code;    /*Results of calls */
     int oneShotCode;           /*Result of one-shot signal */
     struct timeval tv;         /*Time structure */
     int conn_idx;              /*Connection index */
@@ -410,7 +410,7 @@ xstat_fs_Init(int a_numServers, struct sockaddr_in *a_socketArray,
              int a_numCollections, afs_int32 * a_collIDP)
 {
     static char rn[] = "xstat_fs_Init";        /*Routine name */
-    register afs_int32 code;   /*Return value */
+    afs_int32 code;    /*Return value */
     static struct rx_securityClass *CBsecobj;  /*Callback security object */
     struct rx_securityClass *secobj;   /*Client security object */
     struct rx_service *rxsrv_afsserver;        /*Server for AFS */
index e55c1544515b2c6dec647e3aad4a1645ec444878..21db784db5d5d239b66418e7f777cd31a3b58475 100644 (file)
@@ -103,7 +103,7 @@ static char *xferOpNames[] = {
 void
 PrintCallInfo(void)
 {                              /*PrintCallInfo */
-    register int i;            /*Loop variable */
+    int i;             /*Loop variable */
     int numInt32s;             /*# int32words returned */
     afs_int32 *currInt32;      /*Ptr to current afs_int32 value */
     char *printableTime;       /*Ptr to printable time string */
@@ -835,7 +835,7 @@ int
 main(int argc, char **argv)
 {
     static char rn[] = "xstat_fs_test";        /*Routine name */
-    register afs_int32 code;   /*Return code */
+    afs_int32 code;    /*Return code */
     struct cmd_syndesc *ts;    /*Ptr to cmd line syntax desc */
 
     /*