summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2010-06-14 21:05:52 +0000
committerArthur de Jong <arthur@arthurdejong.org>2010-06-14 21:05:52 +0000
commit2c40043c434b883a0bfce7d777a028ae0da6d25f (patch)
tree143984773c7b27a733de37a86ca4b5e4c7579ccb /compat
parenta24c04ae85579ffa8d7837b46ce2bb22e779a098 (diff)
make include guard names consistent throughout the source and avoid conflicts with system headers
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1140 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'compat')
-rw-r--r--compat/attrs.h6
-rw-r--r--compat/daemon.h6
-rw-r--r--compat/ether.h6
-rw-r--r--compat/getopt_long.h6
-rw-r--r--compat/getpeercred.h6
-rw-r--r--compat/ldap_compat.h6
-rw-r--r--compat/pam_compat.h4
7 files changed, 20 insertions, 20 deletions
diff --git a/compat/attrs.h b/compat/attrs.h
index 492f45c..0bc0f30 100644
--- a/compat/attrs.h
+++ b/compat/attrs.h
@@ -19,8 +19,8 @@
02110-1301 USA
*/
-#ifndef _COMPAT_ATTRS_H
-#define _COMPAT_ATTRS_H 1
+#ifndef COMPAT__ATTRS_H
+#define COMPAT__ATTRS_H 1
/* macro for testing the version of GCC */
#define GCC_VERSION(major,minor) \
@@ -88,4 +88,4 @@
#endif /* not __STDC__ */
#endif /* not __STRING */
-#endif /* not _COMPAT_ATTRS_H */
+#endif /* not COMPAT__ATTRS_H */
diff --git a/compat/daemon.h b/compat/daemon.h
index 4d0f33a..8d10514 100644
--- a/compat/daemon.h
+++ b/compat/daemon.h
@@ -19,8 +19,8 @@
02110-1301 USA
*/
-#ifndef _DAEMON_H
-#define _DAEMON_H 1
+#ifndef COMPAT__DAEMON_H
+#define COMPAT__DAEMON_H 1
#include <unistd.h>
@@ -28,4 +28,4 @@
strdout and stderr and redirect them to /dev/null */
int daemon(int nochdir,int noclose);
-#endif /* not _DAEMON_H */
+#endif /* not COMPAT__DAEMON_H */
diff --git a/compat/ether.h b/compat/ether.h
index fc1525e..40f1c8c 100644
--- a/compat/ether.h
+++ b/compat/ether.h
@@ -19,8 +19,8 @@
02110-1301 USA
*/
-#ifndef _COMPAT_ETHER_H
-#define _COMPAT_ETHER_H 1
+#ifndef COMPAT__ETHER_H
+#define COMPAT__ETHER_H 1
#include <sys/types.h>
#include <sys/socket.h>
@@ -45,5 +45,5 @@ char *ether_ntoa_r(const struct ether_addr *addr,char *buf);
struct ether_addr *ether_aton_r(const char *asc,struct ether_addr *addr);
#endif /* not HAVE_ETHER_ATON_R */
-#endif /* not _COMPAT_ETHER_H */
+#endif /* not COMPAT__ETHER_H */
diff --git a/compat/getopt_long.h b/compat/getopt_long.h
index 7ddf5a3..2500f64 100644
--- a/compat/getopt_long.h
+++ b/compat/getopt_long.h
@@ -19,8 +19,8 @@
02110-1301 USA
*/
-#ifndef _GETOPT_LONG_H
-#define _GETOPT_LONG_H 1
+#ifndef COMPAT__GETOPT_LONG_H
+#define COMPAT__GETOPT_LONG_H 1
#ifndef HAVE_GETOPT_LONG
@@ -47,4 +47,4 @@ int getopt_long(int argc,char * const argv[],
#endif /* not HAVE_GETOPT_LONG */
-#endif /* _GETOPT_LONG_H */
+#endif /* COMPAT__GETOPT_LONG_H */
diff --git a/compat/getpeercred.h b/compat/getpeercred.h
index 73b3e26..afa049f 100644
--- a/compat/getpeercred.h
+++ b/compat/getpeercred.h
@@ -21,8 +21,8 @@
02110-1301 USA
*/
-#ifndef _COMPAT_GETPEERCRED_H
-#define _COMPAT_GETPEERCRED_H 1
+#ifndef COMPAT__GETPEERCRED_H
+#define COMPAT__GETPEERCRED_H 1
/* This function tries to determine the (effective) user id, group id
and process id of the other end of the specified socket.
@@ -32,4 +32,4 @@
is set appropriately. */
int getpeercred(int sock,uid_t *uid,gid_t *gid,pid_t *pid);
-#endif /* not _COMPAT_GETPEERCRED_H */
+#endif /* not COMPAT__GETPEERCRED_H */
diff --git a/compat/ldap_compat.h b/compat/ldap_compat.h
index 19d9e07..15040c9 100644
--- a/compat/ldap_compat.h
+++ b/compat/ldap_compat.h
@@ -19,8 +19,8 @@
02110-1301 USA
*/
-#ifndef _COMPAT_LDAP_COMPAT_H
-#define _COMPAT_LDAP_COMPAT_H 1
+#ifndef COMPAT__LDAP_COMPAT_H
+#define COMPAT__LDAP_COMPAT_H 1
#include <lber.h>
#include <ldap.h>
@@ -58,4 +58,4 @@ int ldap_passwd_s(LDAP *ld,struct berval *user,struct berval *oldpw,
#endif /* not HAVE_LDAP_PASSWD_S */
-#endif /* _COMPAT_LDAP_COMPAT_H */
+#endif /* COMPAT__LDAP_COMPAT_H */
diff --git a/compat/pam_compat.h b/compat/pam_compat.h
index 7bb4081..d9410ad 100644
--- a/compat/pam_compat.h
+++ b/compat/pam_compat.h
@@ -19,8 +19,8 @@
02110-1301 USA
*/
-#ifndef _COMPAT_PAM_COMPAT_H
-#define _COMPAT_PAM_COMPAT_H 1
+#ifndef COMPAT__PAM_COMPAT_H
+#define COMPAT__PAM_COMPAT_H 1
#ifdef HAVE_SECURITY_PAM_APPL_H
#include <security/pam_appl.h>