]> git.cameronkatri.com Git - mandoc.git/blobdiff - compat_fts.c
simplify a few accesses to fields of structs, using auxiliary pointer
[mandoc.git] / compat_fts.c
index 177d1c1f63bc3d3c15d3529edf53591656abd89b..e44298df02b84359eb2c38e76144fad36e8d491d 100644 (file)
@@ -1,12 +1,4 @@
-#include "config.h"
-
-#if HAVE_FTS
-
-int dummy;
-
-#else
-
-/*     $Id: compat_fts.c,v 1.16 2020/06/14 23:08:35 schwarze Exp $     */
+/*     $Id: compat_fts.c,v 1.17 2020/06/15 01:37:14 schwarze Exp $     */
 /*     $OpenBSD: fts.c,v 1.59 2019/06/28 13:32:41 deraadt Exp $        */
 
 /*-
@@ -37,6 +29,7 @@ int dummy;
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  */
+#include "config.h"
 
 #include <sys/stat.h>
 #include <sys/types.h>
@@ -701,5 +694,3 @@ fts_maxarglen(char * const *argv)
                        max = len;
        return (max + 1);
 }
-
-#endif