From 4cafa08a7d69a1e1fb94a7612a5c054ac043b713 Mon Sep 17 00:00:00 2001 From: tron Date: Mon, 18 Jul 2011 22:50:28 +0000 Subject: [PATCH] Don't use roundup2(9) (which should have been howmany(9) anyway) to fix builds on platforms other than NetBSD. --- sbin/newfs_v7fs/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/newfs_v7fs/main.c b/sbin/newfs_v7fs/main.c index cc1f2ce30b01..7244ab8f6a0b 100644 --- a/sbin/newfs_v7fs/main.c +++ b/sbin/newfs_v7fs/main.c @@ -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 #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 @@ -62,7 +62,7 @@ determine_ilist_size(v7fs_daddr_t volume_size, int32_t files) 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% */