Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/newfs_v7fs Don't use roundup2(9) (which should have bee...
details: https://anonhg.NetBSD.org/src/rev/cceafadb62c5
branches: trunk
changeset: 767455:cceafadb62c5
user: tron <tron%NetBSD.org@localhost>
date: Mon Jul 18 22:50:28 2011 +0000
description:
Don't use roundup2(9) (which should have been howmany(9) anyway) to
fix builds on platforms other than NetBSD.
diffstat:
sbin/newfs_v7fs/main.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6d52c6961c81 -r cceafadb62c5 sbin/newfs_v7fs/main.c
--- a/sbin/newfs_v7fs/main.c Mon Jul 18 21:51:49 2011 +0000
+++ b/sbin/newfs_v7fs/main.c Mon Jul 18 22:50:28 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.3 2011/07/18 21:51:49 apb Exp $ */
+/* $NetBSD: main.c,v 1.4 2011/07/18 22:50:28 tron Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: main.c,v 1.3 2011/07/18 21:51:49 apb Exp $");
+__RCSID("$NetBSD: main.c,v 1.4 2011/07/18 22:50:28 tron Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -62,7 +62,7 @@
v7fs_daddr_t ilist_size;
if (files)
- ilist_size = roundup2(files, V7FS_INODE_PER_BLOCK) /
+ ilist_size = (files + V7FS_INODE_PER_BLOCK - 1) /
V7FS_INODE_PER_BLOCK;
else
ilist_size = volume_size / 25; /* 4% */
Home |
Main Index |
Thread Index |
Old Index