lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1272 - nss-pam-ldapd/nss

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

nss-pam-ldapd commit: r1272 - nss-pam-ldapd/nss



Author: arthur
Date: Thu Oct 14 21:00:51 2010
New Revision: 1272
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1272

Log:
move _nss_ldap_initgroups_dyn() definition to the end to have more logical order

Modified:
   nss-pam-ldapd/nss/group.c

Modified: nss-pam-ldapd/nss/group.c
==============================================================================
--- nss-pam-ldapd/nss/group.c   Thu Oct 14 20:39:39 2010        (r1271)
+++ nss-pam-ldapd/nss/group.c   Thu Oct 14 21:00:51 2010        (r1272)
@@ -120,6 +120,30 @@
              read_group(fp,result,buffer,buflen,errnop));
 }
 
+/* thread-local file pointer to an ongoing request */
+static __thread TFILE *grentfp;
+
+/* start a request to read all groups */
+nss_status_t _nss_ldap_setgrent(int UNUSED(stayopen))
+{
+  NSS_SETENT(grentfp);
+}
+
+/* read a single group from the stream */
+nss_status_t _nss_ldap_getgrent_r(
+        struct group *result,
+        char *buffer,size_t buflen,int *errnop)
+{
+  NSS_GETENT(grentfp,NSLCD_ACTION_GROUP_ALL,
+             read_group(grentfp,result,buffer,buflen,errnop));
+}
+
+/* close the stream opened with setgrent() above */
+nss_status_t _nss_ldap_endgrent(void)
+{
+  NSS_ENDENT(grentfp);
+}
+
 /* this function returns a list of groups, documentation for the
    interface is scarce (any pointers are welcome) but this is
    what is assumed the parameters mean:
@@ -147,27 +171,3 @@
 #undef buffer
 #undef buflen
 }
-
-/* thread-local file pointer to an ongoing request */
-static __thread TFILE *grentfp;
-
-/* start a request to read all groups */
-nss_status_t _nss_ldap_setgrent(int UNUSED(stayopen))
-{
-  NSS_SETENT(grentfp);
-}
-
-/* read a single group from the stream */
-nss_status_t _nss_ldap_getgrent_r(
-        struct group *result,
-        char *buffer,size_t buflen,int *errnop)
-{
-  NSS_GETENT(grentfp,NSLCD_ACTION_GROUP_ALL,
-             read_group(grentfp,result,buffer,buflen,errnop));
-}
-
-/* close the stream opened with setgrent() above */
-nss_status_t _nss_ldap_endgrent(void)
-{
-  NSS_ENDENT(grentfp);
-}
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits