Source-Changes-HG archive

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

[src/trunk]: src/sys/lib/libsa delete now unused function .



details:   https://anonhg.NetBSD.org/src/rev/a86bb854009a
branches:  trunk
changeset: 347327:a86bb854009a
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Aug 21 08:27:57 2016 +0000

description:
delete now unused function .

diffstat:

 sys/lib/libsa/ext2fs.c |  16 +---------------
 1 files changed, 1 insertions(+), 15 deletions(-)

diffs (30 lines):

diff -r c932e89dcdb8 -r a86bb854009a sys/lib/libsa/ext2fs.c
--- a/sys/lib/libsa/ext2fs.c    Sat Aug 20 23:56:19 2016 +0000
+++ b/sys/lib/libsa/ext2fs.c    Sun Aug 21 08:27:57 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ext2fs.c,v 1.24 2016/08/04 21:39:20 rjs Exp $  */
+/*     $NetBSD: ext2fs.c,v 1.25 2016/08/21 08:27:57 christos Exp $     */
 
 /*
  * Copyright (c) 1997 Manuel Bouyer.
@@ -925,20 +925,6 @@
        new->e2fs_reserved_ngdb =       bswap16(old->e2fs_reserved_ngdb);
 }
 
-void e2fs_cg_bswap(struct ext2_gd *old, struct ext2_gd *new, int size)
-{
-       int i;
-
-       for (i = 0; i < (size / sizeof(struct ext2_gd)); i++) {
-               new[i].ext2bgd_b_bitmap = bswap32(old[i].ext2bgd_b_bitmap);
-               new[i].ext2bgd_i_bitmap = bswap32(old[i].ext2bgd_i_bitmap);
-               new[i].ext2bgd_i_tables = bswap32(old[i].ext2bgd_i_tables);
-               new[i].ext2bgd_nbfree   = bswap16(old[i].ext2bgd_nbfree);
-               new[i].ext2bgd_nifree   = bswap16(old[i].ext2bgd_nifree);
-               new[i].ext2bgd_ndirs    = bswap16(old[i].ext2bgd_ndirs);
-       }
-}
-
 void e2fs_i_bswap(struct ext2fs_dinode *old, struct ext2fs_dinode *new,
     size_t isize)
 {



Home | Main Index | Thread Index | Old Index