Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/ffs remove (long) cast on bpref, which is daddr_t



details:   https://anonhg.NetBSD.org/src/rev/a1b4ecb4dbe9
branches:  trunk
changeset: 581822:a1b4ecb4dbe9
user:      dbj <dbj%NetBSD.org@localhost>
date:      Mon Jun 06 17:10:25 2005 +0000

description:
remove (long) cast on bpref, which is daddr_t

diffstat:

 sys/ufs/ffs/ffs_alloc.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 5df7f84c55c6 -r a1b4ecb4dbe9 sys/ufs/ffs/ffs_alloc.c
--- a/sys/ufs/ffs/ffs_alloc.c   Mon Jun 06 12:10:09 2005 +0000
+++ b/sys/ufs/ffs/ffs_alloc.c   Mon Jun 06 17:10:25 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_alloc.c,v 1.83 2005/05/29 21:25:24 christos Exp $  */
+/*     $NetBSD: ffs_alloc.c,v 1.84 2005/06/06 17:10:25 dbj Exp $       */
 
 /*
  * Copyright (c) 2002 Networks Associates Technology, Inc.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_alloc.c,v 1.83 2005/05/29 21:25:24 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_alloc.c,v 1.84 2005/06/06 17:10:25 dbj Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ffs.h"
@@ -173,8 +173,7 @@
                cg = ino_to_cg(fs, ip->i_number);
        else
                cg = dtog(fs, bpref);
-       bno = ffs_hashalloc(ip, cg, (long)bpref, size,
-                                    ffs_alloccg);
+       bno = ffs_hashalloc(ip, cg, bpref, size, ffs_alloccg);
        if (bno > 0) {
                DIP_ADD(ip, blocks, btodb(size));
                ip->i_flag |= IN_CHANGE | IN_UPDATE;



Home | Main Index | Thread Index | Old Index