summaryrefslogtreecommitdiffstats
path: root/sbin/fsirand
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2003-08-25 23:27:43 +0000
committertedu <tedu@openbsd.org>2003-08-25 23:27:43 +0000
commitf46297fdd3ce0a6e1f526a5740ecc01001197c35 (patch)
tree2859429b41d892eb52f985dfd827e95920e855dd /sbin/fsirand
parentrename struct dinode to ufs1_dinode. clears the namespace and makes (diff)
downloadwireguard-openbsd-f46297fdd3ce0a6e1f526a5740ecc01001197c35.tar.xz
wireguard-openbsd-f46297fdd3ce0a6e1f526a5740ecc01001197c35.zip
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.c8
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");