From 48d51b66fac883fc8648fb6b9df487382b8addc2 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sun, 4 Mar 2007 20:03:06 +0000 Subject: code improvements by making type casts explicit, flagging ignored return values, renames and flagging of parameters and some miscelanious improvements (thanks to gcc warnings, splint, rats and flawfinder) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@265 ef36b2f9-881f-0410-afb5-c4e39611909c --- nslcd/ldap-nss.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'nslcd/ldap-nss.c') diff --git a/nslcd/ldap-nss.c b/nslcd/ldap-nss.c index f423d75..46ed56a 100644 --- a/nslcd/ldap-nss.c +++ b/nslcd/ldap-nss.c @@ -118,8 +118,8 @@ static int __sigaction_retval = -1; static void (*__sigpipe_handler) (int) = SIG_DFL; #endif /* HAVE_SIGACTION */ -static const char *_nss_ldap_map_ov (const char *pChar); -static const char *_nss_ldap_map_df (const char *pChar); +static const char *_nss_ldap_map_ov (const char *attribute); +static const char *_nss_ldap_map_df (const char *attribute); static const char *_nss_ldap_locate_userpassword (char **vals); /* @@ -3032,6 +3032,11 @@ _nss_ldap_shadow_handle_flag (struct spwd *sp) } #endif /* HAVE_SHADOW_H */ +static enum nss_status +_nss_ldap_map_get (enum ldap_map_selector sel, + enum ldap_map_type type, + const char *from, const char **to); + const char * _nss_ldap_map_at (enum ldap_map_selector sel, const char *attribute) { @@ -3096,7 +3101,7 @@ _nss_ldap_map_df (const char *attribute) return value; } -enum nss_status +static enum nss_status _nss_ldap_map_get (enum ldap_map_selector sel, enum ldap_map_type type, const char *from, const char **to) -- cgit v1.2.3