[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 6/8] maint: enable sc_prohibit_cloexec_without_use
From: |
Jim Meyering |
Subject: |
[PATCH 6/8] maint: enable sc_prohibit_cloexec_without_use |
Date: |
Tue, 17 Jan 2012 19:05:57 +0100 |
From: Jim Meyering <address@hidden>
* cfg.mk: Enable sc_prohibit_cloexec_without_use.
* lib/dup-safer-flag.c: Don't include "cloexec.h". Not needed.
---
ChangeLog | 6 ++++++
cfg.mk | 1 -
lib/dup-safer-flag.c | 2 --
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 00fbd8a..a85f74e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2012-01-17 Jim Meyering <address@hidden>
+ 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 <address@hidden>
+
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.
diff --git a/cfg.mk b/cfg.mk
index 8fc3015..67d660f 100644
--- 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 \
diff --git a/lib/dup-safer-flag.c b/lib/dup-safer-flag.c
index 368f559..e4d1b21 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). */
--
1.7.9.rc1.2.gccfe4
- run syntax-check rules on gnulib's own sources, Jim Meyering, 2012/01/17
- [PATCH 6/8] maint: enable sc_prohibit_cloexec_without_use,
Jim Meyering <=
- [PATCH 5/8] maint: enable sc_prohibit_intprops_without_use, Jim Meyering, 2012/01/17
- [PATCH 8/8] maint: enable sc_trailing_blank, Jim Meyering, 2012/01/17
- [PATCH 7/8] maint: enable sc_prohibit_openat_without_use, Jim Meyering, 2012/01/17
- [PATCH 1/8] maint: add framework to run syntax-check rules against gnulib sources, Jim Meyering, 2012/01/17
- [PATCH 3/8] maint: enable double-word-prohibiting rule, Jim Meyering, 2012/01/17
- [PATCH 2/8] maint: remove empty lines at EOF, but excluding modules/*, Jim Meyering, 2012/01/17