[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] acl: port to gcc -Wredundant-decls
From: |
Paul Eggert |
Subject: |
[PATCH] acl: port to gcc -Wredundant-decls |
Date: |
Tue, 17 Jun 2014 08:09:57 -0700 |
>From a request by Dmitry Antipov in:
http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00263.html
* lib/acl.h (_GL_ACL_H): New macro. Protect entire contents with
"#ifndef _GL_ACL_H".
---
ChangeLog | 8 ++++++++
lib/acl.h | 5 +++++
2 files changed, 13 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 5dd0d6f..818ff80 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2014-06-17 Paul Eggert <address@hidden>
+
+ acl: port to gcc -Wredundant-decls
+ From a request by Dmitry Antipov in:
+ http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00263.html
+ * lib/acl.h (_GL_ACL_H): New macro. Protect entire contents with
+ "#ifndef _GL_ACL_H".
+
2014-06-11 Bruce Korb <address@hidden>
Jim Meyering <address@hidden>
diff --git a/lib/acl.h b/lib/acl.h
index d024f74..f67e350 100644
--- a/lib/acl.h
+++ b/lib/acl.h
@@ -17,6 +17,9 @@
Written by Paul Eggert. */
+#ifndef _GL_ACL_H
+#define _GL_ACL_H 1
+
#include <stdbool.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -28,3 +31,5 @@ int set_acl (char const *, int, mode_t);
int qcopy_acl (char const *, int, char const *, int, mode_t);
int copy_acl (char const *, int, char const *, int, mode_t);
int chmod_or_fchmod (char const *, int, mode_t);
+
+#endif
--
1.9.3
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] acl: port to gcc -Wredundant-decls,
Paul Eggert <=