diff options
author | emaste <emaste@FreeBSD.org> | 2015-12-21 16:12:41 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2015-12-21 16:12:41 +0000 |
commit | f410c06c4a6cb96c531b5c8794bbe94d1b592d7c (patch) | |
tree | 22409b4bc6a93bb93a08ea0008ba01f3690cacb2 /usr.sbin | |
parent | 66bc685f286ad6c27c4bd2bde10d0e1d5fd896b2 (diff) | |
download | FreeBSD-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.c | 9 |
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 }, }; |