summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2015-12-21 16:12:41 +0000
committeremaste <emaste@FreeBSD.org>2015-12-21 16:12:41 +0000
commitf410c06c4a6cb96c531b5c8794bbe94d1b592d7c (patch)
tree22409b4bc6a93bb93a08ea0008ba01f3690cacb2 /usr.sbin
parent66bc685f286ad6c27c4bd2bde10d0e1d5fd896b2 (diff)
downloadFreeBSD-src-f410c06c4a6cb96c531b5c8794bbe94d1b592d7c.zip
FreeBSD-src-f410c06c4a6cb96c531b5c8794bbe94d1b592d7c.tar.gz
makefs: use ENTRY macro for diff reduction with NetBSD
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/makefs/makefs.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/makefs/makefs.c b/usr.sbin/makefs/makefs.c
index bca9722..79cffed 100644
--- a/usr.sbin/makefs/makefs.c
+++ b/usr.sbin/makefs/makefs.c
@@ -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 },
};
OpenPOWER on IntegriCloud