diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2007-03-04 21:03:06 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2007-03-04 21:03:06 +0100 |
commit | 48d51b66fac883fc8648fb6b9df487382b8addc2 (patch) | |
tree | e85684c4247e33f12417a95989210df016a35109 /nslcd/ldap-nss.c | |
parent | 03fdef7f5c7667fd92232f6d055f98833bcfef19 (diff) |
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
Diffstat (limited to 'nslcd/ldap-nss.c')
-rw-r--r-- | nslcd/ldap-nss.c | 11 |
1 files changed, 8 insertions, 3 deletions
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) |