[PATCH 4/4] maint: remove unused include from fstype.c

Bernhard Voelker <[email protected]>
Newsgroups gmane.comp.gnu.findutils.patches,gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
With newer gnulib, the sc_prohibit_always_true_header_tests check
fails with:
  find/fstype.c:30:#if HAVE_MNTENT_H
  maint.mk: do not test the above HAVE_<header>_H symbol(s);
    with the corresponding gnulib module, they are always true
  make: *** [maint.mk:969: sc_prohibit_always_true_header_tests] Error 1

* find/fstype.c (#include <mntent.h>): Remove as it is not actually used.
---
 find/fstype.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/find/fstype.c b/find/fstype.c
index b5cdfcba..a7ca25df 100644
--- a/find/fstype.c
+++ b/find/fstype.c
@@ -27,9 +27,6 @@
 /* system headers. */
 #include <errno.h>
 #include <fcntl.h>
-#if HAVE_MNTENT_H
-# include <mntent.h>
-#endif
 #include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
--
2.47.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.