Source-Changes-HG archive

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

[src/trunk]: src/sbin remove obsolete "register" declarations.



details:   https://anonhg.NetBSD.org/src/rev/1bfeb4f2a14a
branches:  trunk
changeset: 573734:1bfeb4f2a14a
user:      perry <perry%NetBSD.org@localhost>
date:      Sun Feb 06 06:13:47 2005 +0000

description:
remove obsolete "register" declarations.

diffstat:

 sbin/fsck_lfs/pass1.c     |   4 ++--
 sbin/fsck_lfs/pass2.c     |   6 +++---
 sbin/fsck_lfs/pass3.c     |   4 ++--
 sbin/fsck_lfs/pass4.c     |   8 ++++----
 sbin/fsck_lfs/utilities.c |   4 ++--
 sbin/ifconfig/ifconfig.c  |  16 ++++++++--------
 sbin/modload/a.out.c      |   6 +++---
 7 files changed, 24 insertions(+), 24 deletions(-)

diffs (181 lines):

diff -r 37112c51efa2 -r 1bfeb4f2a14a sbin/fsck_lfs/pass1.c
--- a/sbin/fsck_lfs/pass1.c     Sun Feb 06 06:13:12 2005 +0000
+++ b/sbin/fsck_lfs/pass1.c     Sun Feb 06 06:13:47 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pass1.c,v 1.19 2005/01/19 19:41:59 xtraeme Exp $    */
+/* $NetBSD: pass1.c,v 1.20 2005/02/06 06:13:47 perry Exp $      */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -314,7 +314,7 @@
        int res = KEEPON;
        int anyout, ndblks;
        daddr_t blkno = idesc->id_blkno;
