Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Fix inverted KASSERT



details:   https://anonhg.NetBSD.org/src/rev/f024ff6924bd
branches:  trunk
changeset: 811403:f024ff6924bd
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Oct 28 14:05:04 2015 +0000

description:
Fix inverted KASSERT

diffstat:

 sys/kern/vfs_syscalls.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0482d6f54c22 -r f024ff6924bd sys/kern/vfs_syscalls.c
--- a/sys/kern/vfs_syscalls.c   Wed Oct 28 10:22:40 2015 +0000
+++ b/sys/kern/vfs_syscalls.c   Wed Oct 28 14:05:04 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_syscalls.c,v 1.502 2015/10/25 09:27:14 martin Exp $        */
+/*     $NetBSD: vfs_syscalls.c,v 1.503 2015/10/28 14:05:04 martin Exp $        */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.502 2015/10/25 09:27:14 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.503 2015/10/28 14:05:04 martin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_fileassoc.h"
@@ -371,7 +371,7 @@
                error = copyinstr(fstype, fstypename, sizeof(fstypename), NULL);
        } else {
                error = copystr(fstype, fstypename, sizeof(fstypename), NULL);
-               KASSERT(error != 0);
+               KASSERT(error == 0);
        }
 
        if (error) {



Home | Main Index | Thread Index | Old Index