From 6eb87fc2eed94e4519bc716eaaa6d3838c34875a Mon Sep 17 00:00:00 2001 From: mrg Date: Mon, 10 Jun 2013 02:21:10 +0000 Subject: [PATCH] s/DIRBLKSIZE/UFS_&/. HI DH! :-) --- sys/arch/acorn32/stand/nbfs/nbfs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/arch/acorn32/stand/nbfs/nbfs.c b/sys/arch/acorn32/stand/nbfs/nbfs.c index 5abe915ecdbd..f7774a61803b 100644 --- a/sys/arch/acorn32/stand/nbfs/nbfs.c +++ b/sys/arch/acorn32/stand/nbfs/nbfs.c @@ -1,4 +1,4 @@ -/* $NetBSD: nbfs.c,v 1.9 2012/05/10 11:03:22 skrll Exp $ */ +/* $NetBSD: nbfs.c,v 1.10 2013/06/10 02:21:10 mrg Exp $ */ /*- * Copyright (c) 2006 Ben Harris @@ -354,7 +354,7 @@ nbfs_func_dirents(struct nbfs_reg *r) size_t skip = r->r4; ssize_t off = 0; size_t buflen = r->r5; - char dirbuf[DIRBLKSIZ]; + char dirbuf[UFS_DIRBLKSIZ]; char *outp = (char *)r->r2; err = nbfs_fopen(&f, special, fname); @@ -367,12 +367,12 @@ nbfs_func_dirents(struct nbfs_reg *r) err = ENOTDIR; goto fail; } - while (FS_READ(f.f_ops)(&f, dirbuf, DIRBLKSIZ, &resid) == 0 && + while (FS_READ(f.f_ops)(&f, dirbuf, UFS_DIRBLKSIZ, &resid) == 0 && resid == 0) { struct direct *dp, *edp; dp = (struct direct *) dirbuf; - edp = (struct direct *) (dirbuf + DIRBLKSIZ); + edp = (struct direct *) (dirbuf + UFS_DIRBLKSIZ); for (; dp < edp; dp = (void *)((char *)dp + dp->d_reclen)) { size_t entsiz = 0;