r18924: Minor cleanup.
authorGünther Deschner <gd@samba.org>
Tue, 26 Sep 2006 16:35:34 +0000 (16:35 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:14:47 +0000 (12:14 -0500)
Guenther
(This used to be commit 143a48927b0e21d31a9f54cfc720b5d04a4b6751)

source3/nsswitch/pam_winbind.c

index 3bd90106ec4853f4dbd2c5ed473018c8eac6a7d8..5d5e903c42bbdef9b5a2c7bdc6cab314396d3de1 100644 (file)
@@ -119,33 +119,33 @@ static int _pam_parse(const pam_handle_t *pamh, int flags, int argc, const char
                config_file = PAM_WINBIND_CONFIG_FILE;
        }
 
-       *d = iniparser_load(CONST_DISCARD(char *, config_file));
+       *d = iniparser_load(config_file);
        if (*d == NULL) {
                goto config_from_pam;
        }
 
-       if (iniparser_getboolean(*d, CONST_DISCARD(char *, "global:debug"), False)) {
+       if (iniparser_getboolean(*d, ("global:debug", False))) {
                ctrl |= WINBIND_DEBUG_ARG;
        }
 
-       if (iniparser_getboolean(*d, CONST_DISCARD(char *, "global:cached_login"), False)) {
+       if (iniparser_getboolean(*d, "global:cached_login", False)) {
                ctrl |= WINBIND_CACHED_LOGIN;
        }
 
-       if (iniparser_getboolean(*d, CONST_DISCARD(char *, "global:krb5_auth"), False)) {
+       if (iniparser_getboolean(*d, "global:krb5_auth", False)) {
                ctrl |= WINBIND_KRB5_AUTH;
        }
 
-       if (iniparser_getboolean(*d, CONST_DISCARD(char *, "global:silent"), False)) {
+       if (iniparser_getboolean(*d, "global:silent", False)) {
                ctrl |= WINBIND_SILENT;
        }
 
-       if (iniparser_getstr(*d, CONST_DISCARD(char *,"global:krb5_ccache_type")) != NULL) {
+       if (iniparser_getstr(*d, "global:krb5_ccache_type")) != NULL) {
                ctrl |= WINBIND_KRB5_CCACHE_TYPE;
        }
        
-       if ((iniparser_getstr(*d, CONST_DISCARD(char *, "global:require-membership-of")) != NULL) ||
-           (iniparser_getstr(*d, CONST_DISCARD(char *, "global:require_membership_of")) != NULL)) {
+       if ((iniparser_getstr(*d, "global:require-membership-of") != NULL) ||
+           (iniparser_getstr(*d, "global:require_membership_of") != NULL)) {
                ctrl |= WINBIND_REQUIRED_MEMBERSHIP;
        }