Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/ufs/ffs/ffs_bswap.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/ufs/ffs/ffs_bswap.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.39 retrieving revision 1.39.2.1 diff -u -p -r1.39 -r1.39.2.1 --- src/sys/ufs/ffs/ffs_bswap.c 2015/05/20 18:21:17 1.39 +++ src/sys/ufs/ffs/ffs_bswap.c 2017/03/20 06:57:54 1.39.2.1 @@ -1,4 +1,4 @@ -/* $NetBSD: ffs_bswap.c,v 1.39 2015/05/20 18:21:17 riastradh Exp $ */ +/* $NetBSD: ffs_bswap.c,v 1.39.2.1 2017/03/20 06:57:54 pgoyette Exp $ */ /* * Copyright (c) 1998 Manuel Bouyer. @@ -30,7 +30,7 @@ #endif #include -__KERNEL_RCSID(0, "$NetBSD: ffs_bswap.c,v 1.39 2015/05/20 18:21:17 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ffs_bswap.c,v 1.39.2.1 2017/03/20 06:57:54 pgoyette Exp $"); #include #if defined(_KERNEL) @@ -52,17 +52,18 @@ __KERNEL_RCSID(0, "$NetBSD: ffs_bswap.c, #endif void -ffs_sb_swap(struct fs *o, struct fs *n) +ffs_sb_swap(const struct fs *o, struct fs *n) { size_t i; - u_int32_t *o32, *n32; + const u_int32_t *o32; + u_int32_t *n32; /* * In order to avoid a lot of lines, as the first N fields (52) * of the superblock up to fs_fmod are u_int32_t, we just loop * here to convert them. */ - o32 = (u_int32_t *)o; + o32 = (const u_int32_t *)o; n32 = (u_int32_t *)n; for (i = 0; i < offsetof(struct fs, fs_fmod) / sizeof(u_int32_t); i++) n32[i] = bswap32(o32[i]); @@ -178,7 +179,7 @@ ffs_csum_swap(struct csum *o, struct csu } void -ffs_csumtotal_swap(struct csum_total *o, struct csum_total *n) +ffs_csumtotal_swap(const struct csum_total *o, struct csum_total *n) { n->cs_ndir = bswap64(o->cs_ndir); n->cs_nbfree = bswap64(o->cs_nbfree);