nss-pam-ldapd commit: r1765 - nss-pam-ldapd/nss
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd commit: r1765 - nss-pam-ldapd/nss
- From: Commits of the nss-pam-ldapd project <nss-pam-ldapd-commits [at] lists.arthurdejong.org>
- To: nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: nss-pam-ldapd commit: r1765 - nss-pam-ldapd/nss
- Date: Fri, 14 Sep 2012 20:57:04 +0200 (CEST)
Author: arthur
Date: Fri Sep 14 20:57:04 2012
New Revision: 1765
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1765&view=revision
Log:
use the standard constructor and destructor eventhough be->fp isn't used
Modified:
nss-pam-ldapd/nss/ethers.c
Modified: nss-pam-ldapd/nss/ethers.c
==============================================================================
--- nss-pam-ldapd/nss/ethers.c Fri Sep 14 20:54:54 2012 (r1764)
+++ nss-pam-ldapd/nss/ethers.c Fri Sep 14 20:57:04 2012 (r1765)
@@ -158,14 +158,8 @@
read_result(fp,args,1));
}
-static nss_status_t ethers_destructor(nss_backend_t *be,void UNUSED(*args))
-{
- free(be);
- return NSS_STATUS_SUCCESS;
-}
-
static nss_backend_op_t ethers_ops[]={
- ethers_destructor,
+ nss_ldap_destructor,
ethers_gethostton,
ethers_getntohost
};
@@ -173,12 +167,7 @@
nss_backend_t *_nss_ldap_ethers_constr(const char UNUSED(*db_name),
const char UNUSED(*src_name),const char UNUSED(*cfg_args))
{
- nss_backend_t *be;
- if (!(be=(nss_backend_t *)malloc(sizeof(*be))))
- return NULL;
- be->ops=ethers_ops;
- be->n_ops=sizeof(ethers_ops)/sizeof(nss_backend_op_t);
- return be;
+ return nss_ldap_constructor(ethers_ops,sizeof(ethers_ops));
}
#endif /* NSS_FLAVOUR_SOLARIS */
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/
- nss-pam-ldapd commit: r1765 - nss-pam-ldapd/nss,
Commits of the nss-pam-ldapd project