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/4a91ec2da88b
branches: trunk
changeset: 341261:4a91ec2da88b
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 bba3422fb7a2 -r 4a91ec2da88b 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