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 .. umm, and use correct device val...
details: https://anonhg.NetBSD.org/src/rev/2567918f7806
branches: trunk
changeset: 749153:2567918f7806
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Nov 19 13:42:29 2009 +0000
description:
.. umm, and use correct device value for previous.
And use 64bit arithmetic.
diffstat:
sys/rump/librump/rumpuser/rumpuser.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 1d903377861e -r 2567918f7806 sys/rump/librump/rumpuser/rumpuser.c
--- a/sys/rump/librump/rumpuser/rumpuser.c Thu Nov 19 13:25:48 2009 +0000
+++ b/sys/rump/librump/rumpuser/rumpuser.c Thu Nov 19 13:42:29 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpuser.c,v 1.45 2009/11/19 13:25:48 pooka Exp $ */
+/* $NetBSD: rumpuser.c,v 1.46 2009/11/19 13:42:29 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.45 2009/11/19 13:25:48 pooka Exp $");
+__RCSID("$NetBSD: rumpuser.c,v 1.46 2009/11/19 13:42:29 pooka Exp $");
#endif /* !lint */
/* thank the maker for this */
@@ -153,8 +153,8 @@
}
close(fd);
- parta = &lab.d_partitions[DISKPART(sb.st_dev)];
- *size = lab.d_secsize * parta->p_size;
+ parta = &lab.d_partitions[DISKPART(sb.st_rdev)];
+ *size = (uint64_t)lab.d_secsize * parta->p_size;
#endif /* __NetBSD__ */
}
Home |
Main Index |
Thread Index |
Old Index