lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1387 - nss-pam-ldapd/nslcd

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r1387 - nss-pam-ldapd/nslcd



Author: arthur
Date: Fri Mar 11 16:49:22 2011
New Revision: 1387
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1387

Log:
move HOST_NAME_MAX fallback definition to header file

Modified:
   nss-pam-ldapd/nslcd/common.c
   nss-pam-ldapd/nslcd/common.h

Modified: nss-pam-ldapd/nslcd/common.c
==============================================================================
--- nss-pam-ldapd/nslcd/common.c        Thu Mar 10 22:45:36 2011        (r1386)
+++ nss-pam-ldapd/nslcd/common.c        Fri Mar 11 16:49:22 2011        (r1387)
@@ -54,10 +54,6 @@
   return ((res<0)||(((size_t)res)>=buflen));
 }
 
-#ifndef HOST_NAME_MAX
-#define HOST_NAME_MAX 255
-#endif /* not HOST_NAME_MAX */
-
 /* return the fully qualified domain name of the current host */
 const char *getfqdn(void)
 {

Modified: nss-pam-ldapd/nslcd/common.h
==============================================================================
--- nss-pam-ldapd/nslcd/common.h        Thu Mar 10 22:45:36 2011        (r1386)
+++ nss-pam-ldapd/nslcd/common.h        Fri Mar 11 16:49:22 2011        (r1387)
@@ -103,6 +103,11 @@
 /* try to update the shadowLastChange attribute of the entry if possible */
 int update_lastchange(MYLDAP_SESSION *session,const char *userdn);
 
+/* fallback definition of HOST_NAME_MAX */
+#ifndef HOST_NAME_MAX
+#define HOST_NAME_MAX 255
+#endif /* not HOST_NAME_MAX */
+
 /* these are the functions for initialising the database specific
    modules */
 void alias_init(void);
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits