From 2c40043c434b883a0bfce7d777a028ae0da6d25f Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Mon, 14 Jun 2010 21:05:52 +0000 Subject: 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 --- compat/attrs.h | 6 +++--- compat/daemon.h | 6 +++--- compat/ether.h | 6 +++--- compat/getopt_long.h | 6 +++--- compat/getpeercred.h | 6 +++--- compat/ldap_compat.h | 6 +++--- compat/pam_compat.h | 4 ++-- 7 files changed, 20 insertions(+), 20 deletions(-) (limited to 'compat') 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 @@ -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 #include @@ -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 #include @@ -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 -- cgit v1.2.2