Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/newfs_lfs Use c99 initializers.
details: https://anonhg.NetBSD.org/src/rev/5c44a137d619
branches: trunk
changeset: 809803:5c44a137d619
user: dholland <dholland%NetBSD.org@localhost>
date: Sun Aug 02 18:11:12 2015 +0000
description:
Use c99 initializers.
diffstat:
sbin/newfs_lfs/make_lfs.c | 128 +++++++++++++++++++++++-----------------------
1 files changed, 64 insertions(+), 64 deletions(-)
diffs (151 lines):
diff -r 183efca297c8 -r 5c44a137d619 sbin/newfs_lfs/make_lfs.c
--- a/sbin/newfs_lfs/make_lfs.c Sun Aug 02 18:10:55 2015 +0000
+++ b/sbin/newfs_lfs/make_lfs.c Sun Aug 02 18:11:12 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: make_lfs.c,v 1.36 2015/08/02 18:10:08 dholland Exp $ */
+/* $NetBSD: make_lfs.c,v 1.37 2015/08/02 18:11:12 dholland Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
#if 0
static char sccsid[] = "@(#)lfs.c 8.5 (Berkeley) 5/24/95";
#else
-__RCSID("$NetBSD: make_lfs.c,v 1.36 2015/08/02 18:10:08 dholland Exp $");
+__RCSID("$NetBSD: make_lfs.c,v 1.37 2015/08/02 18:11:12 dholland Exp $");
#endif
#endif /* not lint */
@@ -110,70 +110,70 @@
#endif
static struct lfs lfs_default = {
- .lfs_dlfs = { /* lfs_dlfs */
- /* dlfs_magic */ LFS_MAGIC,
- /* dlfs_version */ LFS_VERSION,
- /* dlfs_size */ 0,
- /* dlfs_ssize */ DFL_LFSSEG,
- /* dlfs_dsize */ 0,
- /* dlfs_bsize */ DFL_LFSBLOCK,
- /* dlfs_fsize */ DFL_LFSFRAG,
- /* dlfs_frag */ DFL_LFSBLOCK/DFL_LFSFRAG,
- /* dlfs_freehd */ HIGHEST_USED_INO + 1,
- /* dlfs_bfree */ 0,
- /* dlfs_nfiles */ 0,
- /* dlfs_avail */ 0,
- /* dlfs_uinodes */ 0,
- /* dlfs_idaddr */ 0,
- /* dlfs_ifile */ LFS_IFILE_INUM,
- /* dlfs_lastseg */ 0,
- /* dlfs_nextseg */ 0,
- /* dlfs_curseg */ 0,
- /* dlfs_offset */ 0,
- /* dlfs_lastpseg */ 0,
- /* dlfs_inopf */ 0,
- /* dlfs_minfree */ MINFREE,
- /* dlfs_maxfilesize */ 0,
- /* dlfs_fsbpseg */ 0,
- /* dlfs_inopb */ DFL_LFSBLOCK/sizeof(struct ulfs1_dinode),
- /* dlfs_ifpb */ DFL_LFSBLOCK/sizeof(IFILE),
- /* dlfs_sepb */ DFL_LFSBLOCK/sizeof(SEGUSE),
+ .lfs_dlfs = {
+ .dlfs_magic = LFS_MAGIC,
+ .dlfs_version = LFS_VERSION,
+ .dlfs_size = 0,
+ .dlfs_ssize = DFL_LFSSEG,
+ .dlfs_dsize = 0,
+ .dlfs_bsize = DFL_LFSBLOCK,
+ .dlfs_fsize = DFL_LFSFRAG,
+ .dlfs_frag = DFL_LFSBLOCK/DFL_LFSFRAG,
+ .dlfs_freehd = HIGHEST_USED_INO + 1,
+ .dlfs_bfree = 0,
+ .dlfs_nfiles = 0,
+ .dlfs_avail = 0,
+ .dlfs_uinodes = 0,
+ .dlfs_idaddr = 0,
+ .dlfs_ifile = LFS_IFILE_INUM,
+ .dlfs_lastseg = 0,
+ .dlfs_nextseg = 0,
+ .dlfs_curseg = 0,
+ .dlfs_offset = 0,
+ .dlfs_lastpseg = 0,
+ .dlfs_inopf = 0,
+ .dlfs_minfree = MINFREE,
+ .dlfs_maxfilesize = 0,
+ .dlfs_fsbpseg = 0,
+ .dlfs_inopb = DFL_LFSBLOCK/sizeof(struct ulfs1_dinode),
+ .dlfs_ifpb = DFL_LFSBLOCK/sizeof(IFILE),
+ .dlfs_sepb = DFL_LFSBLOCK/sizeof(SEGUSE),
/* XXX ondisk32 */
- /* dlfs_nindir */ DFL_LFSBLOCK/sizeof(int32_t),
- /* dlfs_nseg */ 0,
- /* dlfs_nspf */ 0,
- /* dlfs_cleansz */ 0,
- /* dlfs_segtabsz */ 0,
- /* dlfs_segmask */ DFL_LFSSEG_MASK,
- /* dlfs_segshift */ DFL_LFSSEG_SHIFT,
- /* dlfs_bshift */ DFL_LFSBLOCK_SHIFT,
- /* dlfs_ffshift */ DFL_LFS_FFSHIFT,
- /* dlfs_fbshift */ DFL_LFS_FBSHIFT,
- /* dlfs_bmask */ DFL_LFSBLOCK_MASK,
- /* dlfs_ffmask */ DFL_LFS_FFMASK,
- /* dlfs_fbmask */ DFL_LFS_FBMASK,
- /* dlfs_blktodb */ 0,
- /* dlfs_sushift */ 0,
- /* dlfs_maxsymlinklen */ ULFS1_MAXSYMLINKLEN,
- /* dlfs_sboffs */ { 0 },
- /* dlfs_nclean */ 0,
- /* dlfs_fsmnt */ { 0 },
- /* dlfs_pflags */ LFS_PF_CLEAN,
- /* dlfs_dmeta */ 0,
- /* dlfs_minfreeseg */ 0,
- /* dlfs_sumsize */ 0,
- /* dlfs_serial */ 0,
- /* dlfs_ibsize */ DFL_LFSFRAG,
- /* dlfs_start */ 0,
- /* dlfs_tstamp */ 0,
- /* dlfs_inodefmt */ LFS_44INODEFMT,
- /* dlfs_interleave */ 0,
- /* dlfs_ident */ 0,
- /* dlfs_fsbtodb */ 0,
- /* dlfs_resvseg */ 0,
+ .dlfs_nindir = DFL_LFSBLOCK/sizeof(int32_t),
+ .dlfs_nseg = 0,
+ .dlfs_nspf = 0,
+ .dlfs_cleansz = 0,
+ .dlfs_segtabsz = 0,
+ .dlfs_segmask = DFL_LFSSEG_MASK,
+ .dlfs_segshift = DFL_LFSSEG_SHIFT,
+ .dlfs_bshift = DFL_LFSBLOCK_SHIFT,
+ .dlfs_ffshift = DFL_LFS_FFSHIFT,
+ .dlfs_fbshift = DFL_LFS_FBSHIFT,
+ .dlfs_bmask = DFL_LFSBLOCK_MASK,
+ .dlfs_ffmask = DFL_LFS_FFMASK,
+ .dlfs_fbmask = DFL_LFS_FBMASK,
+ .dlfs_blktodb = 0,
+ .dlfs_sushift = 0,
+ .dlfs_maxsymlinklen = ULFS1_MAXSYMLINKLEN,
+ .dlfs_sboffs = { 0 },
+ .dlfs_nclean = 0,
+ .dlfs_fsmnt = { 0 },
+ .dlfs_pflags = LFS_PF_CLEAN,
+ .dlfs_dmeta = 0,
+ .dlfs_minfreeseg = 0,
+ .dlfs_sumsize = 0,
+ .dlfs_serial = 0,
+ .dlfs_ibsize = DFL_LFSFRAG,
+ .dlfs_s0addr = 0,
+ .dlfs_tstamp = 0,
+ .dlfs_inodefmt = LFS_44INODEFMT,
+ .dlfs_interleave = 0,
+ .dlfs_ident = 0,
+ .dlfs_fsbtodb = 0,
+ .dlfs_resvseg = 0,
- /* dlfs_pad */ { 0 },
- /* dlfs_cksum */ 0
+ .dlfs_pad = { 0 },
+ .dlfs_cksum = 0
},
};
Home |
Main Index |
Thread Index |
Old Index