Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/librump/rumpvfs fix inverted comparison



details:   https://anonhg.NetBSD.org/src/rev/799e49651760
branches:  trunk
changeset: 749572:799e49651760
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Dec 02 17:18:59 2009 +0000

description:
fix inverted comparison

diffstat:

 sys/rump/librump/rumpvfs/rumpblk.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a682fdfa1c51 -r 799e49651760 sys/rump/librump/rumpvfs/rumpblk.c
--- a/sys/rump/librump/rumpvfs/rumpblk.c        Wed Dec 02 15:54:19 2009 +0000
+++ b/sys/rump/librump/rumpvfs/rumpblk.c        Wed Dec 02 17:18:59 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumpblk.c,v 1.32 2009/11/25 15:01:28 pooka Exp $       */
+/*     $NetBSD: rumpblk.c,v 1.33 2009/12/02 17:18:59 pooka Exp $       */
 
 /*
  * Copyright (c) 2009 Antti Kantee.  All Rights Reserved.
@@ -52,7 +52,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rumpblk.c,v 1.32 2009/11/25 15:01:28 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpblk.c,v 1.33 2009/12/02 17:18:59 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/buf.h>
@@ -413,7 +413,7 @@
        strcpy(rblk->rblk_path, path);
        rblk->rblk_fd = -1;
        rblk->rblk_hostoffset = offset;
-       if (size == RUMPBLK_SIZENOTSET) {
+       if (size != RUMPBLK_SIZENOTSET) {
                KASSERT(size + offset <= flen);
                rblk->rblk_size = size;
        } else {



Home | Main Index | Thread Index | Old Index