Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/man/man9 Fix typo in example code.



details:   https://anonhg.NetBSD.org/src/rev/56f963a31575
branches:  trunk
changeset: 807172:56f963a31575
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Mar 30 13:58:28 2015 +0000

description:
Fix typo in example code.

diffstat:

 share/man/man9/bufferio.9 |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 58d19be34aef -r 56f963a31575 share/man/man9/bufferio.9
--- a/share/man/man9/bufferio.9 Mon Mar 30 13:58:03 2015 +0000
+++ b/share/man/man9/bufferio.9 Mon Mar 30 13:58:28 2015 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: bufferio.9,v 1.13 2015/03/30 13:58:03 riastradh Exp $
+.\"    $NetBSD: bufferio.9,v 1.14 2015/03/30 13:58:28 riastradh Exp $
 .\"
 .\" Copyright (c) 2015 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -244,7 +244,7 @@
        vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
        error = VOP_BMAP(vp, i*segsz, &devvp, &blkno, NULL);
        VOP_UNLOCK(vp);
-       if (error == 0 && nbn == -1)
+       if (error == 0 && blkno == -1)
                error = EIO;
        if (error) {
                /* Give up early, don't try to handle holes.  */



Home | Main Index | Thread Index | Old Index