diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2003-08-25 23:28:35 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2003-08-25 23:28:35 +0000 |
commit | ea03fe96dd2a572acb0e879c2586bba89034c050 (patch) | |
tree | 2c36d333406df4e19950882dcc7436b2c9831d32 /sbin/fsirand | |
parent | d5eab1b5294489e6eb637cefae0a4efb77c56d22 (diff) |
rename struct dinode to ufs1_dinode. clears the namespace and makes
way for some future work. no function changes yet.
help testing otto@ and markus@
Diffstat (limited to 'sbin/fsirand')
-rw-r--r-- | sbin/fsirand/fsirand.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/fsirand/fsirand.c b/sbin/fsirand/fsirand.c index 3143b6ae275..5fd052d6b79 100644 --- a/sbin/fsirand/fsirand.c +++ b/sbin/fsirand/fsirand.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fsirand.c,v 1.18 2003/06/17 21:56:24 millert Exp $ */ +/* $OpenBSD: fsirand.c,v 1.19 2003/08/25 23:28:15 tedu Exp $ */ /* * Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com> @@ -17,7 +17,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: fsirand.c,v 1.18 2003/06/17 21:56:24 millert Exp $"; +static char rcsid[] = "$OpenBSD: fsirand.c,v 1.19 2003/08/25 23:28:15 tedu Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -92,7 +92,7 @@ main(int argc, char *argv[]) int fsirand(char *device) { - static struct dinode *inodebuf; + static struct ufs1_dinode *inodebuf; static size_t oldibufsize; size_t ibufsize; struct fs *sblock, *tmpsblock; @@ -177,7 +177,7 @@ fsirand(char *device) } /* XXX - should really cap buffer at 512kb or so */ - ibufsize = sizeof(struct dinode) * sblock->fs_ipg; + ibufsize = sizeof(struct ufs1_dinode) * sblock->fs_ipg; if (oldibufsize < ibufsize) { if ((inodebuf = realloc(inodebuf, ibufsize)) == NULL) errx(1, "Can't allocate memory for inode buffer"); |