-       register struct dups *dlp;
+       struct dups *dlp;
        struct dups *new;
 
        if ((anyout = chkrange(blkno, fragstofsb(fs, idesc->id_numfrags))) != 0) {
diff -r 37112c51efa2 -r 1bfeb4f2a14a sbin/fsck_lfs/pass2.c
--- a/sbin/fsck_lfs/pass2.c     Sun Feb 06 06:13:12 2005 +0000
+++ b/sbin/fsck_lfs/pass2.c     Sun Feb 06 06:13:47 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pass2.c,v 1.11 2005/01/19 19:41:59 xtraeme Exp $    */
+/* $NetBSD: pass2.c,v 1.12 2005/02/06 06:13:47 perry Exp $      */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -201,8 +201,8 @@
 static int
 pass2check(struct inodesc * idesc)
 {
-       register struct direct *dirp = idesc->id_dirp;
-       register struct inoinfo *inp;
+       struct direct *dirp = idesc->id_dirp;
+       struct inoinfo *inp;
        int n, entrysize, ret = 0;
        struct ufs1_dinode *dp;
        char *errmsg;
diff -r 37112c51efa2 -r 1bfeb4f2a14a sbin/fsck_lfs/pass3.c
--- a/sbin/fsck_lfs/pass3.c     Sun Feb 06 06:13:12 2005 +0000
+++ b/sbin/fsck_lfs/pass3.c     Sun Feb 06 06:13:47 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pass3.c,v 1.6 2005/01/19 19:41:59 xtraeme Exp $     */
+/* $NetBSD: pass3.c,v 1.7 2005/02/06 06:13:47 perry Exp $       */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -40,7 +40,7 @@
 void
 pass3(void)
 {
-       register struct inoinfo **inpp, *inp;
+       struct inoinfo **inpp, *inp;
        ino_t orphan;
        int loopcnt;
 
diff -r 37112c51efa2 -r 1bfeb4f2a14a sbin/fsck_lfs/pass4.c
--- a/sbin/fsck_lfs/pass4.c     Sun Feb 06 06:13:12 2005 +0000
+++ b/sbin/fsck_lfs/pass4.c     Sun Feb 06 06:13:47 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pass4.c,v 1.10 2005/01/19 19:41:59 xtraeme Exp $    */
+/* $NetBSD: pass4.c,v 1.11 2005/02/06 06:13:47 perry Exp $      */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -56,8 +56,8 @@
 void
 pass4(void)
 {
-       register ino_t inumber;
-       register struct zlncnt *zlnp;
+       ino_t inumber;
+       struct zlncnt *zlnp;
        struct ufs1_dinode *dp;
        struct inodesc idesc;
        int n;
@@ -115,7 +115,7 @@
 int
 pass4check(struct inodesc * idesc)
 {
-       register struct dups *dlp;
+       struct dups *dlp;
        int ndblks, res = KEEPON;
        daddr_t blkno = idesc->id_blkno;
        SEGUSE *sup;
diff -r 37112c51efa2 -r 1bfeb4f2a14a sbin/fsck_lfs/utilities.c
--- a/sbin/fsck_lfs/utilities.c Sun Feb 06 06:13:12 2005 +0000
+++ b/sbin/fsck_lfs/utilities.c Sun Feb 06 06:13:47 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: utilities.c,v 1.16 2003/10/20 12:04:38 dsl Exp $    */
+/* $NetBSD: utilities.c,v 1.17 2005/02/06 06:13:47 perry Exp $  */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -185,7 +185,7 @@
 getpathname(char *namebuf, size_t namebuflen, ino_t curdir, ino_t ino)
 {
        int len;
-       register char *cp;
+       char *cp;
        struct inodesc idesc;
        static int busy = 0;
 
diff -r 37112c51efa2 -r 1bfeb4f2a14a sbin/ifconfig/ifconfig.c
--- a/sbin/ifconfig/ifconfig.c  Sun Feb 06 06:13:12 2005 +0000
+++ b/sbin/ifconfig/ifconfig.c  Sun Feb 06 06:13:47 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ifconfig.c,v 1.150 2005/01/20 16:16:10 xtraeme Exp $   */
+/*     $NetBSD: ifconfig.c,v 1.151 2005/02/06 06:15:57 perry Exp $     */
 
 /*-
  * Copyright (c) 1997, 1998, 2000 The NetBSD Foundation, Inc.
@@ -76,7 +76,7 @@
 #if 0
 static char sccsid[] = "@(#)ifconfig.c 8.2 (Berkeley) 2/16/94";
 #else
-__RCSID("$NetBSD: ifconfig.c,v 1.150 2005/01/20 16:16:10 xtraeme Exp $");
+__RCSID("$NetBSD: ifconfig.c,v 1.151 2005/02/06 06:15:57 perry Exp $");
 #endif
 #endif /* not lint */
 
@@ -2580,8 +2580,8 @@
 void
 in_getprefix(const char *plen, int which)
 {
-       register struct sockaddr_in *igsin = sintab[which];
-       register u_char *cp;
+       struct sockaddr_in *igsin = sintab[which];
+       u_char *cp;
        int len = strtol(plen, (char **)NULL, 10);
 
        if ((len < 0) || (len > 32))
@@ -2674,8 +2674,8 @@
 void
 in6_getprefix(const char *plen, int which)
 {
-       register struct sockaddr_in6 *gpsin = sin6tab[which];
-       register u_char *cp;
+       struct sockaddr_in6 *gpsin = sin6tab[which];
+       u_char *cp;
        int len = strtol(plen, (char **)NULL, 10);
 
        if ((len < 0) || (len > 128))
@@ -2697,8 +2697,8 @@
 int
 prefix(void *val, int size)
 {
-       register u_char *pname = (u_char *)val;
-       register int byte, bit, plen = 0;
+       u_char *pname = (u_char *)val;
+       int byte, bit, plen = 0;
 
        for (byte = 0; byte < size; byte++, plen += 8)
                if (pname[byte] != 0xff)
diff -r 37112c51efa2 -r 1bfeb4f2a14a sbin/modload/a.out.c
--- a/sbin/modload/a.out.c      Sun Feb 06 06:13:12 2005 +0000
+++ b/sbin/modload/a.out.c      Sun Feb 06 06:13:47 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: a.out.c,v 1.5 2004/02/11 18:42:37 jdolecek Exp $       */
+/*     $NetBSD: a.out.c,v 1.6 2005/02/06 06:17:36 perry Exp $  */
 
 /*
  * Copyright (c) 1993 Terrence R. Lambert.
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: a.out.c,v 1.5 2004/02/11 18:42:37 jdolecek Exp $");
+__RCSID("$NetBSD: a.out.c,v 1.6 2005/02/06 06:17:36 perry Exp $");
 
 #include <sys/param.h>
 #include <sys/ioctl.h>
@@ -204,7 +204,7 @@
 
        for (nlp = (struct nlist *)symbuf;
            (char *)nlp < symbuf + info_buf.a_syms; nlp++) {
-               register int strx;
+               int strx;
 
                strx = nlp->n_un.n_strx;
                if (strx != 0) {



Home | Main Index | Thread Index | Old Index