Module Name:    src
Committed By:   tron
Date:           Mon Jul 18 22:50:28 UTC 2011

Modified Files:
        src/sbin/newfs_v7fs: main.c

Log Message:
Don't use roundup2(9) (which should have been howmany(9) anyway) to
fix builds on platforms other than NetBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sbin/newfs_v7fs/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/newfs_v7fs/main.c
diff -u src/sbin/newfs_v7fs/main.c:1.3 src/sbin/newfs_v7fs/main.c:1.4
--- src/sbin/newfs_v7fs/main.c:1.3	Mon Jul 18 21:51:49 2011
+++ src/sbin/newfs_v7fs/main.c	Mon Jul 18 22:50:28 2011
@@ -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% */

Reply via email to