From 22c1f37699777400d3692be67534d67651bef2fe Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Tue, 12 Jun 2007 09:09:02 +0000 Subject: fix casts of types where needed git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@285 ef36b2f9-881f-0410-afb5-c4e39611909c --- nslcd/ldap-schema.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'nslcd/ldap-schema.c') diff --git a/nslcd/ldap-schema.c b/nslcd/ldap-schema.c index b335abe..81b9286 100644 --- a/nslcd/ldap-schema.c +++ b/nslcd/ldap-schema.c @@ -301,15 +301,15 @@ init_sp_attributes (const char ***sp_attrs) (*sp_attrs) = __sp_attrs; - (*sp_attrs)[0] = (char *) ATM (LM_SHADOW, uid); - (*sp_attrs)[1] = (char *) ATM (LM_SHADOW, userPassword); - (*sp_attrs)[2] = (char *) AT (shadowLastChange); - (*sp_attrs)[3] = (char *) AT (shadowMax); - (*sp_attrs)[4] = (char *) AT (shadowMin); - (*sp_attrs)[5] = (char *) AT (shadowWarning); - (*sp_attrs)[6] = (char *) AT (shadowInactive); - (*sp_attrs)[7] = (char *) AT (shadowExpire); - (*sp_attrs)[8] = (char *) AT (shadowFlag); + (*sp_attrs)[0] = ATM (LM_SHADOW, uid); + (*sp_attrs)[1] = ATM (LM_SHADOW, userPassword); + (*sp_attrs)[2] = AT (shadowLastChange); + (*sp_attrs)[3] = AT (shadowMax); + (*sp_attrs)[4] = AT (shadowMin); + (*sp_attrs)[5] = AT (shadowWarning); + (*sp_attrs)[6] = AT (shadowInactive); + (*sp_attrs)[7] = AT (shadowExpire); + (*sp_attrs)[8] = AT (shadowFlag); (*sp_attrs)[9] = NULL; } @@ -321,12 +321,12 @@ init_grp_attributes (const char ***grp_attrs) (*grp_attrs) = __grp_attrs; - (*grp_attrs)[i++] = (char *) ATM (LM_GROUP, cn); - (*grp_attrs)[i++] = (char *) ATM (LM_GROUP, userPassword); - (*grp_attrs)[i++] = (char *) AT (memberUid); + (*grp_attrs)[i++] = ATM (LM_GROUP, cn); + (*grp_attrs)[i++] = ATM (LM_GROUP, userPassword); + (*grp_attrs)[i++] = AT (memberUid); if (_nss_ldap_test_config_flag (NSS_LDAP_FLAGS_RFC2307BIS)) - (*grp_attrs)[i++] = (char *) AT (uniqueMember); - (*grp_attrs)[i++] = (char *) ATM (LM_GROUP, gidNumber); + (*grp_attrs)[i++] = AT (uniqueMember); + (*grp_attrs)[i++] = ATM (LM_GROUP, gidNumber); (*grp_attrs)[i] = NULL; } @@ -337,8 +337,8 @@ init_hosts_attributes (const char ***hosts_attrs) (*hosts_attrs) = __hosts_attrs; - (*hosts_attrs)[0] = (char *) ATM (LM_HOSTS, cn); - (*hosts_attrs)[1] = (char *) AT (ipHostNumber); + (*hosts_attrs)[0] = ATM (LM_HOSTS, cn); + (*hosts_attrs)[1] = AT (ipHostNumber); (*hosts_attrs)[2] = NULL; } -- cgit v1.2.3