Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Dec 2015 16:12:41 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r292549 - head/usr.sbin/makefs
Message-ID:  <201512211612.tBLGCfBK012017@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Mon Dec 21 16:12:41 2015
New Revision: 292549
URL: https://svnweb.freebsd.org/changeset/base/292549

Log:
  makefs: use ENTRY macro for diff reduction with NetBSD
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/usr.sbin/makefs/makefs.c

Modified: head/usr.sbin/makefs/makefs.c
==============================================================================
--- head/usr.sbin/makefs/makefs.c	Mon Dec 21 15:13:15 2015	(r292548)
+++ head/usr.sbin/makefs/makefs.c	Mon Dec 21 16:12:41 2015	(r292549)
@@ -66,9 +66,12 @@ typedef struct {
 } fstype_t;
 
 static fstype_t fstypes[] = {
-	{ "ffs", ffs_prep_opts,	ffs_parse_opts,	ffs_cleanup_opts, ffs_makefs },
-	{ "cd9660", cd9660_prep_opts, cd9660_parse_opts, cd9660_cleanup_opts,
-	  cd9660_makefs},
+#define ENTRY(name) { \
+	# name, name ## _prep_opts, name ## _parse_opts, \
+	name ## _cleanup_opts, name ## _makefs  \
+}
+	ENTRY(ffs),
+	ENTRY(cd9660),
 	{ .type = NULL	},
 };
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512211612.tBLGCfBK012017>