diff options
author | phk <phk@FreeBSD.org> | 1999-03-21 12:32:17 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-03-21 12:32:17 +0000 |
commit | 7bd71ddeb6bcaa152508dead2976597dc61d52fe (patch) | |
tree | d750bd751066d64910c61b7b7d1e0ec5c0615a89 /usr.sbin/kernbb | |
parent | e787195c02e5c03a951b9d7bb06b84d21727f6ff (diff) | |
download | FreeBSD-src-7bd71ddeb6bcaa152508dead2976597dc61d52fe.zip FreeBSD-src-7bd71ddeb6bcaa152508dead2976597dc61d52fe.tar.gz |
Now bb structures are linked together.
Diffstat (limited to 'usr.sbin/kernbb')
-rw-r--r-- | usr.sbin/kernbb/kernbb.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/kernbb/kernbb.c b/usr.sbin/kernbb/kernbb.c index a67d5ba..03bfc8a 100644 --- a/usr.sbin/kernbb/kernbb.c +++ b/usr.sbin/kernbb/kernbb.c @@ -10,7 +10,7 @@ #ifndef lint static const char rcsid[] = - "$Id$"; + "$Id: kernbb.c,v 1.9 1997/09/22 06:30:04 charnier Exp $"; #endif /* not lint */ #include <err.h> @@ -37,7 +37,7 @@ struct bb { }; struct nlist namelist[] = { - { "bbset" }, + { "bbhead" }, { NULL } }; @@ -68,10 +68,10 @@ main() l1 = namelist[0].n_value; kvm_read(kv,l1,&l2,sizeof l2); - while(l2--) { + while(l2) { l1 += sizeof l1; - kvm_read(kv,l1,&l3,sizeof l3); - kvm_read(kv,l3,&bb,sizeof bb); + kvm_read(kv,l2,&bb,sizeof bb); + l2 = bb.next; if (!bb.ncounts) continue; if (bb.ncounts > MAXBB) |