aboutsummaryrefslogtreecommitdiff
path: root/sbin/fsdb
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2002-03-20 17:55:10 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2002-03-20 17:55:10 +0000
commit3d438ad61f57a1129d2db01947a14bf0fc86dbae (patch)
treec6081460d17e593ae6ed744bc0f22972f9c9e461 /sbin/fsdb
parenta2763677ecfaf662b19ea34d0a4936b62cbc6425 (diff)
downloadsrc-3d438ad61f57a1129d2db01947a14bf0fc86dbae.tar.gz
src-3d438ad61f57a1129d2db01947a14bf0fc86dbae.zip
Remove 'register' keyword.
It does not help modern compilers, and some may take some hit from it. (I also found several functions that listed *every* of its 10 local vars with "register" -- just how many free registers do people think machines have?)
Notes
Notes: svn path=/head/; revision=92806
Diffstat (limited to 'sbin/fsdb')
-rw-r--r--sbin/fsdb/fsdb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/fsdb/fsdb.c b/sbin/fsdb/fsdb.c
index 5b4bbcd24c96..ce96e21100a5 100644
--- a/sbin/fsdb/fsdb.c
+++ b/sbin/fsdb/fsdb.c
@@ -190,7 +190,7 @@ helpfn(argc, argv)
int argc;
char *argv[];
{
- register struct cmdtable *cmdtp;
+ struct cmdtable *cmdtp;
printf("Commands are:\n%-10s %5s %5s %s\n",
"command", "min argc", "max argc", "what");
@@ -395,7 +395,7 @@ int
scannames(idesc)
struct inodesc *idesc;
{
- register struct direct *dirp = idesc->id_dirp;
+ struct direct *dirp = idesc->id_dirp;
printf("slot %d ino %d reclen %d: %s, `%.*s'\n",
slot++, dirp->d_ino, dirp->d_reclen, typename[dirp->d_type],
@@ -517,7 +517,7 @@ int
chinumfunc(idesc)
struct inodesc *idesc;
{
- register struct direct *dirp = idesc->id_dirp;
+ struct direct *dirp = idesc->id_dirp;
if (slotcount++ == desired) {
dirp->d_ino = idesc->id_parent;
@@ -561,7 +561,7 @@ int
chnamefunc(idesc)
struct inodesc *idesc;
{
- register struct direct *dirp = idesc->id_dirp;
+ struct direct *dirp = idesc->id_dirp;
struct direct testdir;
if (slotcount++ == desired) {