Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/librump/rumpuser Also, don't try to figure out the ...



details:   https://anonhg.NetBSD.org/src/rev/53951cb901b1
branches:  trunk
changeset: 752183:53951cb901b1
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Feb 18 12:32:30 2010 +0000

description:
Also, don't try to figure out the size of devices if size matters not.

diffstat:

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

diffs (27 lines):

diff -r 674446e73e14 -r 53951cb901b1 sys/rump/librump/rumpuser/rumpuser.c
--- a/sys/rump/librump/rumpuser/rumpuser.c      Thu Feb 18 12:30:53 2010 +0000
+++ b/sys/rump/librump/rumpuser/rumpuser.c      Thu Feb 18 12:32:30 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumpuser.c,v 1.48 2010/02/18 12:21:28 pooka Exp $      */
+/*     $NetBSD: rumpuser.c,v 1.49 2010/02/18 12:32:30 pooka Exp $      */
 
 /*
  * Copyright (c) 2007 Antti Kantee.  All Rights Reserved.
@@ -30,7 +30,7 @@
 
 #include <sys/cdefs.h>
 #if !defined(lint)
-__RCSID("$NetBSD: rumpuser.c,v 1.48 2010/02/18 12:21:28 pooka Exp $");
+__RCSID("$NetBSD: rumpuser.c,v 1.49 2010/02/18 12:32:30 pooka Exp $");
 #endif /* !lint */
 
 /* thank the maker for this */
@@ -102,7 +102,7 @@
 
        if (!needsdev) {
                size = sb.st_size;
-       } else {
+       } else if (sizep) {
                /*
                 * Welcome to the jungle.  Of course querying the kernel
                 * for a device partition size is supposed to be far from



Home | Main Index | Thread Index | Old Index