Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/acorn32/stand/nbfs s/DIRBLKSIZE/UFS_&/.
details: https://anonhg.NetBSD.org/src/rev/c420f354c890
branches: trunk
changeset: 787300:c420f354c890
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Jun 10 02:21:10 2013 +0000
description:
s/DIRBLKSIZE/UFS_&/.
HI DH! :-)
diffstat:
sys/arch/acorn32/stand/nbfs/nbfs.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (33 lines):
diff -r 14a534010cd3 -r c420f354c890 sys/arch/acorn32/stand/nbfs/nbfs.c
--- a/sys/arch/acorn32/stand/nbfs/nbfs.c Sun Jun 09 22:00:50 2013 +0000
+++ b/sys/arch/acorn32/stand/nbfs/nbfs.c Mon Jun 10 02:21:10 2013 +0000
@@ -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 @@
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 @@
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;
Home |
Main Index |
Thread Index |
Old Index