Author: emaste Date: Thu Feb 16 03:12:47 2017 New Revision: 313787 URL: https://svnweb.freebsd.org/changeset/base/313787
Log: makefs: use a macro to simplify per-fs function declarations makefs.h 1.28 Obtained from: NetBSD Modified: head/usr.sbin/makefs/makefs.h Modified: head/usr.sbin/makefs/makefs.h ============================================================================== --- head/usr.sbin/makefs/makefs.h Thu Feb 16 01:44:56 2017 (r313786) +++ head/usr.sbin/makefs/makefs.h Thu Feb 16 03:12:47 2017 (r313787) @@ -158,16 +158,14 @@ int set_option(option_t *, const char * fsnode * walk_dir(const char *, const char *, fsnode *, fsnode *); void free_fsnodes(fsnode *); -void ffs_prep_opts(fsinfo_t *); -int ffs_parse_opts(const char *, fsinfo_t *); -void ffs_cleanup_opts(fsinfo_t *); -void ffs_makefs(const char *, const char *, fsnode *, fsinfo_t *); - -void cd9660_prep_opts(fsinfo_t *); -int cd9660_parse_opts(const char *, fsinfo_t *); -void cd9660_cleanup_opts(fsinfo_t *); -void cd9660_makefs(const char *, const char *, fsnode *, fsinfo_t *); +#define DECLARE_FUN(fs) \ +void fs ## _prep_opts(fsinfo_t *); \ +int fs ## _parse_opts(const char *, fsinfo_t *); \ +void fs ## _cleanup_opts(fsinfo_t *); \ +void fs ## _makefs(const char *, const char *, fsnode *, fsinfo_t *) +DECLARE_FUN(ffs); +DECLARE_FUN(cd9660); extern u_int debug; extern int dupsok; _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"