DragonFly BSD
DragonFly submit List (threaded) for 2004-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

/usr/src/sbin/dump/traverse.c.patch register removal


From: Steve Mynott <steve.mynott@xxxxxxxxx>
Date: Mon, 27 Dec 2004 22:38:49 +0000

--- traverse.c.orig     2004-02-04 17:39:59.000000000 +0000
+++ traverse.c  2004-12-27 22:25:37.000000000 +0000
@@ -84,7 +84,7 @@
  * hence the estimate may be high.
  */
 long
-blockest(register struct dinode *dp)
+blockest(struct dinode *dp)
 {
        long blkest, sizeest;

@@ -138,9 +138,9 @@
 int
 mapfiles(ino_t maxino, long *tapesize)
 {
-       register int mode;
-       register ino_t ino;
-       register struct dinode *dp;
+       int mode;
+       ino_t ino;
+       struct dinode *dp;
        int anydirskipped = 0;

        for (ino = ROOTINO; ino < maxino; ino++) {
@@ -193,10 +193,10 @@
 int
 mapdirs(ino_t maxino, long *tapesize)
 {
-       register struct dinode *dp;
-       register int i, isdir, nodump;
-       register char *map;
-       register ino_t ino;
+       struct  dinode *dp;
+       int i, isdir, nodump;
+       char *map;
+       ino_t ino;
        struct dinode di;
        long filesize;
        int ret, change = 0;
@@ -265,7 +265,7 @@
          long *tapesize, int nodump)
 {
        int ret = 0;
-       register int i;
+       int i;
        daddr_t idblk[MAXNINDIR];

        bread(fsbtodb(sblock, blkno), (char *)idblk, (int)sblock->fs_bsize);
@@ -298,12 +298,12 @@
  * contains any subdirectories.
  */
 static int
-searchdir(ino_t ino, daddr_t blkno, register long size, long filesize,
+searchdir(ino_t ino, daddr_t blkno, long size, long filesize,
           long *tapesize, int nodump)
 {
-       register struct direct *dp;
-       register struct dinode *ip;
-       register long loc, ret = 0;
+       struct direct *dp;
+       struct dinode *ip;
+       long loc, ret = 0;
        char dblk[MAXBSIZE];

        bread(fsbtodb(sblock, blkno), dblk, (int)size);
@@ -358,7 +358,7 @@
  * Dump the contents of an inode to tape.
  */
 void
-dumpino(register struct dinode *dp, ino_t ino)
+dumpino(struct dinode *dp, ino_t ino)
 {
        int ind_level, cnt;
        fsizeT size;
@@ -465,7 +465,7 @@
 void
 blksout(daddr_t *blkp, int frags, ino_t ino)
 {
-       register daddr_t *bp;
+       daddr_t *bp;
        int i, j, count, blks, tbperdb;

        blks = howmany(frags * sblock->fs_fsize, TP_BSIZE);
@@ -500,7 +500,7 @@
 void
 dumpmap(char *map, int type, ino_t ino)
 {
-       register int i;
+       int i;
        char *cp;

        spcl.c_type = type;
@@ -516,7 +516,7 @@
 void
 writeheader(ino_t ino)
 {
-       register int32_t sum, cnt, *lp;
+       int32_t sum, cnt, *lp;

        spcl.c_inumber = ino;
        spcl.c_magic = NFS_MAGIC;



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]