diff options
author | Jim Meyering <meyering@redhat.com> | 2012-01-17 18:30:09 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-01-21 15:07:02 +0100 |
commit | 890b216396a51469449f90a9afd241f9b14f7ffa (patch) | |
tree | 933b5eb63baba3ed3989264c9368b5031fccd7b5 | |
parent | 34823be715ed9e6f3f1b1ebcbe711dad18acd45a (diff) | |
download | gnulib-890b216396a51469449f90a9afd241f9b14f7ffa.tar.gz |
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.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | cfg.mk | 1 | ||||
-rw-r--r-- | lib/dup-safer-flag.c | 2 |
3 files changed, 6 insertions, 3 deletions
@@ -1,5 +1,11 @@ 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 * cfg.mk: Enable sc_prohibit_intprops_without_use * tests/test-nanosleep.c: Don't include "intprops.h". Not needed. @@ -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 \ diff --git a/lib/dup-safer-flag.c b/lib/dup-safer-flag.c index 368f55942a..e4d1b2118c 100644 --- a/lib/dup-safer-flag.c +++ b/lib/dup-safer-flag.c @@ -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). */ |