Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/ffs use bswap32 and bswap64 correctly.



details:   https://anonhg.NetBSD.org/src/rev/5ae90c24f03b
branches:  trunk
changeset: 545797:5ae90c24f03b
user:      yamt <yamt%NetBSD.org@localhost>
date:      Wed Apr 16 14:20:25 2003 +0000

description:
use bswap32 and bswap64 correctly.
(fs_pendingblocks and fs_pendinginodes)

diffstat:

 sys/ufs/ffs/ffs_bswap.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 0c1e10945329 -r 5ae90c24f03b sys/ufs/ffs/ffs_bswap.c
--- a/sys/ufs/ffs/ffs_bswap.c   Wed Apr 16 14:03:08 2003 +0000
+++ b/sys/ufs/ffs/ffs_bswap.c   Wed Apr 16 14:20:25 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_bswap.c,v 1.19 2003/04/11 10:20:35 enami Exp $     */
+/*     $NetBSD: ffs_bswap.c,v 1.20 2003/04/16 14:20:25 yamt Exp $      */
 
 /*
  * Copyright (c) 1998 Manuel Bouyer.
@@ -34,7 +34,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__KERNEL_RCSID)
-__KERNEL_RCSID(0, "$NetBSD: ffs_bswap.c,v 1.19 2003/04/11 10:20:35 enami Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_bswap.c,v 1.20 2003/04/16 14:20:25 yamt Exp $");
 #endif
 
 #if HAVE_CONFIG_H
@@ -89,8 +89,8 @@
        n->fs_avgfilesize = bswap32(o->fs_avgfilesize);
        n->fs_avgfpdir = bswap32(o->fs_avgfpdir);
                        /* fs_sparecon[28] - ignore for now */
-       n->fs_pendingblocks = bswap32(o->fs_pendingblocks);
-       n->fs_pendinginodes = bswap64(o->fs_pendinginodes);
+       n->fs_pendingblocks = bswap64(o->fs_pendingblocks);
+       n->fs_pendinginodes = bswap32(o->fs_pendinginodes);
        n->fs_contigsumsize = bswap32(o->fs_contigsumsize);
        n->fs_maxsymlinklen = bswap32(o->fs_maxsymlinklen);
        n->fs_old_inodefmt = bswap32(o->fs_old_inodefmt);



Home | Main Index | Thread Index | Old Index