]> Savannah Git Hosting - gnulib.git/commitdiff
maint: enable sc_prohibit_cloexec_without_use
authorJim Meyering <meyering@redhat.com>
Tue, 17 Jan 2012 17:30:09 +0000 (18:30 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 21 Jan 2012 14:07:02 +0000 (15:07 +0100)
* cfg.mk: Enable sc_prohibit_cloexec_without_use.
* lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.

ChangeLog
cfg.mk
lib/dup-safer-flag.c

index eba37d1847829fa64ce05e1dd3e8a644a4cc8e50..9b472e10a6ad59c74a0bca20b5ceaf1946763c2a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-01-17  Jim Meyering  <meyering@redhat.com>
+
+       maint: enable sc_prohibit_cloexec_without_use
+       * cfg.mk: Enable sc_prohibit_cloexec_without_use.
+       * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
+
 2012-01-17  Jim Meyering  <meyering@redhat.com>
 
        maint: enable sc_prohibit_intprops_without_use
diff --git a/cfg.mk b/cfg.mk
index 37fb0a6cc494da2580638ced0fc548b73f194b27..e15333ceb77dec40b9834917fca70dd37f9029e3 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -23,7 +23,6 @@ local-checks-to-skip =                        \
   sc_prohibit_always-defined_macros    \
   sc_prohibit_atoi_atof                        \
   sc_prohibit_c_ctype_without_use      \
-  sc_prohibit_cloexec_without_use      \
   sc_prohibit_dirent_without_use       \
   sc_prohibit_error_without_use                \
   sc_prohibit_getopt_without_use       \
index 368f55942a6d97ec089d4fd83ba0725a70fc337a..e4d1b2118cac0f8e77f12c275c8feabab18ef8a0 100644 (file)
@@ -26,8 +26,6 @@
 #include <fcntl.h>
 #include <unistd.h>
 
-#include "cloexec.h"
-
 /* Like dup, but do not return STDIN_FILENO, STDOUT_FILENO, or
    STDERR_FILENO.  If FLAG contains O_CLOEXEC, behave like
    fcntl(F_DUPFD_CLOEXEC) rather than fcntl(F_DUPFD).  */