Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Feb 2017 03:12:47 +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: r313787 - head/usr.sbin/makefs
Message-ID:  <201702160312.v1G3Cl5H085862@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



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